Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  Very basic script for batch video converting to Rockbox
« previous next »
  • Print
Pages: [1]

Author Topic: Very basic script for batch video converting to Rockbox  (Read 1777 times)

Offline snk4ever

  • Member
  • *
  • Posts: 13
Very basic script for batch video converting to Rockbox
« on: October 19, 2007, 03:57:10 AM »
Here is a basic script I use to convert my video clips to a mpg perfectly suited for my Gigabeat :

Code: [Select]
for movie in *.avi ;
do mencoder "$movie" -of mpeg -oac lavc -lavcopts acodec=mp2:abitrate=192 -af resample=44100:0:0 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=500 -vf scale,harddup -ofps 25 -zoom -xy 320 -o "$movie.mpg"
done

If you have another target, just change the 320 to your screen width and lower the vbitrate to an apropriate value (not mandatory).

This is opened to suggestions.
1st improvement could be not to limit to avi (I just happened to have only avis today when I made this script) by replacing *.avi by just *
2nd would be to remove the .avi extension and replace it with .rb.mpg to indicate a rockbox-ready mpg file (I don't know how to do this)

Note that I have a Pentium-M 1.6GHz and 768 Mo of RAM and this mencoder line is processing extremely fast, between 110 and 150 fps (5 to 6 times faster to encode than the duration of the clip).

I would like to post this on the wiki, but I think it is not polished enough for it. So I'm asking for some ideas to improve it.
« Last Edit: October 19, 2007, 04:22:03 AM by snk4ever »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Very basic script for batch video converting to Rockbox
« Reply #1 on: October 19, 2007, 04:00:25 AM »
The forums are for questions and discussion, they are not the right place for posting tutorials and similar. Please read the posting guidelines.
Logged

Offline snk4ever

  • Member
  • *
  • Posts: 13
Re: Very basic script for batch video converting to Rockbox
« Reply #2 on: October 19, 2007, 04:02:22 AM »
Quote from: Llorean on October 19, 2007, 04:00:25 AM
The forums are for questions and discussion, they are not the right place for posting tutorials and similar. Please read the posting guidelines.
I consider this a discussion and not a tutorial as I'm seeking advice for improvements here.
Where should I discuss about it then ?
Should I post it straight to the wiki ? Use IRC ?

edit: after discussing with Llorean, I changed the last line so that it is clearer that I'm asking for improvements suggestions.  ;)
« Last Edit: October 19, 2007, 04:22:46 AM by snk4ever »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  Very basic script for batch video converting to Rockbox
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.065 seconds with 15 queries.