Hi all! I am a newbie with editing videos and I didn´t find any topics realted to this. Please forgive if there is some same topic already. I am using RealAlternative, AviSynth and VirtualDub to convert RM (Real Media) files to AVI. Everything is working, but AviSynth is needing FPS of video files. How to determine the FPS of RM file? MediaPlayer Classic, which is used to play RM files for me, can´t show this. I have also another issue. VirtualDub should support RM files with RealAlternative codecs without AviSynth (if I have understood right when reading many forums) Not with me. When I am trying to open RM file on VirtualDub, it gives me a message: "Cannot detect file type of C:\My files\test.rm". However, TMPGENC opens RM file, but when converting with this, the audio is lost. Ok, please answer me everyone who is able to. Thanks in advance Oole
The fps can be a bit tricky as rm supports VFR (variable frame rate). If you have the real media shell extension installed, then if you right click and select properties it will list the framerate as well as other info. No, VDub shouldn't as there are no VFW/ACM decoders, just dshow which TMPGEnc supports for input. Also VDub doesn't support the rm container. About TMPGEnc. You could always decode the audio first.
Thanks for your reply. How to get real media shell extension installed without need to install realplayer? You said that "You could always decode the audio first". But this doesn´t work. if I try to decode only audio on TMPGEnc, I will get a silent audio file. Oole
I meant use something else like mplayer or whatever. The shell extension is not from real. It was if I recall correcly by Dark-Cracker, the developer of AutoRealVideo 9/10. I just tried a RV8 sample clip and for me TMPGEnc won't even open the video (just black frames). Everything works fine via graphedit, etc. though. Ok, video works fine with the latest official binary. Latest CVS build doesn't work though.
> I meant use something else like mplayer or whatever. There is no graphical MPlayer for Windows. I don´t like any command-line players. Do you have any freeware graphical programs which could do that? > It was if I recall correcly by Dark-Cracker, the > developer of AutoRealVideo 9/10. Where it can be downloaded? > Ok, video works fine with the latest official binary. > Latest CVS build doesn't work though. What do you actually mean? Binary of which program? Thanks Oole
Graphedit is free and can do it. To be honest though it would take longer and is harder than mplayer which is just something like mplayer.exe -ao pcm:file=out.wav -vo null -vc dummy input.rm (Syntax is/was a little different in older versions). Just substitute your file for input.rm and call out.wav whatever you like or leave it out and mplayer will do the default filename which is audioout.wav or something like that. Graphedit. render the file, delete the video and audio renders, replacing the audio one with a wav dest and file writer filter. Play the graph and it will create the wav. No idea where it can be downloaded. You would need to check the doom9 real media forum as that is where I would have found it. If you get stuck I am sure that I would have it backed up on a CD. Binary of Gabest's realmediasplitter.ax.
F:\Program Files\MPlayer>mplayer.exe -ao pcm:file=out.wav -vo null -vc test.rm MPlayer 1.0pre6-3.2.3 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon Thunderbird (Family: 6, Stepping: 4) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled with runtime CPU detection - WARNING - this is not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection. Usage: mplayer [options] [url|path/]filename Basic options: (complete list in the man page) -vo <drv[:dev]> select video output driver & device ('-vo help' for a list) -ao <drv[:dev]> select audio output driver & device ('-ao help' for a list) dvd://<titleno> play DVD title from device instead of plain file -alang/-slang select DVD audio/subtitle language (by 2-char country code) -ss <timepos> seek to given (seconds or hh:mm:ss) position -nosound do not play sound -fs fullscreen playback (or -vm, -zoom, details in the man page) -x <x> -y <y> set display resolution (for use with -vm or -zoom) -sub <file> specify subtitle file to use (also see -subfps, -subdelay) -playlist <file> specify playlist file -vid x -aid y select video (x) and audio (y) stream to play -fps x -srate y change video (x fps) and audio (y Hz) rate -pp <quality> enable postprocessing filter (details in the man page) -framedrop enable frame dropping (for slow machines) Basic keys: (complete list in the man page, also check input.conf) <- or -> seek backward/forward 10 seconds up or down seek backward/forward 1 minute pgup or pgdown seek backward/forward 10 minutes < or > step backward/forward in playlist p or SPACE pause movie (press any key to continue) q or ESC stop playing and quit program + or - adjust audio delay by +/- 0.1 second o cycle OSD mode: none / seekbar / seekbar + timer * or / increase or decrease PCM volume z or x adjust subtitle delay by +/- 0.1 second r or t adjust subtitle position up/down, also see -vf expand * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * * F:\Program Files\MPlayer> This is the result. Is there any free and practical way to convert RM to AVI? When using these (AviSynth, VD or TMPGENC, RealAlternatuve codecs) everything seems to be such tricky.
Looks like you left dummy out of -vc. Also it could be an older build which would be -ao pcm -aofile output.wav mencoder can convert rm to avi using a variety of codecs. Something like mencoder.exe -oac pcm -ovc lavc -lavcopts vcodec=huffyuv input.rm -o output.avi One other thing. Depending on the codecs used in the rm file you may need the real dll codecs. Graphedit can also convert to avi. You just need to hook the real video decoder upto a dshow encoder then to an avi mux filter with the audio.
Graphedit is difficult to use. And that´s result after adding "dummy" to the command: F:\Program Files\MPlayer>mplayer.exe -ao pcm:file=out.wav -vo null -vc dummy ollila.rm MPlayer 1.0pre6-3.2.3 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon Thunderbird (Family: 6, Stepping: 4) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled with runtime CPU detection - WARNING - this is not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection. c:/windows/fonts/arial.ttf doesn't look like a font description, ignoring. Cannot load font: c:/windows/fonts/arial.ttf Playing ollila.rm. REAL file format detected. ======= WAVE Format ======= Format Tag: 28515 (0x6F63) Channels: 1 Samplerate: 22050 avg byte/sec: 32041 Block align: 558 bits/sample: 16 cbSize: 18 Unknown extra header dump: [5d] [0] [10] [0] [7] [0] [2e] [2] [8] [0] [1] [0] [0 ] [2] [2] [0] [0] [18] =========================== VIDEO: RV40 [40002000,00081020] 320x240 (aspect 0.00) 25.00 fps VIDEO: [RV40] 320x240 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s) Clip info: name: A-plus 27.1.2005 klo 21.09 author: YLE24 copyright: Yleisradio Oy ========================================================================== Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook.so.6.0' Error loading dll ERROR: Could not open required DirectShow codec cook.so.6.0. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook3260.dll' Error loading dll ERROR: Could not open required DirectShow codec cook3260.dll. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook.bundle/Contents/MacOS/cook' Error loading dll ERROR: Could not open required DirectShow codec cook.bundle/Contents/MacOS/cook. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Cannot find codec for audio format 0x6B6F6F63. Read DOCS/HTML/en/codecs.html! ========================================================================== ========================================================================== Forced video codec: dummy Cannot find codec matching selected -vo and video format 0x30345652. Read DOCS/HTML/en/codecs.html! ========================================================================== Exiting... (End of file) And that´s after trying mencoder: F:\Program Files\MPlayer>mencoder.exe -oac pcm -ovc lavc -lavcopts vcodec=huffyu v ollila.rm -o output.avi MEncoder 1.0pre6-3.2.3 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon Thunderbird (Family: 6, Stepping: 4) Detected cache-line size is 64 bytes CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled with runtime CPU detection - WARNING - this is not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection. File not found: 'frameno.avi' Failed to open frameno.avi success: format: 0 data: 0x0 - 0x3f6601c REAL file format detected. ======= WAVE Format ======= Format Tag: 28515 (0x6F63) Channels: 1 Samplerate: 22050 avg byte/sec: 32041 Block align: 558 bits/sample: 16 cbSize: 18 Unknown extra header dump: [5d] [0] [10] [0] [7] [0] [2e] [2] [8] [0] [1] [0] [0 ] [2] [2] [0] [0] [18] =========================== VIDEO: RV40 [40002000,00081020] 320x240 (aspect 0.00) 25.00 fps VIDEO: [RV40] 320x240 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:11 fourcc:0x30345652 size:320x240 fps:25.00 ftime:=0.0400 ========================================================================== Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook.so.6.0' Error loading dll ERROR: Could not open required DirectShow codec cook.so.6.0. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook3260.dll' Error loading dll ERROR: Could not open required DirectShow codec cook3260.dll. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook.bundle/Contents/MacOS/cook' Error loading dll ERROR: Could not open required DirectShow codec cook.bundle/Contents/MacOS/cook. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Cannot find codec for audio format 0x6B6F6F63. Read DOCS/HTML/en/codecs.html! ========================================================================== Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 ========================================================================== Opening video decoder: [realvid] RealVideo decoder opening win32 dll '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 opening win32 dll '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 opening win32 dll '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... I have installed RealAlternative with codecs. Are these enough? Thanks Oole
No. You need to download the realmedia dll's from mplayerhq and put them in the codecs dir or at least the two that it mentioned or one if we are just talking audio.
Where is that codecs dir in Windows environment that the windows-all-something.zip (If I have understood right) should be extracted? Thanks Oole
When you unpacked mplayer it should have created a subdir "codecs". This is where the codecs go. These should be the only ones that you need: http://www1.mplayerhq.hu/MPlayer/releases/codecs/rp9codecs-win32-20050115.tar.bz2
Now the message I receive is following: F:\Program Files\MPlayer>mplayer.exe -ao pcm:file=out.wav -vo null -vc dummy oll ila.rm MPlayer 1.0pre6-3.2.3 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon Thunderbird (Family: 6, Stepping: 4) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled with runtime CPU detection - WARNING - this is not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection. c:/windows/fonts/arial.ttf doesn't look like a font description, ignoring. Cannot load font: c:/windows/fonts/arial.ttf Playing ollila.rm. REAL file format detected. ======= WAVE Format ======= Format Tag: 28515 (0x6F63) Channels: 1 Samplerate: 22050 avg byte/sec: 32041 Block align: 558 bits/sample: 16 cbSize: 18 Unknown extra header dump: [5d] [0] [10] [0] [7] [0] [2e] [2] [8] [0] [1] [0] [0 ] [2] [2] [0] [0] [18] =========================== VIDEO: RV40 [40002000,00081020] 320x240 (aspect 0.00) 25.00 fps VIDEO: [RV40] 320x240 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s) Clip info: name: A-plus 27.1.2005 klo 21.09 author: YLE24 copyright: Yleisradio Oy ========================================================================== Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook.so.6.0' Error loading dll ERROR: Could not open required DirectShow codec cook.so.6.0. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook3260.dll' Audio codec: [7] 32 kbps Voice Audio bitrate: 32.041 kbit/s (4005 bps) AUDIO: 22050 Hz, 1 ch, 16 bit (0x10), ratio: 4005->44100 (32.0 kbit) Selected audio codec: [racookwin] afm:realaud (Win32 RealAudio COOK) ========================================================================== ========================================================================== Forced video codec: dummy Cannot find codec matching selected -vo and video format 0x30345652. Read DOCS/HTML/en/codecs.html! ========================================================================== Checking audio filter chain for 22050Hz/1ch/16bit -> 22050Hz/2ch/16bit... AF_pre: af format: 2 bps, 1 ch, 22050 hz, little endian signed int AF_pre: 22050Hz 1ch Signed 16-bit (Little-Endian) [AO PCM] File: audiodump.wav (WAVE) PCM: Samplerate: 22050Hz Channels: Stereo Format Signed 16-bit (Little-Endian) [AO PCM] Info: fastest dumping is achieved with -vc dummy -vo null PCM: Info: to write WAVE files use -waveheader (default). AO: [pcm] 22050Hz 2ch Signed 16-bit (Little-Endian) (2 bps) Building audio filter chain for 22050Hz/1ch/16bit -> 22050Hz/2ch/16bit... Video: no video Starting playback... bad packet len (0) bad packet len (0) bad packet len (0) Exiting... (End of file) F:\Program Files\MPlayer> What´s wrong? This clip works fine in other programs. Oole
[AO PCM] File: audiodump.wav (WAVE) So there is no audiodump.wav? Because I just tested a file with similar spec audio and it went fine. If you just drop the rm file on mplayer.exe, does it play? If not then I guess you had better try something else. All I can say is that it works ok here.
Yeah sorry. It´s really there. audiodumb.wav exists on mplayer directory. But when trying to convert using mencoder, is doesn´t seem to work: F:\Program Files\MPlayer>mencoder.exe -oac pcm -ovc lavc -lavcopts vcodec=huffyu v ollila.rm -o output.avi MEncoder 1.0pre6-3.2.3 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon Thunderbird (Family: 6, Stepping: 4) Detected cache-line size is 64 bytes CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled with runtime CPU detection - WARNING - this is not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection. File not found: 'frameno.avi' Failed to open frameno.avi success: format: 0 data: 0x0 - 0x3f6601c REAL file format detected. ======= WAVE Format ======= Format Tag: 28515 (0x6F63) Channels: 1 Samplerate: 22050 avg byte/sec: 32041 Block align: 558 bits/sample: 16 cbSize: 18 Unknown extra header dump: [5d] [0] [10] [0] [7] [0] [2e] [2] [8] [0] [1] [0] [0 ] [2] [2] [0] [0] [18] =========================== VIDEO: RV40 [40002000,00081020] 320x240 (aspect 0.00) 25.00 fps VIDEO: [RV40] 320x240 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:11 fourcc:0x30345652 size:320x240 fps:25.00 ftime:=0.0400 ========================================================================== Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook.so.6.0' Error loading dll ERROR: Could not open required DirectShow codec cook.so.6.0. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook3260.dll' Error loading dll ERROR: Could not open required DirectShow codec cook3260.dll. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Opening audio decoder: [realaud] RealAudio decoder opening win32 dll 'cook.bundle/Contents/MacOS/cook' Error loading dll ERROR: Could not open required DirectShow codec cook.bundle/Contents/MacOS/cook. Read the RealAudio section of the DOCS! ADecoder preinit failed ADecoder init failed Cannot find codec for audio format 0x6B6F6F63. Read DOCS/HTML/en/codecs.html! ========================================================================== Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 ========================================================================== Opening video decoder: [realvid] RealVideo decoder opening win32 dll '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 opening win32 dll '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 opening win32 dll '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... F:\Program Files\MPlayer> Celtic -very much thanks for your help. Can you still give me advices to get converting working. And a good url or something for very short introduction and help for mplayer basic commands Oole
ERROR: Could not open required DirectShow codec cook3260.dll. ERROR: Could not open required DirectShow codec drv43260.dll. Those are your problems. Looks like maybe mencoder doesn't expect codecs to be in the codecs dir. Try moving those two dll's in with mencoder.exe. The full mplayer manual is on the mplayerhq site. Should also point out that I have never tried encoding huffyuv with mencoder like that. Should work though you may need to use format=422P or similar to convert to a format that it can handle. Another option would be vcodec=ffv1:vstrict=-1. This should also give you smaller filesizes. However both being lossless codecs, expect fairly large filesizes. For FFV1 decoding you will need a recent build of ffdshow installed.
Thanks. I moved these files and the result is: 1 duplicate frame(s)! ODML: Aspect information not (yet?) available or unspecified, not writing vprp h eader. Pos: 730.0s 18252f (48%) 72fps Trem: 4min 126mb A-V:-0.027 [0:705] Something like that about million times, then it made an output avi but only with sound. No video. MediaPlayer Classic says when I open it that I am needing AVI splitter. And then mpc will direct me to ffdshow website. I have installed ffdshow so what´s next I would try? Oole
mencoder skips dup frames. Did you use ffv1 or huffyuv? Which everone you used make sure that it is set to libavcodec and not disabled in ffdshows decoder config. You might also want to try playing the file back via mplayer. Just drop the avi on mplayer.exe and it should play, complete with video.