Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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? :)

share|improve this question
    
Similar question: askubuntu.com/q/1691/667 –  dv3500ea Dec 14 '10 at 17:54
    
i'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 –  hbdgaf Dec 15 '10 at 14:16
    
Yes, it's about sync issues. :) –  Ramon Tayag Dec 15 '10 at 14:55
    
Just 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 Dec 15 '10 at 15:55

10 Answers 10

up vote 3 down vote accepted

winff Install 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.

share|improve this answer
    
This 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 Dec 15 '10 at 15:49

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.

share|improve this answer
3  
This preserved the quality the best, I used this without the resize part though. Thanks! –  penner Jan 29 '13 at 0:52

You can try with ffmpeg:

ffmpeg -i input.ogv output.avi
share|improve this answer
1  
So 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 Dec 15 '10 at 14:59
    
*** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. –  penner Jan 28 '13 at 22:46

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

share|improve this answer
    
Hmm.. unfortunately, it didn't work for me. I'll be trying other stuff too. –  Ramon Tayag Dec 15 '10 at 14:56
    
that'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. –  hbdgaf Dec 15 '10 at 14:58

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.

alt text

share|improve this answer

mencoder is very good at these sort of things. Earlier today I wrote about making screencasts in Ubuntu using recordmydesktop and then converting the ogv files into avi with xvid video and mp3 audio. You can find it at http://binwaheed.blogspot.com/2010/12/creating-screencast-in-ubuntu-linux.html

share|improve this answer
    
Whilst 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. –  fossfreedom Apr 22 '12 at 16:32

Try avidemux Install avidemux , it's available in the repositories and has a intuitive GUI.

share|improve this answer
1  
It can't open ogv files. –  Ramon Tayag Dec 15 '10 at 15:52

for me the next combination works

sudo apt-get install ffmpeg
ffmpeg -sameq -i /home/xxxx/x.ogv /home/xxx/x.avi

more detail here http://linux.bzic.org/cum-fac-screencast-captura-de-pe-monitor-in-ubuntu-gnulinux/

share|improve this answer

Try Mobile Media Converter. It has a really simple GUI but it can do what you are trying to do.

share|improve this answer

Personally recommend a good guide: http://www.bigasoft.com/articles/ogv-converter-convert-ogv-to-avi-mp4-wmv-mpeg-flv.html. It is quite helpful.

share|improve this answer
    
Welcome to Ask Ubuntu! Whilst 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. –  Aditya Mar 13 '13 at 12:46

protected by Community Apr 18 at 7:06

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.