Re: [Thoggen-devel] Problems with merging streams and bad headers in video stream
Status: Beta
Brought to you by:
tp-m
From: Tim <t....@ze...> - 2007-04-03 12:05:27
|
On Sat, 2007-03-10 at 23:56 +0100, fake168 wrote: Hi, (forwarded from thoggen-cvs, which is for commits, not discussions; this has only been discussed in the bug tracker; forwarding it since the merging stuff may be of interest to others). > I love your work on Thoggen. Thanks a lot - it's a great program and > very easy to use. > > However, I do have a problem. I got an ogg file (video and audio) from a > DVD. Fine. But I'd like to have that ogm with two audio streams (english > and my native language). Unfortunately Thoggen doesn't apply to my > needs. Okay, doesn't matter. So I decided to let Thoggen run over the > DVD again - now in my native language. Fine again. Now I tried to > extract that audio stream from the second ogm and to merge it with the > first ogm. Ooops, there the problems start. > > First I tried to open the ogms with VirtualDubMod. It crashs and says > something about division through zero. Okay, okay. So I tried to use > ogmdemux and ogmmerge. But all ogmtools are mentioning a bad header > reffering to the video stream. In the end I can get only a merge which > inlcudes both languages, but not a video stream. :( > > Now it seems to me, that something has to be wrong with the video > stream. I can't dump it via mplayer -dumpstream oder -dumpvideo. I can't > extract it via ogmdemux. I can't even open it with VirtualDubMod. > > Surprisingly it opens with xine and mplayer. Playing the ogms is no > problem at all. I have spent several hours on this matter, but I > couldn't solve this problem. OGG and OGM are different things at the stream level. Tools that are made for OGM streams in particular (like ogm*) are probably geared towards OGM streams and less likely to work with 'normal' ogg streams such as the ones produced by Thoggen. A quick look at google seems to suggest that VirtualDubMod can only handle Theora-in-ogm, but not 'normal' Theora. I don't really know anything about any of these tools, but I'm guessing that they're all made for OGM streams only. I don't think there's anything wrong with the output produced by Thoggen. If so, oggz-validate should probably reveal it. As for the remuxing two .ogg files into one single .ogg file, that should be fairly easy to do. I've added a gst-launch-0.10 example pipeline to the FAQ on the website. It goes like this: gst-launch-0.10 oggmux name=mux ! filesink location=film.ogg \ filesrc location=film-de-audio.ogg ! oggdemux name=d1 \ filesrc location=film-es-audio.ogg ! oggdemux name=d2 \ d1. ! queue ! theoraparse ! mux. \ d1. ! queue ! vorbisparse ! mux. \ d2. ! queue ! vorbisparse ! mux. This will combine the video and audio streams from the first file with the audio stream from the second file (best to use recent GStreamer core/base versions for this). Cheers -Tim |