View Full Version : ogm as a source for oggmux?
primitive
27th May 2002, 22:01
Would it be possible to extend oggmux to use an existing ogm file as a source for video, audio, subtitle, and chapter data for oggmux? I use oggmux to multiplex r1 anime dvd rips with textual subtitles, and I tend to have to change the subtitle file three or four times before I get a "final" file (subrip hates the font on some of my dvds). I'd like to be able to do this remultiplexing without having to keep the original avi and audio tracks around.
-p
inoteb
30th May 2002, 01:57
I'm currently atwork on OggMedia muxing with Graphedit; maybe you should try it too for your problem... or wait that Koepi add (maybe one day and if it can be done ?) this option in OggMux, which would be great indeed.
Take a look at this thread http://forum.doom9.org/showthread.php?s=&threadid=25901
Regards,
inoteb;-]
inoteb
1st June 2002, 22:22
Well primitive, did you try or should I do it for you ?!!!
It would be nice if you could inform me of the result...
primitive
3rd June 2002, 19:54
The question was really directed at Koepi for his OggMux program; I'd do it myself, but I really don't know jack for shit about win32 programming, much less about hacking dshow.
If you have any luck inoteb, get in touch with me. I would love to be your betatester :)
-p
Koepi
3rd June 2002, 21:03
It's the usual demuxing thing - it's not easy to properly implement it due to the mass of different formats/stream types possible in an ogg, thus no demuxer in oggmux...
Sorry.
Regards,
Koepi
Belgabor
4th June 2002, 11:32
I gotta say that my experiments with Graphedit to de/remux an ogm (like adding another soundtrack or sub file) were of mixed success. Mostly it didnt work. (gave me a file that didnt play)
Regards
Belgabor
primitive
4th June 2002, 19:54
Originally posted by Belgabor
I gotta say that my experiments with Graphedit to de/remux an ogm (like adding another soundtrack or sub file) were of mixed success. Mostly it didnt work. (gave me a file that didnt play)
Regards
Belgabor
So, for example you would demux an ogg, add a stream, and remux it and it wouldn't work? I ran a search on "demux ogg" and found a few threads I missed in the few weeks I was away concerning the problems revolving around demultiplexing.
This is a gap in my knowledge about the ogg format, but does the stream itself contain any information about the contained media types? If this isn't the case, I simply can't grok how it is the case that the ogg multiplexer can't multiplex something that was just demultiplexed from a tool from the same kit. Is it that when the media is demultiplexed there is no stream information taken with it? That the multiplexer can't tell the difference between a video stream, an audio stream, or a subtitle stream without being told? If this is the case, it would seem trivial to me for the multiplexer to sniff out the stream type by taking a look at the headers; however, this apparently isn't possible because it hasn't already been done.
Is this an issue that can even be fixed?
-p
(P.S. I'm pretty much a newbie when it comes to ogg, though I've been ripping for a while. If you want to get your flame on with me now, I don't mind, I'm just looking for info and my search for "demux ogg" didn't yield everything I was looking for.)
(P.P.S. I saw in another thread where someone said that demultiplexing the stream and then immediately remultiplexing the the components of that stream individually into their own oggs produced readable files. Would this be a potential way to produce a muxer frontend with demuxing/remuxing capabilities? Can the current ogg directshow multiplexer accept say an .srt muxed by itself into an ogg as valid input? I'd check myself, but I'm at work.)
Belgabor
5th June 2002, 11:45
Trying to clarify: I dont remember exactly what worked and what didnt, so dont start to hurt me if I'm wrong ;)
What (I think) did work is: Remuxing without adding additional streams (aka to add chapters)
What (I think) didnt work is: Adding a subtitle stream to a existing ogg file (although I had problems with that srt altogether, but in the case of remuxing the resulting file was defunct)
Regards
Belgabor
Koepi
5th June 2002, 12:33
Hm, let me summarize:
Render an ogg-mediafile
delete all decoders and renderers after the ogg splitter
insert an oggmuxer
connect the pins properly and set them up in the muxer
add a srt-file-source and connect it to the muxer
add a filewriter and play the graph.
Should work flawless.
Is it this what you tried?
regards,
Koepi
Belgabor
6th June 2002, 13:21
Retried yesterday and it worked. Seems like I mixed it up with some other things I tried to do and didnt work. (I think it was 'salvaging' title and chapter info from the video stream while replacing the video content)
Regards
Belgabor
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.