Skip navigation.

How To Convert Ogg Theora File to Flash Video Format?

How to convert ogg theora(ogg video) file to flash video format(.flv)?

This is a sequel to the "Screencasting With gtk-RecordMyDesktop" blog post. This post answers the question - "How to convert .ogg video to .flv?". gtk-RecordMyDesktop saves files in .ogg format. The screen cast is exported into Ogg Theora format. I wanted to upload some of the screen casts to Youtube. They don't accept video files in Ogg Theora format at Youtube. I had to convert Ogg Theora file into Flash Video format to upload it to Youtube. I did some research on audio and video converters. FFmpeg was the solution to my problem. FFmpeg is a command line tool to convert one video file format to another.

I used the below command to convert Ogg Theora file to .flv format.

ffmpeg -i in.ogg -b 384000 -s 640x480 -pass 1 -passlogfile log-file out.flv

in.ogg was the Ogg Theora file. The above command converted in.ogg to out.flv. I uploaded the out.flv file to Youtube and I was all set.



Which codecs?

I'm getting the same error message as Colin:

admin tells us that I "will require the necessary codecs". Can anyone tell me which codecs are the necessary codecs? Also, where I can I get them, given that I'm running Debian Lenny: Linux 2.6.24-1-amd64 #1 SMP Fri Apr 18 23:08:22 UTC 2008 x86_64 GNU/Linux?

Thanks.

Codec Problem

Thanks for your entry, this is just what I need to do, but the command keeps barfing:

...

[theora @ 0x2b983d54b190]Theora bitstream version 30201
[theora @ 0x2b983d54b190]560 bits left in packet 81
[theora @ 0x2b983d54b190]7 bits left in packet 82
Input #0, ogg, from 'recordmydesktop.ogv':
Duration: 00:01:17.3, start: 2.133333, bitrate: 1337 kb/s
Stream #0.0: Video: 0x0000, 1000000.00 fps(r)
Stream #0.1: Video: theora, yuv420p, 1920x1200, 15.00 fps(r)
Stream #0.2: Audio: vorbis, 22050 Hz, mono, 89 kb/s
File 'out.flv' already exists. Overwrite ? [y/N] Y
PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, flv, to 'out.flv':
Stream #0.0: Video: flv, yuv420p, 640x480, q=2-31, pass 1, 384 kb/s, 15.00 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
[flv @ 0x2b983d54b190]removing common factors from framerate
Unsupported codec (id=0) for input stream #0.0

Any ideas why? I noted when I play the files from recordmydesktop on mplayer it whines about an invalid codec, but then plays it all anyway. I can't even seem to find a way to tell ffmpeg to ignore that stream.

Thanks for any insight!

CT.

First stream needs to go out

Stream #0.0: Video: 0x0000, 1000000.00 fps(r)
Stream #0.1: Video: theora, yuv420p, 1920x1200, 15.00 fps(r)
Stream #0.2: Audio: vorbis, 22050 Hz, mono, 89 kb/s

If you examine this closely you will notice that the first stream is some sort of junk. At least it seams to be to me. You can map it out like this:

ffmpeg -map 0:1 -map 0:2 -i in.ogv out.flv

Have you installed the codecs

To play flv videos and convert other formats to flv you will require the necessary codecs. If you are using Fedora you can get them from rpm.livna.org.

What distribution are you using? Which version of it?

Re: Cinelerra

What happens when you try to launch Cinelerra? How are you trying to launch it? Did the installation complete successfully?

Open the terminal and type cineralla and hit enter. It will provide you more information to troubleshoot the problem.

I got the following error

I got the following error -
cinelerra: error while loading shared libraries: libx264.so.55: cannot open shared object file: No such file or directory

Re: I got the following error

Let's try to see what's happening here.
1. Open the terminal
2. Type su - and hit enter
3. Enter the root password and hit enter
4. Type cinelerra and hit enter

Let us know what happens.

Another thing you could try is:
#yum update cinelerra

Cinelerra

I´ve installed Cinelerra for video editing on PC but it never starts. I have Fedora core 7. I dont know what I done wrong in installation. I just typed ¨yum install cinelerra¨ but still there is problem

Cinelerra Install

I had this same problem installing Cinelerra Heres how i worked around it. I reinstalled fedora 7 and enabled the freshrpms repository then installed cinelerra before installing anything else or doing any updates or adding the livina repository as you se the repos sometimes clash. doing it that way should make it install through yum without a hangup. I know there are other work arounds but since I am a noob that way was easiest for me. It seems like a lot of trouble to do it that way, but the program s incredibly awesome and definately worth the trouble. Hope that helps.
~S~

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Use the special tag [adsense:format:group:channel] or [adsense:block:location] to display Google AdSense ads.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.