Log in

View Full Version : RV10 to AVI?


GlitchOfDoom
1st June 2004, 17:02
Is there a converter that converts RV10 to AVI? TINRA only works on video encoded with RV8 or earlier.

notags
1st June 2004, 17:06
Originally posted by GlitchOfDoom
Is there a converter that converts RV10 to AVI? TINRA only works on video encoded with RV8 or earlier.

You can use avisynth + vdubmod. This however will not work if the media is encoded in variable frame rates as the audio will go out of sync.

GlitchOfDoom
1st June 2004, 17:16
could you tell me step by step how to use vdubmod and avisynth to convert the .rm?

bond
1st June 2004, 17:43
i think he wants to place a rv9 stream directly in avi...

you will have to ask alexnoe whether he will hack it into avi :D

GlitchOfDoom
1st June 2004, 18:04
Originally posted by bond
you will have to ask alexnoe whether he will hack it into avi :D

Could I "hack" it myself?

Latexxx
1st June 2004, 18:18
Originally posted by GlitchOfDoom
Could I "hack" it myself?
If you know some OpenDML programming. :D

GlitchOfDoom
1st June 2004, 19:32
I guess its a lost cause :(

Sirber
1st June 2004, 20:34
VFR and AVI is not good. Why not using matroska?

bond
1st June 2004, 20:44
Originally posted by Sirber
VFR and AVI is not good. Why not using matroska? i thought encoding with rv9 does not by default produce vfr streams?

karl_lillevold
1st June 2004, 21:34
For high-medium VBR bitrates frames are rarely skipped and you effectively get fixed framerate. However, the RM file format is VFR by nature, and each frame has only a timestamp associated with it. This is why converting to a fixed framerate format like AVI is not always easy.

The original poster's question is still a little unclear, since AVI is just a container format, and can carry any VCM (VfW) codec. However, since RV10 will not be made available as a VCM codec, the format would have to be trans-coded, at a loss in quality.

Depending on the reason why you want to convert, I would perhaps suggest instead investigating alternative players (RealMediaSplitter) and/or container formats (Matroska), if all you want to avoid is having to use RealPlayer to play it back ;)

bond
2nd June 2004, 11:11
Originally posted by karl_lillevold
The original poster's question is still a little unclear, since AVI is just a container format, and can carry any VCM (VfW) codec. However, since RV10 will not be made available as a VCM codec, the format would have to be trans-coded, at a loss in quality.lol, you underestimate alexnoe's evilness ;)
he also hacks things into avi, for which no vfw codecs exist :D

karl_lillevold
3rd June 2004, 18:18
Originally posted by bond
lol, you underestimate alexnoe's evilness ;)
Perhaps, and there is nothing I enjoy more than see great work on making RealMedia or RealVideo codecs more user friendly. There are already so many examples:

