Back Forum Reply New

any way to find out the delay used in a ogg track

hi there, is there a way to find out what delay was used in a ogg track inside a ogm file??

tia

Yes:
1 - open the OGM in VDubMod.
2 - Goto menu OGM|Show inputs.
3 - Select the stream. The delay is there on the bottom right.

duartix it only shows 0ms for me with files that i have muxed with oggmux from koepi, i think that box is only useful if you're creating a ogm file

If you used the latest version of OggMux where offset is enabled then it's normal. Because in this version the offset is 'harcoded', i.e for a positive offset blank samples are encoded in Vorbis and appended before the actual Vorbis stream, and for a negative offset then the data that doesn't belong to the clip (because should be played before the video starts) are just throw away. (a similar thing is done by VirtualDub when you offset an audio stream in AVI).

hmm, that's what i thought was happening since oggmux created a new file if i used a delay!=0 but i wasnt sure, so if i create the ogm files with vdubmod i'll be able to see the offset when i open the file right?

Yes because VDubMod doesn't hardcode the offset (even if it would be possible for Vorbis, I really don't want to include an MP3/AC3 ... encoder to do so for MP3/AC3 streams ), except for a negative offset (writing data that should be played before the video starts isn't a good idea, and some tests proved me that OggDS doesn't like it more than me ) where data are also throw away.

But for a positive offset we just artificially delay the stream by highering the time position at which the data should be rendered. When reading back the file VDubMod will compare the time position of the first data in the stream to the actual data contained in the stream (Packets in an OGM file expose the number of samples they contain) and will thus estimate the offset that has been applied.

The only disadvantage of this method : OggDS doesn't seem to like too high positive offsets (if the value is too big it won't start playback) . When he was still here I tried in this forum to ask Tobias to add a specific tag to allow offseting in an OGM file (a comment tag that would be used to express the offset, just like there are tags - LWING_GAIN - to express gains) but he never replied to this ...
¥
Back Forum Reply New