LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2009, 12:04 PM   #1
jefm
Member
 
Registered: Oct 2009
Location: Missouri
Distribution: Ubuntu, Android
Posts: 35
Blog Entries: 1

Rep: Reputation: 16
How to convert Real / Realvideo files to mpeg or avi


I'm a total lackey with all the video codecs but have been asked if there's some way to do this. We need to get .rm videos converted into something, you know, "more mainstream" instead of the proprietary Real format so that I can edit them with an NLE. Thanks for any and all help.
 
Old 12-09-2009, 12:44 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I think you would have to use mencoder. ffmpeg won't work, because AFAIK it doesn't have the proprietary codec needed for this.

Anyway, here's an example conversion to say x264 using 2 pass:

Code:
mencoder input.avi -oac faac -faacopts quality=50 -ovc x264 -x264encopts qp=25:subq=6:frameref=5:bframes=3:8x8dct:b_pyramid:weight_b:keyint=240:direct_pred=auto:mixed_refs:trellis=1:threads=auto:pass=1 -nosound -o /dev/null; mencoder input.avi -oac faac -faacopts quality=50 -ovc x264 -x264encopts qp=25:subq=6:frameref=5:bframes=3:8x8dct:b_pyramid:weight_b:keyint=240:direct_pred=auto:mixed_refs:trellis=1:threads=auto:pass=2 -o output.avi
Depending on the input audio, you can also change '-oac faac -faacopts quality=50' to either '-oac mp3lame -lameopts q=2' for mp3 audio, or to '-oac copy' to copy the original audio (if possible).

If you run into a/v desync, one thing that you might have to do is encode only the video with mencoder and then mux the audio back in with ffmpeg ... which is more complicated.

If you want a GUI try avidemux, but I've had problems with it and prefer just the command line.

Last edited by H_TeXMeX_H; 12-09-2009 at 12:47 PM.
 
1 members found this post helpful.
Old 12-10-2009, 11:00 AM   #3
jefm
Member
 
Registered: Oct 2009
Location: Missouri
Distribution: Ubuntu, Android
Posts: 35

Original Poster
Blog Entries: 1

Rep: Reputation: 16
Thanks for the help TexMex. I had a problem installing mplayer though, this probably deserves another thread, but thought I'd post here before making a big deal out of it.
Right now, I get:
Code:
jeffm@jeffm-wks1:~/down/x264$ mplayer
mplayer: error while loading shared libraries: libx264.so.65: cannot open shared object file: No such file or directory
jeffm@jeffm-wks1:~/down/x264$ ldd /usr/bin/mplayer |grep 264
        libx264.so.65 => not found
I got the x264 thing from Videolan and compiled it. They had a .deb (I'm on Debian Lenny) but it was libx264.so.60 and that might not count. There is a command to re-link libraries (name of command forgotten) which I ran, it did not make a difference. Thanks for any help.
 
Old 12-10-2009, 11:14 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You can't relink it, you should instead either recompile mplayer or install version 65 of libx264.
 
Old 12-10-2009, 12:15 PM   #5
jefm
Member
 
Registered: Oct 2009
Location: Missouri
Distribution: Ubuntu, Android
Posts: 35

Original Poster
Blog Entries: 1

Rep: Reputation: 16
Thanks again TexMex, I uninstalled the .deb then compiled from scratch. But I think I started peeling an onion, I can hear audio from the show but no video is displayed. I had to do a mknod for the framebuffer device.

Code:
MPlayer SVN-r29982-snapshot-4.3.2 (C) 2000-2009 MPlayer Team

Playing 306 - Sexual Harassment Panda.rm.
REAL file format detected.
Stream description: RealVideoPremierePlugIn-VIDEO
Stream mimetype: video/x-pn-realvideo
[real] Video stream found, -vid 0
Stream description: RealVideoPremierePlugIn-AUDIO
Stream mimetype: audio/x-pn-realaudio
[real] Audio stream found, -aid 1
VIDEO:  [RV13]  320x240  24bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 title: Episode 306 - Sexual Harrassment Panda
 author: Captured and encoded by BernieC
 copyright: No no, MY name is Kid Rock.
Can't open /dev/fb0: No such device
[fbdev2] Can't open /dev/fb0: No such device
VO: [v4l2] No such file or directory
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
[mga] Found MGA G400/G450
Matrox MGA G200/G400/G450 YUV Video interface v2.01 (c) Aaron Holtzman & A'rpi
[mga] detected RAMSIZE is 16 MB
[mga] Set write-combining type of video memory
syncfb (mga): IRQ disabled in mga_vid.c
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffrv10] vfm: ffmpeg (FFmpeg RV10)
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 16000 Hz, 2 ch, s16le, 40.0 kbit/7.81% (ratio: 5000->64000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 16000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [cvidix] 320x240 => 320x240 Planar YV12 
vo_cvidix: Screen width not set (see -screenw), assuming 640 pixels.
vo_cvidix: Screen height not set (see -screenh), assuming 480 pixels.
A:   6.3 V:   6.3 A-V: -0.004 ct: -0.275  72/ 72  0%  0%  0.2% 0 0                                                                        

MPlayer interrupted by signal 2 in module: sleep_timer
A:   6.5 V:   6.5 A-V: -0.004 ct: -0.276  73/ 73  0%  0%  0.2% 0 0                                                                        
Exiting... (Quit)
jeffm@jeffm-wks1:~$ ls /dev/fb0
/dev/fb0
jeffm@jeffm-wks1:~$
 
Old 12-10-2009, 01:59 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Ok, how did you compile it ? I mean what did you run ? I notice that it's using the vidix driver, try using 'xv' instead if you can.

Now, there are multiple solutions to this, you can use the .deb mplayer, but must find the right .deb package of x264 to go with it ... otherwise you'll have to compile it, in which case make sure to have all the libraries installed before compiling mplayer, otherwise it won't find them.
 
Old 12-10-2009, 03:29 PM   #7
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Tovid might work. Add the following to your sources.list:
Code:
# tovid
deb http://tovid.sourceforge.net/download/debian stable contrib
and then, using your whatever your preferred installation method is (IE, "aptitude install tovid-gui"), install tovid-gui. Afterward, run "tovidgui" (for some reason, the package is named "tovid-gui" with a hyphen, but the actual program is named "tovidgui"). Anyway, this program might help convert your realplayer video into mpg. It can use either ffmpeg (which I have more luck with) or mpeg2enc (see the encoding drop-down arrow option when the video to be converted is selected.)

For further information, see Tovid site.

Note: I wasn't sure which version of Debian you were using, so for the repository above I just made it "stable". If you're using something else (testing or unstable), then use that instead.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Batch convert MPEG files to AVI Steel_J LinuxAnswers Discussion 5 08-14-2013 04:40 AM
LXer: QVideoConverter - Convert Video Files (AVI/MPEG) to DivX in openSUSE LXer Syndicated Linux News 0 10-14-2008 06:30 AM
Need to convert SWF to AVI or MPEG 2Pacalypse Linux - Software 1 05-22-2007 01:18 PM
Convert AVI to MPEG? mrgrieves Linux - Software 1 07-10-2004 03:04 PM
convert avi to mpeg xgreen Linux - Software 7 11-30-2003 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration