Log in

View Full Version : RealMedia VFR to AVI


vlada
7th August 2005, 12:20
Hi,
is there a way to convert a VFR RealMedia video to AVI? It should be theoretically possible by duplicating some fields. From some threads I read it seems that AviSynth won't help. Placing the video to Matroska should work, but what then. IIRC there is a tool that helps converting VFR MKV to AVI, but I don't know is it called and how to use it.
BTW. what is the audio format used in RM videos? Isn't it AAC? If yes, can I demux it to place it in my new AVI file without recompression?

Thank you,
Vlada

bond
7th August 2005, 12:35
why do you need avi?

stephanV
7th August 2005, 12:56
It should be possible to do this with TMPGEnc.

You could get the AAC audio by muxing it into MKV and then extracting it to .aac with MKVToolnix (MKVMerge and MKVExtract). But, like bond asks: why?

vlada
7th August 2005, 15:08
A friend of mine want to play it on a standalone player, so I need to convert it to MPEG-4 AVI or DVD.
I'll try TMPGEnc. Do I need a plugin to read the file in it?

Thank you,
Vlada

stephanV
7th August 2005, 16:01
Then there is no point in keeping the AAC audio since his player wont do that anyway. All you need s the realmedia splitter from Gabest.

superdump
7th August 2005, 16:39
I don't think that there is currently a way of correctly converting a VFR video stream to a correct CFR video stream. I was looking into this myself a couple of weeks ago and the best method of dealing with it seemed to either be reencode with RV if you have to else multiplex into matroska, extract the timecodes using mkvinfo, reencode via avisynth or whatever and then remultiplex to matroska using the timecodes.

I find it very frustrating that we have to do this and would appreciate some solution if anyone has one. I thought maybe an avisynth filter using motion compensated interpolation and a timecode file so that you can specify the input clip (which is VFR being read as CFR, i.e. you would lose audio sync), specify the timecode file and specify an output framerate. The output would most likely suck but, and I'm not saying my meager attempt at 'fixing' the problem is exhaustive, insightful or even a good idea but it's the only thing I can think of.

Does anyone else have any ideas?

Wilbert
7th August 2005, 18:30
I don't think that there is currently a way of correctly converting a VFR video stream to a correct CFR video stream.
Yes, there is.

http://www.avisynth.org/VariableFrameRateVideo

I didn't write it for nothing :)

wata
10th August 2005, 08:12
i use DirectShowSource("Video.rm", fps=25, , convertfps=true) to convert rm to avi
however now i have a corrupt realmedia, when play it, video will freeze a few seconds but audio goes on but after that video remain in-sync and continue to play
after converting to avi, after the freeze part video become out-of-sync
is there anyway to encode this file

karl_lillevold
22nd August 2005, 17:40
is there anyway to encode this file
I think the only way would be to split the file, and encode each part separately. You can use rmeditor.exe to split the file before encoding, or perhaps just split in Avisynth, using 'Trim'.

eidenk
10th September 2005, 03:26
What I do to convert rv to avi is the following :

I use TMPGEnc for converting the video stream and graphedit (+ registered wavdest.ax) for the audio (also the realmedia splitter must be installed). Then I mux the streams with aviutil, virtualdub or avimux. It works always and is very easy once one knows what to do. Ask if you want a step by step tut.

As for the reasons one may want to convert rv to avi, for me it is the need for editing as rv can't be cleanly and precisely sliced in my experience.