PDA

View Full Version : How to extract video from an OGG stream?


sibe
14th February 2002, 14:19
Hi,

the subject pretty much says it. I have an OGG stram (created with Tobias' filters) containing a divx3.11 video and an ogg vorbis audio track. Now I want to extract the video again to AVI format without sound. I used Graphedit with the following setup:

file.ogg -> Ogg Splitter (video output) -> AVI Mux -> File Writer (file.avi)

But the file I get this way is not a valid AVI file (doesn't play in WMP). I also tried to leave the AVI Mux filter away upon which Graphedit crashed and produced no file at all.

Any suggestions, is this possible at all?

Sibe

ChristianHJW
14th February 2002, 15:21
Your description of the graph looks o.k. .... dont know what the problem is, to be honest ! Is it possible you sending me the graph as a screenshot ( .jpg ) via mail to christianhjw at powerdivx dot com .... i will transfer it to Tobias and ask for help ... a small sample file would be nice also ...

ProfDrMorph
14th February 2002, 16:02
try using "Dump" instead of "File Writer". Sometimes helps.

Ripe73
14th February 2002, 16:07
I have tried this too with both Dump and Filewriter but the avi is corrupt:(

sibe
14th February 2002, 17:53
@ChristianHJW

You've got mail!


@ProfDrMorph

I tried the dump filter, too. Same result: corrupt AVI file.

Sibe

everwicked
14th February 2002, 18:00
Try not putting the AVI mux filter there and see what happens.. Graphedt should put whatever is needed there...

Neophyte70
14th February 2002, 18:11
@ everwicked
only using file writer without Avi mux, it gives you a videostream which is an ogg file without sound, I mean it's still unreadable with vdub,ndub,adobe premiere...

at the moment Ogg suckz

I asked many people but nobody knows how to demux an ogg encoded movie. I mean a direct stream copy like in vdub/ndub (which btw not read an ogg movie).

graphedit works but only with reencoding, which is only a waste of time because the videostream is the same than before audio muxing.

for me it's necessary to demux, because I want to mux english movies with german sound and some people want to convert the videos to (s)vcd.

please tell my how to demux ogg movies directly in the video-format they have

Acaila
14th February 2002, 20:13
It IS possible by using the graphedit path you just gave. I just did it. However there are some problems.

The first time you press start it crashes, that's true. This is the way it worked with me:

Connect the audio-out of the ogg splitter to the audio-in of the avi muxer. Press start. This will create an avi WITH audio (which you don't want I know that).
Next don't close this graph, delete the audio line you just created and the output avi you just created as well. Don't touch anything else.
Press start again and it won't crash this time (at leats it didn't with me) and you'll have your video avi without audio.

I noticed a complication though: the resulting video stream is corrupted seriously. It will be blocky (it kinda looks like macrovision protection but less) and look totally screwed, but at least it's playing. VDub can open it without problems as well it seems.

I think what happens is that the OGG Splitter isn't correctly coded yet and has demux issues. It looks like it can't transfer the video stream from OGG format to AVI format correctly...there were bound to be incompatibilities between the two.

I hope this can be fixed with later versions.


Hmm, I just re-did it to make sure I wrote everything down correctly, and I seems it works with me now without crashing at all.....still messy video though :(

This is the graph I used:
File Source (Async.) -> OGG Splitter -> AVI Mux -> File Writer

Neophyte70
14th February 2002, 21:16
yeahhh great it works, looks crappy but that is just a question of time that somebody fix that

I did it that way (to avoid crashes):

File Source (Async.) -> Ogg Splitter -> Ogg Multiplexer -> File Writer
do ONLY stream the video not the audio

then (for video demuxing to the original format) use Acailas graph (use the created video)

sibe
14th February 2002, 22:57
It worked now without crashing by selecting as Acaila suggested:

File Source (Async.) -> OGG Splitter -> AVI Mux -> File Writer

and not "Render Media File" an then changing the filters as I did before. Strange, I didn't think this would make a difference. But the video is indeed very jerky and has a lot of freeze frames and so is not watchable, this must really be some problem of the Ogg Splitter. I hope this will get fixed sometime soon.

Sibe

ChristianHJW
15th February 2002, 00:29
@sibe

I got your mail and looked at the graph .. i also sent them to Acaila, they look fine. Glad you could fix it now, when doing as Acaila told you ....

ProfDrMorph
16th February 2002, 18:09
I think the problem is the AVI Mux filter. If I try to split an AVI file, then Mux it and split it again in one graph ( File -> AVI Splitter -> AVI Mux -> AVI Splitter ) the second AVI Splitter doesn't accept the input of the AVI Mux filter.

EDIT:
I tried using the following combination:
File Source (Async): .ogg file -> Ogg Splitter -> AVI Mux -> File Writer

I only connected the video parts and I opened the AVI Mux filter's properties : there I saw what I think was the problem: Interleaving was set to None. I don't know why it doesn't work for video only files with this setting but setting it to Full fixed the problem.

Neophyte70
16th February 2002, 20:50
THX ProfDrMorph

it works now, I've tested it with one minute videostream and it looks perfect

great :D

THX again
greetz from Sachsen/germany ;)

sibe
17th February 2002, 01:25
And the gold medal goes to... ProfDrMorph!

Wow, setting interleaving to full really worked great. I saw the setting before but I just couldn't imagine that this would make a difference for a video-only stream and so haven't tried it.

Great we got a working solution now.

Sibe

ChristianHJW
17th February 2002, 09:31
Power of the community ... i didnt have a clue there is such a setting in the AVI mux properties :D ....

tHeOnE
21st February 2002, 16:50
Nice, it worked. But the Video Stream is still not perfekt, there are many artefacts, in spite of setting interleaving to maximum. Do I have to adjust interleaving parameters, frequency and the other one?

TobiasWaldvogel
21st February 2002, 17:12
Please be sure to use the latest version. Otherwise this might be related to a lock wich is released to early in versions before 0.9.8.3

Best regards,
Tobias

P.S. You can find the version in the about page.

tHeOnE
21st February 2002, 17:34
hm I use build 011008, do you use a different one?

TobiasWaldvogel
21st February 2002, 17:56
I'm refering to the Ogg Splitter. Make a click with the right mouse button, choose properties and check the version.

Best regards,
Tobias

tHeOnE
21st February 2002, 18:11
Version 0.9.8.3, but now I think it worked.
I reinstalled the DirectShow ogg audio codec, and executed the register.bat.
But since I installed the ogg codec (the first time), I have problems with seeing films in media player, after reinstalling the divx codec I can open media in Mediaplayer, but everytime I would like to see a film, I have to reinstall the divx codec, perhaps this has/had(?) sth. to do with my graphedit problem

Thx for help
theone

ChristianHJW
22nd February 2002, 10:26
Update to latest version 0.9.8.4 , there were known issues with 0.9.8.3 that Tobias resolved recently ... all working perfect now !

tHeOnE
22nd February 2002, 11:10
Thanks, I installed the newer one, and now the result is great, but still the media player problem, but I assume that's not caused by the DSfilter.