Gabest's RealMediaSplitter
mplayer and Helix Player Linux
jcsston's mkvwriter for Producer
MoSu's mkvextract (now able to demux RM from mkv into RM)
D-C's AutoRV10, adding new info like chapters to RM, RMVB analyzer and shell extension.
Too many front-end GUIs for Producer to list separately in this post. They are all listed in the RealVideo info thread (http://forum.doom9.org/showthread.php?s=&threadid=73035). I apologize if I forgot someone in that list. Let me know.

iwod
4th June 2004, 00:06
I think what he means is how to convert RM back to RAW Video Data, may be something that is AVI compatible.....

( I take into account that the World think AVI is "normal" video and RM NEED Real player to watch ......... )

tct666
7th June 2004, 17:02
The best method I think is using TmpgEnc2.53/2.54 which can support both realmedia's A/V by realmediasplitter.ax.
Use TmpgEnc2.53/2.54 to open realmedia files with unlock template(fps=23.976/25/29.970 according to the source.Since rm can be vfr
if it has both 24/30fps,set fps=23.976.)
to compress rm into avi,and you will get a avi whose A/V are synchronous .

DrFresh
11th June 2004, 10:22
Well as I read the initial question it sounds like a somewhat similar problem I have. Now I'm NO expert AT ALL - so please be patient ;)

I have a file video.mkv. I've managed to split video and audio. Video is encoded using RV10 I found, and audio is ogg.

I can play the mkv file in MPC. And I can play the extracted video in Media PLayer 9 (the standard MS player) so I must have the nessessary filters installed.

But I cannot load the video into avisynth. I've tried DirectShowSource. Well it loads but it doesn't play. It report a length of 14:03:25:21.71 - yes it's true! But when played in MP 9.0 it report 1:36 wich is true.

Now I also wanted to convert this file - because I want to convert it to SVCD in the end using DVD2SVCD. But I can't seem to get it to work.

Can anybody help??

Dr. Fresh

bond
11th June 2004, 10:29
DrFresh,
did you add a "fps=xx" in the directshowsource()?

stephanV
11th June 2004, 10:31
the problem is current AVIsynth cant handle variable frame rates (as used in RV10) and therefor it tries to detect a cfr for your file. this has obviously gone wrong in your case, but it cant possibly go right anyway. basically AVISynth wont be of much help for you here i think.

perhaps TMPGEnc can open the file and convert to SVCD at the same time?

DrFresh
11th June 2004, 10:58
did you add a "fps=xx" in the directshowsource()?

Yes!

Dr. Fresh

bond
11th June 2004, 11:33
DrFresh,
its strange that you can play the file in wmp9, but not display it via directshowsource(), cause both use exactly the same way of decoding the stream!

what message do you get when you open the dshowsource using .avs file in virtualdub(mod)?

Originally posted by stephanV
the problem is current AVIsynth cant handle variable frame rates (as used in RV10) and therefor it tries to detect a cfr for your file. this has obviously gone wrong in your case, but it cant possibly go right anyway. basically AVISynth wont be of much help for you here i think.as karl lillevold already stated: rv9/10 will normally NOT use variable framerate, meaning in most of the cases, medium and high bitrate encodes (like dvd backups using rv9/10) will be CFR and therefore usable via avisynth!

DrFresh
11th June 2004, 11:50
Well it doesn't say anything. It just opens, but I can't view any frames and, as I mentioned, it say the film is extremely long. It report hovever the correct frame size.

The avisynth script is simply:

DirectShowSource("c:\temp\video.avi",25)

Should I include something or?

Dr. Fresh

bond
11th June 2004, 12:01
Originally posted by DrFresh
The avisynth script is simply:

DirectShowSource("c:\temp\video.avi",25)hm, why AVI? did you manage to place the rv9 stream in avi? :confused:

leave the rv9 stream inside matroska and try the following commandline:
DirectShowSource("c:\temp\video.mkv",fps=25)

DrFresh
11th June 2004, 15:21
No, I just demuxed the video stream and named it that way. I tried keeping it in the mkv-container. But then I get the same result... (only I get sound now, og course...) but NO picture.

Dr. Fresh

tct666
11th June 2004, 15:37
Originally posted by DrFresh
Well as I read the initial question it sounds like a somewhat similar problem I have. Now I'm NO expert AT ALL - so please be patient ;)

I have a file video.mkv. I've managed to split video and audio. Video is encoded using RV10 I found, and audio is ogg.

I can play the mkv file in MPC. And I can play the extracted video in Media PLayer 9 (the standard MS player) so I must have the nessessary filters installed.

But I cannot load the video into avisynth. I've tried DirectShowSource. Well it loads but it doesn't play. It report a length of 14:03:25:21.71 - yes it's true! But when played in MP 9.0 it report 1:36 wich is true.

Now I also wanted to convert this file - because I want to convert it to SVCD in the end using DVD2SVCD. But I can't seem to get it to work.

Can anybody help??

Dr. Fresh

1.Install OGGDS995 and uninstall corevorbis
Use MPC play the mkv of which audio is ogg,change vorbis decoder settings or use Graphedit.
vorbis decoder settings->prefered output format->integer(16-bit)
2.Use TmpgEnc
a.OPTION->ENVIRONMENTAL SETTING...->VFAPI PLUG-IN
b."DirectShow Multimedia File Reader",raise priority=2

karl_lillevold
11th June 2004, 17:43
DrFresh: when you demux mkv to RM I think you need to use .rm or .rmvb as the extension, and not .avi. In any case, if you have all the right DirectShowFilters, you should be able to DirectShowSource the .mkv file directly, so I don't know why you don't get any video. Tell me, when you play the .mkv file in MPC or open in graphedit, can you see any auto-loading DS filters in the graph, like VSFilter, or Morgan Stream Switcher? These could potentially cause a problem. I guess you already have the very latest realmediasplitter and Avisynth installed.

Ideally you should not have to use Avisynth at all, if your SVCD encoder could read a DirectShow source, i.e. has a DirectShow input plugin. I tried the MainConcept demo MPEG-2 encoder, it is supposed to read DirectShow, but unfortunately it just dies when trying to read RM file via realmediasplitter. Probably a bug in their implementation, since it is a scenario they have probably never tested.

DrFresh
12th June 2004, 13:17
To Karl_lillevold - well the file name doesn't matter. The video file can be read and played by MPC anyhow. And I still don't understand why it can't be played through avs...

To tct666 - As I stated I'm no expert. Though I have played with graphedit, and actually solved some problems using that, I don't know what you meen. But I tried the TMPG stuff, and it can read the mkv file. HURRA! So now I'll go looking for some how to's on that!!! Thanks alot!

Dr. Fresh

bond
12th June 2004, 13:26
Originally posted by DrFresh
[B]To Karl_lillevold - well the file name doesn't matter. The video file can be read and played by MPC anyhow. And I still don't understand why it can't be played through avs...ah now i know what is causing the problem :rolleyes:

mpc has an own internal realmedia splitter/decoder, which will not be used of course if you go via .avs
therefore you have to install the standalone realmediasplitter offered on gabest homepage to make it work :)

