Video converter: ogv to avi (or another more common format)

26,684

Solution 1

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.

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.

alt text

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

Share:
26,684

Related videos on Youtube

Ramon Tayag
Author by

Ramon Tayag

Updated on September 17, 2022

Comments

  • Ramon Tayag
    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
      dv3500ea over 13 years
      Similar question: askubuntu.com/q/1691/667
    • RobotHumans
      RobotHumans over 13 years
      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
    • Ramon Tayag
      Ramon Tayag over 13 years
      Yes, it's about sync issues. :)
    • Ramon Tayag
      Ramon Tayag over 13 years
      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
    Ramon Tayag over 13 years
    Hmm.. unfortunately, it didn't work for me. I'll be trying other stuff too.
  • RobotHumans
    RobotHumans over 13 years
    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.
  • Ramon Tayag
    Ramon Tayag over 13 years
    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
    Ramon Tayag over 13 years
    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
    Ramon Tayag over 13 years
    It can't open ogv files.
  • nilsonneto
    nilsonneto about 12 years
    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.
  • penner
    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
    penner over 11 years
    This preserved the quality the best, I used this without the resize part though. Thanks!
  • Luís de Sousa
    Luís de Sousa over 9 years
    This method does not work on Ubuntu 14.04.
  • Luís de Sousa
    Luís de Sousa over 9 years
    WinFF 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
    Luís de Sousa over 9 years
    This 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.