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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  batch mpeg encoding
« previous next »
  • Print
Pages: [1]

Author Topic: batch mpeg encoding  (Read 3078 times)

Offline d47

  • Member
  • *
  • Posts: 19
batch mpeg encoding
« on: January 05, 2007, 06:30:21 PM »
hi, i was wondering if any knows of a simple way to batch process videos with ffmpeg, mencoder, vlc or what have you. currently i use ffmpeg with the following command:

ffmpeg - i -s 320x240 -vcodec mpeg2video -acodec mp3 -ac 2 -ar 44100 -r 24

i cant seem to get mencoder to resize the video.
also is there any way to set the output quality for the encoded files.

thx for any tips.
Logged

Offline deft

  • Member
  • *
  • Posts: 3
Re: batch mpeg encoding
« Reply #1 on: January 06, 2007, 05:43:02 PM »
VLC command line:
"...\vlc.exe" %1  --sout=#transcode{vcodec=mp2v,vb=600,width=320,height=240,acodec=mp3,ab=128,samplerate=44100}:std{access-video=file,mux=ps,dst=%1.mpg}

set vb value to set output quality
Logged

Offline d47

  • Member
  • *
  • Posts: 19
Re: batch mpeg encoding
« Reply #2 on: January 06, 2007, 06:45:33 PM »
kewl thx ^^ so thats out of 1000 then?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: batch mpeg encoding
« Reply #3 on: January 06, 2007, 06:46:25 PM »
No, it's simply bitrate, much like audio bitrate.
Logged

Offline d47

  • Member
  • *
  • Posts: 19
Re: batch mpeg encoding
« Reply #4 on: January 06, 2007, 07:36:07 PM »
oh  :D i see, thanks
Logged

Offline d47

  • Member
  • *
  • Posts: 19
Re: batch mpeg encoding
« Reply #5 on: January 13, 2007, 04:53:34 AM »
ok well i found a solution so for any1 who reads this in the future here it is:

for i in *.avi; do ffmpeg -i "$i" -s 320x240 -vcodec mpeg2video -acodec mp3 -ac 2 -ar 44100 -ab 192 -r 24 "$i".mpg; done

be sure to change the *.avi to whatever the file extension is that your transcoding from and to change 320x240 to the resolution of your players screen, if you run ffmpeg -h you get a list of all the available options that you can set, for example to set the bitrate to 600 use "-v 600" etc. also in case you didnt notice ffmpeg is a program for linux i dont know if there is a windows version and the "for i in blah blah" is bash script and wont work in windows, you must have ffmpeg installed to be able to use the ffmpeg command.

thx and hopfully thats usefull to some people ^^ and i should really have known this before now =/
Logged

Offline matho53

  • Member
  • *
  • Posts: 1
Re: batch mpeg encoding
« Reply #6 on: January 14, 2007, 07:27:34 PM »
Hi all if you were looking for a windows batch mpeg encoding software i have written one to suit mencoder...

have a look at
http://sourceforge.net/projects/smsg/

It is a c# frontend and you'll probably need .Net 2.0 framework installed.
If you download the setup it pre-packages mencoder, mplayer, smsg and all the codecs...

It is a very simple batch mencoder trans-coding app!

cheers matho.
Logged

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: batch mpeg encoding
« Reply #7 on: January 15, 2007, 03:34:32 AM »
In case anyone needs a Windows app, I use MediaCoder 0.5.1-r9.  It's a GNU project also.  Same settings apply as above and depend on the device in use.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  batch mpeg encoding
 

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

Page created in 0.09 seconds with 15 queries.