ffmpeg: converting mp4 to webm (vp8)
Hi. I'm no expert at video transcoding, but I have this project where I am transcoding 3gp videos from my cellphone into webm files that I can embed on my Web site. I managed to extract the mpeg4 video from all the 3gp files (don't need the audio) and put them into .mp4 files using ffmpeg and a ruby script. Then I figured out that vlc has a cool "convert" menu that allows me to convert an mp4 file into a VP8/Webm file, which worked great.
However, I wanted to automate that last step in a script (I have lots of videos to convert). I know that VLC is using ffmpeg, so if I could figure out the raw ffmpeg command I would be able to create the script easily enough. But I can't. After going through the man page I thought it would be something like this: Code:
ffmpeg -i Android-20110922-VIDEO0015.mp4 -vcodec vp8 -target webm Android-20110922-VIDEO0015.webm Code:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Android-20110922-VIDEO0015.mp4': Does someone know the correct syntax? |
I would omit the '-target' if you can. Specify everything else if you need to.
Why not try vpxenc, there are some examples here: http://www.webmproject.org/tools/enc..._command_lines |
The latest FFmpeg has some libvpx presets that might be helpful:
Code:
root@skamandros/home/andrew# find /usr/share -iname 'libvpx*' |
Quote:
It's kind of funny that ffmpeg could figure out what I wanted to do based solely on filename extensions, but I couldn't figure out how to tell it what I wanted it to do using exact command line switches. |
All times are GMT -5. The time now is 12:56 AM. |