Video converter: ogv to avi (or another more common format)
Solution 1
winff
Is a GUI for the command line video converter, FFMPEG. It will convert most any video file that FFmpeg will convert. WinFF does multiple files in multiple formats at one time. You can for example convert mpeg's, flv's, and mov's, all into avi's all at once.
Solution 2
You can use avconv to convert and optionally resize (it is included with ffmpeg):
avconv -i "input.ogv" -vcodec mjpeg -acodec mp2 -s 640x480 -vb 3000k -ab 160k "output.avi"
This converts your video to a .avi file with mjpeg and mp2 codecs for good compatibility.
avconv -i "input.ogv" -vcodec mjpeg -acodec mp2 -s 640x480 -qscale 5 "output.avi"
This converts your video using quality scale.
Solution 3
You can try with ffmpeg:
ffmpeg -i input.ogv output.avi
Solution 4
In terminal type the following,
mencoder input.ogv -o output.avi -oac mp3lame -lameopts fast:preset=standard -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=4000
Change the input.ogv to the name of you of your ogv file.
You can also give the name for the output file by altering output.avi in the above command.
Solution 5
using the -idx switch fixed this for me...discussion here: http://ubuntuforums.org/showthread.php?t=665836
mencoder -idx input.ogv -ovc lavc -oac mp3lame -o output.avi
Related videos on Youtube
Ramon Tayag
Updated on September 17, 2022Comments
-
Ramon Tayag almost 2 years
I've been using recordMyDesktop to record stuff. A little slow to compile but it records fine. However, when I try to convert from ogv to avi (I've used Devede and an mencoder script) the audio and video go out of sync.
Here's the script for reference:
#!/bin/bash # ogv to avi # Call this with multiple arguments # for example : ls *.{ogv,OGV} | xargs ogv2avi N=$#; echo "Converting $N files !" for ((i=0; i<=(N-1); i++)) do echo "converting" $1 filename=${1%.*} #mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o $filename.avi mencoder "$1" -o $filename.avi -oac mp3lame -lameopts fast:preset=standard -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=4000 shift 1 done
Are there good reliable video converters out there? :)
-
dv3500ea over 13 yearsSimilar question: askubuntu.com/q/1691/667
-
RobotHumans over 13 yearsi'm thinking the asker might be trying to use the command from that QA and is having an issue so he asked a different question about the a/v sync
-
Ramon Tayag over 13 yearsYes, it's about sync issues. :)
-
Ramon Tayag over 13 yearsJust picked an answer. I don't know why, but it seems that different things work for different setups. Sucks though that we have to do research regarding this.
-
-
Ramon Tayag over 13 yearsHmm.. unfortunately, it didn't work for me. I'll be trying other stuff too.
-
RobotHumans over 13 yearsthat's odd. this is why i switched to using ffmpeg to do screen capture. gtkrecord does weird stuff with the ogv container and you get unpredictable playback across different players.
-
Ramon Tayag over 13 yearsSo far it looks like the move from mencoder did it for me! Funny thing is, it used to convert properly with my script and with Devede. Then I noticed, about since a week ago, it got out of sync.
-
Ramon Tayag over 13 yearsThis worked for me too. I suspect because it's FFMPEG just like askubuntu.com/questions/17309/…. I'm picking this though because it has the gui. Less for me to memorize!
-
Ramon Tayag over 13 yearsIt can't open ogv files.
-
nilsonneto about 12 yearsWhilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
-
penner over 11 years*** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
-
penner over 11 yearsThis preserved the quality the best, I used this without the resize part though. Thanks!
-
Luís de Sousa over 9 yearsThis method does not work on Ubuntu 14.04.
-
Luís de Sousa over 9 yearsWinFF is presently unusable on Ubuntu 14.04, it fails to find the libxvid encoder. There is a bug report on it: code.google.com/p/winff/issues/…
-
Luís de Sousa over 9 yearsThis is probably the only functional method on Ubuntu 14.04. There is a visible quality degradation (even removing the
-s 640x480
bit) but the end result is acceptable.