Hi,
I need to convert mp4 to ogv using mencoder or ffmpeg.
I tried oggconvert but it did not work for this particular mp4 file.
Thanks.
Hi,
I need to convert mp4 to ogv using mencoder or ffmpeg.
I tried oggconvert but it did not work for this particular mp4 file.
Thanks.
1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
GNU/Linux User #470660 – Ubuntu User #28226
Isaac Asimov: "I do not fear computers. I fear the lack of them."
Generally, "ffmpeg input ouput.ogg" will work, but by default, for some unknown reason, ffmpeg will use FLAC instead of vorbis for audio with OGG container, so vorbis must be specified:
Code:ffmpeg -i kideatsdirt.mp4 -acodec vorbis -vcodec libtheora kideatsdirt.ogv
Output:
Code::~/Desktop$ ffmpeg -i a.mp4 -acodec vorbis -vcodec libtheora a.ogv FFmpeg version r11872+debian_3:0.svn20080206-12ubuntu3, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libfaad --enable-libfaadbin --enable-liba52 --enable-liba52bin --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-altivec --disable-vis --enable-shared --disable-static libavutil version: 49.6.0 libavcodec version: 51.50.0 libavformat version: 52.7.0 libavdevice version: 52.0.0 built on Oct 3 2008 22:40:31, gcc: 4.3.2 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a.mp4': Duration: 00:21:35.1, start: 0.000000, bitrate: 492 kb/s Stream #0.0(und): Video: h264, yuv420p, 352x264 [PAR 0:1 DAR 0:1], 25.00 tb(r) Stream #0.1(und): Audio: mp3, 22050 Hz, stereo, 128 kb/s Unable to find a suitable output format for 'a.ogv'
1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
GNU/Linux User #470660 – Ubuntu User #28226
Isaac Asimov: "I do not fear computers. I fear the lack of them."
Curse these multiple ffmpeg versions! Try this:
Your version seems like it doesn't know what ogv is, so it has to be told with "-f ogg". This code will use the default bitrate of 200k, so you may want to increase that with "-b 512k" or whatever. Same for audio, default is 64k, so change it with "-ab 128k".Code:ffmpeg -i a.mp4 -acodec vorbis -vcodec libtheora -f ogg a.ogv
Last edited by FakeOutdoorsman; November 12th, 2008 at 10:23 PM.
Hi,
I tried
but no luck.Code:ffmpeg -i a.mp4 -acodec vorbis -vcodec libtheora -f ogg a.ogv
Then I triedBoth methods recorded the full length and the sound was perfect. However the video was garbled.Code:ffmpeg -i a.mp4 -b 1024k -acodec vorbis -vcodec libtheora -f ogg a.ogv
What I did in the end was converted the file using Media Coder in Windows and then converted the file from avi to ogv using OGGConvert in Ubuntu.
Done.
Edit: Granted, I could have converted the mp4 file to an avi file in Ubuntu. It would still be preferable to have a method to do it in Mencoder or FFmpeg though.
Last edited by Rytron; November 25th, 2008 at 07:10 PM.
1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
GNU/Linux User #470660 – Ubuntu User #28226
Isaac Asimov: "I do not fear computers. I fear the lack of them."
Using WIndows is no solution for me. Anybody got an update on that?
Need to convert ogv to mpeg or mp4. VLC won't work. Avidemux doesn't recognize ogv files.
i'm stuck.
Bookmarks