DrFresh
14th June 2004, 15:02
mpc has an own internal realmedia splitter/decoder, which will not be used of course if you go via .avs

Nope - that doens't work either. I have installed realmediasplitter.ax in registry. But still no video when playing through avisynth. And I need that. Though TMPGEnc can read the mkv file directly, I need to do the resizing in an avs-script. Damn - what is wrong here?? I'm getting frustrated!

But thank you all very much for your patience!

Dr. Fresh

bond
14th June 2004, 17:02
do you also have gabest matrosksplitter registered?

if yes than try to open the original rv9-in-mkv file in graphedit (you will find it in doom9s download section) and report if it can be opened there!

damrod
14th June 2004, 20:05
be sure to use avisynth 2.54 or superior...
else you will have no sound i think...


you can have mkv or rmvb container it doesn't matter


what you can do is write your avs and then open it in virtualdub : this way you can verify the framerate ie if audio and video duration match... :-)

you can also try you avs by playing it...

DrFresh
16th June 2004, 08:46
Well - it's me again...

Had Matroska Pack Light installed. Uninstalled - then I couldn't open the avs file in VirDubMod. Avisynth said somthing about a missing Factory Class. Then reinstalled, and uninstalled. Then I could open it again - still no video, only audio and a black screen.

Now tried to render the media file in graphedit (guess that's what you ment, bond) - this is the graph i got (view the page):

My graph... (http://www.geocities.com/drfresh1/index.htm)

Does that tell you something?

Thanks again!

Dr. Fresh

stephanV
16th June 2004, 09:01
uuuuuh... cant see the picture, only a small red cross :o

DrFresh
16th June 2004, 09:28
DAMN! I could see it in preview...

Here's a link to an html, contaning the pic: http://www.geocities.com/drfresh1/index.htm

Aparently geocities.yahoo doesn't support direct links to files... Nothing but troubles in this world...

Dr. Fresh

stephanV
16th June 2004, 10:19
and what if you do the same thing with the original mkv-file?

(but perhaps MSS might be the culprit here?)

DrFresh
16th June 2004, 10:42
Updated the link. Well it's the matroskasplitter. How do I uninstall that...

Dr. Fresh

stephanV
16th June 2004, 11:23
its not the matroska splitter, as you wouldn't be able to open a matroska file without it :p.

all your graphs seem completely normal. the only thing that is unnecessary in your graphs is the morgan stream switcher, so your best bet would be to uninstall that for now.

ChristianHJW
18th June 2004, 10:26
The only way to open a RV9 MKV in TMPEGencoder, from my personal tests, is to NOT use avisynth with DirectShowSource but directly the built in DirectShow Reader filter in TMPEGencoder ..... in TMPEG, go

'options'
'environmental settings'
'VFAPI reader plugin'

and increase the priority of the directshow reader to be the highest ....

DrFresh
18th June 2004, 11:16
The only way to open a RV9 MKV in TMPEGencoder, from my personal tests, is to NOT use avisynth with DirectShowSource but directly the built in DirectShow Reader filter in TMPEGencoder

That's right. But I need to do some of the things I usually do in avisynth. That is change framerate, resize and add some borders. How do I do that if not through avisynth?? I have no experience with TMPGe.

Dr. Fresh

tct666
19th June 2004, 09:47
Originally posted by DrFresh
That's right. But I need to do some of the things I usually do in avisynth. That is change framerate, resize and add some borders. How do I do that if not through avisynth?? I have no experience with TMPGe.

Dr. Fresh

1.Use TmpgENC to open RV9-in-mvk and save project as .tpr.
2.Use VFAPI to open .trp and generate fake avi(xxx_vfapi.avi).
3.Use Avisynth
AviSource("C:\xxx_vfapi.avi")

DrFresh
21st June 2004, 09:01
Thanks tct666 - will try that. Sounds promising!

Dr. Fresh

McoreD
23rd June 2004, 14:52
Originally posted by DrFresh
Aparently geocities.yahoo doesn't support direct links to files... Nothing but troubles in this world..
DrFresh, Have a look at here: http://www.imageshack.us/ :)