<---- template headericclude ----->
convert rmvb to avi
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 12 of 12
  1. #1
    sunny Guest

    convert rmvb to avi

    In this article, I am going to show how to convert a rmvb file to an avi file (mpeg4 video + mp3 audio)

    Tools
    1. mplayer
    2. mencoder
    3. essential codecs for mplayer

    note: to install the above tools, please take a look to http://stanton-finley.net/fedora_cor...ion_notes.html

    File
    1. rmvb file: in.rmvb
    2. avi file: out.avi

    Information for the avi file
    Video
    format: mpeg4
    bitrate:1200 kb/s
    fps: 25 fps
    Audio
    format: mp3
    bitrate: 128 kb/s

    Command
    mencoder in.rmvb -oac mp3lame -lameopts preset=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200 -ofps 25 -of avi -o out.avi

    Explanation
    -oac: output audio codec
    mp3lame: library used for audio encoding
    -lameopts: options used along with lame
    preset: values for audio bitrate, you can set 64, 128, 224, etc
    -ovc: ouput video codec
    lavc: library used for video encoding
    -lavcopts: options used along with lavc
    vcodec: video codec, you can use mpeg1video, mpeg4, etc
    vbitrate: video bitrate, you can set 600, 1000, 1200, etc
    -ofps: outpt frame per second ( fps)
    -of: output file container type
    -o: output filename

    Mencoder is a powerful tool to convert multimedia, just like the above example, we can use it to convert rmvb to avi. With suitable library and codecs, we can even use it to convert file format like rm, wmv etc.

    Reference link:
    http://gentoo-wiki.com/HOWTO_Mencode...oduction_Guide

  2. #2
    Marvelous Guest
    working on encoding an avi to vcd format.
    I am fairly new to linux. i searched for alot of guides, but i have to admit that ur guide is the best i have seen so far.
    i am off doing the reading the trying to understand how this encoder works.
    wish me luck creating a vcd.
    the only reason i had xp installed is because nero did the encoding for me, but i decided to delete the windows partion and it has been a while since i burned my own vcd. lets hope i get it done then only i will be relified and wont miss nero on xp anymore.

    Thanks again

  3. #3
    sunny Guest
    Marvelous, thanks your reply.

    To create VCD from an avi files, there are 3 steps to go through:

    1. avi --> mpg
    2. mpg --> image for VCD
    3. burn the VCD

    There are various method to finish step 1, one of them is using mencoder. The details is described in the following link:

    http://www2.mplayerhq.hu/DOCS/HTML/e...t-vcd-dvd.html

    What I prefer is using "ffmpeg" as it is fast and command is simple. Here is the command I use to create mpg file:

    ffmpeg -i input.avi -target pal-vcd output.mpg

    note: above is for pal-vcd, if you want ntsc standard, replace "pal-vcd" by "ntsc-vcd"

    For step2, a tool called "vcdimager" is needed, command is as follows:

    vcdimager input.mpg <---- for single mpg file
    vcdimager input1.mpg input2.mpg input3.mpg <--- for multiple mpg file

    Vcdimager will create 2 files ( videocd.cue and videocd.bin) for burning

    For step3, a tool called "cdrdao" is needed, command is

    cdrdao write --device ATA:1,0,0 --eject videocd.cue

    note: to find the device ID, run "cdrdao scanbus"

    I hope the above method can help, good luck.

  4. #4
    Marvelous Guest
    Thats great !
    its hard work getting to learn all of this, yet you made it look so simple.
    saved your post and backed it up. its very easy to handle... its spoon feeding tbh.
    Thanks a million you made life much more easier !
    Hats off to you

  5. #5
    axelseap Guest
    check out this site, it works reasonably well http://f0rked.com/projects/simplerip the only problem i ran into was i had to change the audio codec from copy to mp3lame, and also add the appropriate lameopts from the command above, but it's just so easy and requires almost no thought

  6. #6
    sunny Guest
    After updated mplayer and mencoder to version 1.0-0.28, I got a -vo error (cannot find match codecs) when playing rm/rmvb files. My workaround is to copy the essential codecs to

    /usr/lib/codecs/

    Should anyone have this problem, letś try it and see it works. Good luck.

  7. #7
    bmagyarkuti Guest
    I have the same problem, waiting for your answers...

  8. #8
    Join Date
    Jan 2008
    Location
    Thailand
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I'm way late on this one. Just wanted to say thanks for the help, I can finally re-encode the stuff I (foolishly?) put in rmvb back to a "normal" format. The stuff I encoded with your command wouldn't play on my DIVX player for the kids to watch on tv (worked fine for viewing on the computer of course). The solution was to encode with xvid instead (I believe xvidcore-devel needs to be installed for this to work with mencoder) with something like this:

    mencoder your_input_movie.rmvb -oac mp3lame -lameopts preset=128 -ovc xvid -xvidencopts fixed_quant=4 -of avi -o your_output_movie.avi

    edit: here is a helpful guide by a guy I know: http://www.pclinuxos.com/index.php?o...&topic=49481.0

    Thanks for your post - you got me doing my homework over at the Gentoo wiki (is there anything those guys can't do? )http://gentoo-wiki.com/HOWTO_Mencode...oduction_Guide
    Last edited by manoynmonic; 6th September 2008 at 02:12 AM. Reason: add link

  9. #9
    Join Date
    Jun 2007
    Location
    Saint-Étienne du Rouvray, France
    Age
    37
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried this and i receive this error:

    [Raptor@localhost X Files]$ mencoder p-xfiles0296.rmvb -oac mp3lame -lameopts preset=128 -ovc xvid -xvidencopts fixed_quant=4 -of avi -o p-xfiles0296.aviMEncoder dev-SVN-r27514-4.3.0 (C) 2000-2008 MPlayer Team
    CPU: Mobile AMD Sempron(tm) (Family: 15, Model: 76, Stepping: 2)
    CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection.
    success: format: 0 data: 0x0 - 0x15c30399
    REAL file format detected.
    Stream description: Audio Stream
    Stream mimetype: audio/x-pn-realaudio
    [real] Audio stream found, -aid 0
    Stream description: Video Stream
    Stream mimetype: video/x-pn-realvideo
    [real] Video stream found, -vid 1
    Stream mimetype: logical-fileinfo
    VIDEO: [RV40] 624x256 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:11 fourcc:0x30345652 size:624x256 fps:25.000 ftime:=0.0400
    ================================================== ========================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 44100 Hz, 2 ch, s16le, 64.1 kbit/4.54% (ratio: 8010->176400)
    Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
    ================================================== ========================
    xvid: using library version 1.1.3 (build xvid-1.1.3)
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    ================================================== ========================
    Opening video decoder: [realvid] RealVideo decoder
    Error: /usr/lib/codecs/drvc.so: cannot open shared object file: No such file or directory
    Win32 LoadLibrary failed to load: drvc.so, /usr/lib/codecs/drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.so.
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Win32 LoadLibrary failed to load: drvc.dll, /usr/lib/codecs/drvc.dll, /usr/lib/win32/drvc.dll, /usr/local/lib/win32/drvc.dll
    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.dll.
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Error: /usr/lib/codecs/drv4.so.6.0: cannot open shared object file: No such file or directory
    Win32 LoadLibrary failed to load: drv4.so.6.0, /usr/lib/codecs/drv4.so.6.0, /usr/lib/win32/drv4.so.6.0, /usr/local/lib/win32/drv4.so.6.0
    Error loading dll
    ERROR: Could not open required DirectShow codec drv4.so.6.0.
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Win32 LoadLibrary failed to load: drv43260.dll, /usr/lib/codecs/drv43260.dll, /usr/lib/win32/drv43260.dll, /usr/local/lib/win32/drv43260.dll
    Error loading dll
    ERROR: Could not open required DirectShow codec drv43260.dll.
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Opening video decoder: [realvid] RealVideo decoder
    Error: /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
    Win32 LoadLibrary failed to load: drvc.bundle/Contents/MacOS/drvc, /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc, /usr/lib/win32/drvc.bundle/Contents/MacOS/drvc, /usr/local/lib/win32/drvc.bundle/Contents/MacOS/drvc
    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
    Read the RealVideo section of the DOCS!
    VDecoder init failed
    Cannot find codec matching selected -vo and video format 0x30345652.
    Read DOCS/HTML/en/codecs.html!
    ================================================== ========================

    Exiting...

  10. #10
    Join Date
    Jan 2008
    Location
    Thailand
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had the same problem the other day. It used to work fine. Since Feb. when I made that reply I have since switched to a 64 bit system. That is the only variable for me, so there must be a slightly different way to write up the mencoder command, or perhaps a need to symlink some of those realmedia codecs... I don't really know, so I'll be watching replies to this one...

    Edit: We need to download the drvc.so, which is in the mencoder codec essential package: http://www.mplayerhq.hu/design7/dloa...#binary_codecs

    Error loading dll
    ERROR: Could not open required DirectShow codec drvc.so.
    Edit number 2: I see Ubuntu/Medibuntu has a win64 package. Maybe we have something like that too?
    Last edited by manoynmonic; 10th December 2008 at 01:01 AM.

  11. #11
    Devanna Guest

    Re: convert rmvb to avi

    MelodyCan will convert ALL video formats (do not care is it protected content or not) that you can play with Windows Media player, iTunes player or Apple Quick Time. Media copy protection will be removed after convertion.

  12. #12
    leigh123linux Guest

    Re: convert rmvb to avi

    Quote Originally Posted by Devanna
    MelodyCan will convert ALL video formats (do not care is it protected content or not) that you can play with Windows Media player, iTunes player or Apple Quick Time. Media copy protection will be removed after convertion.

    Banned for spamming

    http://www.eurogamer.net/forum_threa...read_id=179888

Similar Threads

  1. everything installed but cant play rmvb
    By arshad3m in forum Using Fedora
    Replies: 3
    Last Post: 9th August 2008, 09:59 PM
  2. how to play rmvb file
    By sabarish737 in forum Using Fedora
    Replies: 2
    Last Post: 4th December 2007, 07:56 AM
  3. how to play rmvb
    By sabarish737 in forum Using Fedora
    Replies: 1
    Last Post: 6th November 2007, 06:05 PM
  4. Convert rmvb divx error
    By flebber in forum Using Fedora
    Replies: 0
    Last Post: 13th January 2007, 04:41 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]