View Full Version : Problem when splitting OGM with two ogg audio stream
DjResidente
15th March 2002, 00:44
Hi everyone
Iīve a divx5 video stream and two ogg audio streams. Iīve multiplexed them using ogg multiplexer (EXAMPLE.OGM). I want to play this movie in MicroDVD Player, so what I use to do is to construct GRF in Graphedit to be able to render video with one of both audio streams (AUDIO1.GRF plays video + 1st audio stream ; AUDIO2.GRF plays video + 2nd audio stream)....
Well, itīs impossible to do the same with EXAMPLE.OGM because when I load it on graphedit, OGG splitter only shows Video + Audio 1... so I disconnect pins and reconnect using "enable all streams" on OGG Splitter and then it shows VIDEO + AUDIO1 + AUDIO2... I construct a graph to render VIDEO + AUDIO2 (e.g. AUDIO2.GRF), but if you save it and load in MicroDVD Player (or WMP 7.1) shows only video and no audio. If you load this AUDIO2.GRF on graphedit again, splitter shows again only VIDEO + AUDIO1, and vorbis decompressor and directsound render disconnected... ***OGG splitter doesnīt enable all streams as default*** so itīs impossible to play 2nd audio stream in another player than WMP 6.4 (BTW, 2nd audio stream sounds poorly)...
Am I doing something wrong? Is there another way to do what I use to do with 2 mp3 streams? Do I have to wait till next version to be able to do this? Iīm using 0.9.8.6 version...
Greetings
DjResidente
Neo Neko
15th March 2002, 03:12
I can't say you are doing anything wrong at this point. Tobias should have some ideas though. It is his baby and it is still beta at this stage. Un fortunatly I have not had the chance to encode a source like this lately since I have been busy between classes and video capture/processing. I will try something tomorrow evening with one of my DVD to see if I can reproduce your problem.
TobiasWaldvogel
15th March 2002, 13:11
Originally posted by DjResidente
... itīs impossible to do the same with EXAMPLE.OGM because when I load it on graphedit, OGG splitter only shows Video + Audio 1...
Some DS background:
DirectShow provides a standard way to generate a playback graph, which is done by calling the "RenderFile" file method. This method should result always in a usable graph therefore there is by default only one pin per media type. Otherwise you would get a mix of all sound streams. The selection of the desired stream is usually done through the IAMStreamSelect or IDvdControl interface.
Obviously there are some players out which do not make use of these standard DS procedures. (MediaPlayer 6.4 let's you choose the stream and WMP 7 soon). Anyway I will add a new "Always enable all streams" option for you if you prefer it this way. I will publish this change along with some more this weekend.
Best regards,
Tobias
TobiasWaldvogel
19th March 2002, 01:37
Originally posted by DjResidente
Well, itīs impossible to do the same with EXAMPLE.OGM because when I load it on graphedit, OGG splitter only shows Video + Audio 1...
The new release 0.9.8.7 has a new option "Always enable all streams". This should solve your problem ;)
Best regards,
Tobias
philippas
19th March 2002, 22:02
@TobiasWaldvogel
Is there any way that oggcut will hit the middle of an audio frame thus produce a corrupt audio stream ? (i see for the video that you can only cut at keyframes)
I remember when i was playing around with the oggcut from the vorbis sdk and converted ms to frames sometimes the result wasn't an integer but float.
DjResidente
19th March 2002, 23:48
Thank You TOBIAS... your work is great.
Best regards.
DjResidente
25th March 2002, 01:09
Hi everyone.
It seems to be I want to torture Tobias with feedback, but that is not my intention. Once solved the "enable all streams" problem I keep on having some trouble due my desire to keep on playing my "DVD backups" in MicroDVD player. Now Iīm able to construct both GRF files for both languages, and the 1st language GRF plays without any kind of problem in MDVD, but 2nd language GRF plays properly on Graphedit but doesnīt work on MDVD. MDVD loads the file without any error or warning but it doesnīt play... remains on 0:00:00... you can do whatever you want but it doesnīt play, you can seek to any point and watch the frame, but not playing. Also when "enable all streams" switch is on, I've found this "play problem" using WMP 6.4.. but sometimes it's solved just switching languages... very curious thing.
BTW, Iīve also noticed some kind of slow-motion efect and strange things when playing 4-5 language streams OGM in WMP 6.4 ... OK, I know itīs too much, but I was only testing.
Well, Tobias, you are doing a great job, and if Iīm able to inspire you something to improve DS filters with my experiences I would be happy.
My goal is to play OGG multilanguage avis on MDVD player the same way I used to do with MP3 multilanguage avis.
best regards
Dj Residente
TobiasWaldvogel
25th March 2002, 09:26
Originally posted by DjResidente
My goal is to play OGG multilanguage avis on MDVD player the same way I used to do with MP3 multilanguage avis.
I suppose you are using .grf files with microDVD, isn't it? In this case you have to active the "always enable all streams" option in the property page of the splitter. By default the splitter creates only one pin / media type otherwhise you would hear a mixture of all streams in Media Player. But there is already another thread dealing with this topic.
Best regards,
Tobias
DjResidente
25th March 2002, 19:20
Hi Tobias
You have supposed right. What Iīm using is GRF files on MicroDVD. I know I have to enable all streams in order to be able to construct GRF for each audio stream.
Now the GRF files are ok, the graphs are rendered without problems in Graphedit, but they arenīt on MicroDVD (or WMP). Well, to be exact, "1st-audio-stream" GRF always plays right, but "2nd-audio-stream" GRF doesnīt play at all, not even the video works altought file is loaded without any warning or error report. That's my problem now, "enable all streams" switch has solved my problems to construct the GRF, but 2nd-audio-stream GRF still has playing problems.
I hope I have explained it better now. BTW where is the other thread that deals with this problem?
Thank you again Tobias for your wonderful work.
Best regards.
Dj Residente
TobiasWaldvogel
26th March 2002, 09:53
Originally posted by DjResidente
"enable all streams" switch has solved my problems to construct the GRF, but 2nd-audio-stream GRF still has playing problems.
I referred to the "always enable all streams" option, which exists as of 0.9.8.7 Activating this option will always create all pins.
Unfortunately I don't remember the other thread, but I've already answered to a similar question :) , but don't worry.
Best regards,
Tobias
DjResidente
26th March 2002, 18:39
Hi
I donīt know if Iīm not explaining myself. I know I have to activate "always enable all streams" to be able to construct GRF showing all the pins, and thatīs what I do. The problem is that, once constructed a VALID GRF (that plays on Graphedit) it doesnīt play on MicroDVD or WMP when it is refered to the 2nd audio stream. When there was not "always enable all streams" switch, video worked but there was no sound (I mean, 2nd audio stream didnīt sound) but now, neither the video works... it just load the file but that's all.. THIS is my problem. No one has reported something like this?.
The fact is that a GRF construct to render VIDEO + 2ND AUDIO STREAM, with "always enable all streams" switched on in splitter doesnīt work, but a GRF to render VIDEO + 1ST AUDIO STREAM does work.
Best regards
Dj Residente
TobiasWaldvogel
27th March 2002, 08:18
Originally posted by DjResidente
The fact is that a GRF construct to render VIDEO + 2ND AUDIO STREAM, with "always enable all streams" switched on in splitter doesnīt work, but a GRF to render VIDEO + 1ST AUDIO STREAM does work.
I've never heaerd of a problem like this but I will try it this evening and give you a reply.
Best regards,
Tobias
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.