Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th April 2006, 08:21 PM
sunny Offline
Registered User
 
Join Date: Nov 2004
Posts: 16
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
Reply With Quote
  #2  
Old 11th April 2006, 09:43 AM
Marvelous Offline
Registered User
 
Join Date: Mar 2006
Posts: 15
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
Reply With Quote
  #3  
Old 11th April 2006, 03:19 PM
sunny Offline
Registered User
 
Join Date: Nov 2004
Posts: 16
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.
Reply With Quote
  #4  
Old 11th April 2006, 05:17 PM
Marvelous Offline
Registered User
 
Join Date: Mar 2006
Posts: 15
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
Reply With Quote
  #5  
Old 10th May 2006, 04:47 AM
axelseap
Guest
 
Posts: n/a
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
Reply With Quote
  #6  
Old 28th June 2006, 02:52 AM
sunny Offline
Registered User
 
Join Date: Nov 2004
Posts: 16
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.
Reply With Quote
  #7  
Old 9th September 2006, 05:12 PM
bmagyarkuti Offline
Registered User
 
Join Date: Jul 2006
Location: Hungary, Vác
Age: 26
Posts: 12
I have the same problem, waiting for your answers...
__________________
/barna
Reply With Quote
  #8  
Old 16th February 2008, 03:18 AM
manoynmonic Offline
Registered User
 
Join Date: Jan 2008
Location: Thailand
Posts: 77
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
Reply With Quote
  #9  
Old 9th December 2008, 01:13 AM
Raptor13 Offline
Registered User
 
Join Date: Jun 2007
Location: Saint-Étienne du Rouvray, France
Age: 27
Posts: 40
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...
Reply With Quote
  #10  
Old 9th December 2008, 03:02 PM
manoynmonic Offline
Registered User
 
Join Date: Jan 2008
Location: Thailand
Posts: 77
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

Quote:
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 12:01 AM.
Reply With Quote
  #11  
Old 6th June 2010, 08:03 PM
Devanna
Guest
 
Posts: n/a
windows_xp_2003safari
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.
Reply With Quote
  #12  
Old 6th June 2010, 08:10 PM
leigh123linux
Guest
 
Posts: n/a
linuxfedorafirefox
Re: convert rmvb to avi

Quote:
Originally Posted by Devanna View Post
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
Reply With Quote
Reply

Tags
avi, convert, rmvb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
everything installed but cant play rmvb arshad3m Using Fedora 3 9th August 2008 09:59 PM
how to play rmvb file sabarish737 Using Fedora 2 4th December 2007 06:56 AM
how to play rmvb sabarish737 Using Fedora 1 6th November 2007 05:05 PM
Convert rmvb divx error flebber Using Fedora 0 13th January 2007 03:41 AM


Current GMT-time: 15:04 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Kamyshlov Travel Photos on Instagram - Kayanza Photos on Instagram - Slonim Travel Photos on Instagram