PDA

View Full Version : How To add a delay to ogg files ?


user
15th December 2002, 14:38
I have a video stream and an audio stream, audio *.ogg

That audio stream should start about 4 seconds later than the video.

In Oggmux 1.0 I have no possibility to add a delay to the audio stream.



My workaround would be (as i have the original wave):

adding in headAC3he 0.23 frames, seconds to the wav-audio stream and encoding to ogg again....



But because the wave stream is very long, over 1 GB, and I have to do this procedure quite often (trial & error, because I want perfect sync between audio and video), it would be much easier, if I could add silence frames at the beginning to the existing ogg.

Then oggmux, and checking if sync.




So, is there a tool to add something to an ogg ?

Snakeisthestuff
15th December 2002, 19:18
you can try Cyrius OGM tools, there you can set an delay option for your ogg file .
get it here: http://cyrius.bunkus.org/

user
15th December 2002, 20:28
I have not found such a possibilty in text file explanations.

That program seems to be a commandline version, no GUI ?

Or via VirtualDub ?



I am disappointed, that I cannot use delay for the soundtracks (it is greyed out) in OggMux 0941...

Koepi
15th December 2002, 20:46
Originally posted by user
I am disappointed, that I cannot use delay for the soundtracks (it is greyed out) in OggMux 0941...

well, then don't complain but CODE it.
We tried it but didn't succeed - direct show is a major pain in the ***.

I feel a bit insulted.

Koepi

user
15th December 2002, 20:56
hey, don't feel insulted.
My English is not better to tell something else.

I wanted to say:

"Ich wunder mich, daß man delay Feld da sieht, aber es nicht nutzen kann..."

Well, technical problems, due to Ogg..

Everybody tells: "oh, Ogg is so good", but some basic tools are not working still, that is either a delay correction of ogg stream relative to the video stream,
or:
a program, to join ogg streams respectively adding silent frames at the beginning.

Or does soembopdy know a program, which does one of the 2 possibilities ?

ACClarke
15th December 2002, 22:05
you can use VirtualDubMod to mux your avi file and your ogg file(s)
with this software you can also add a delay in ms

it works well for me

http://sourceforge.net/projects/virtualdubmod

user
15th December 2002, 22:24
yea, many thanks,

that program was already recommended in german forum of doom9.

There I have the possibility to add my 3 ogg audio streams, and to adjust for each stream an individual delay.

That's what I needed.

Are there any problems (sync etc...) known playing later these ogm's by BSplayer or so ?

mikeson
15th December 2002, 23:36
@user:

Why don't you adjust delay with BeSweet while creating ogg?

user
16th December 2002, 09:20
@mikeson:

of course I could do it with HeadAC3he or Besweet, but:

as told above, the exact delay is unknown, so I have to do trial and error method.

For each trial , I don't want to encode the whole wave to ogg again...

With VDM there is a Muxing-Tool for ogg, 3 ogg streams + avi, and each ogg gets its own delay.

mikeson
16th December 2002, 09:55
@user:

What is your source? I assume It is not DVD, so what is it?

Anyway you can open oggs (or source if supported) in SonicFoundry (or something like that) and you will see exact delay...

user
16th December 2002, 10:47
avi/picture source is 16:9 anamorphic with French and English sound stream (sync no problem :) ,
the difficult sound stream is German, taken from German version 4:3, and so there results an unknown delay due to other start credits at the beginning.

mikeson
16th December 2002, 10:50
@user:

So as I've said, open all 3 files in SonicFoundry (accepts ogg) and compare where audio starts and you can measure delay for 3rd audio stream. ;)

Snakeisthestuff
16th December 2002, 19:30
@user
i know what your talking about, had the same problem while making an 3 language Escaflowne encode, with english and japanese from dvd and german soundtrack from MTV - TV captures ;o), but i have added the orginal japanese intro and outro too, soo i have a work of 1 hour only for audio cutting, joining and syncing for every episode, but thats how it is :D

i have set the delay with an wave editor and muxed avi+wav file to see if its sync, and after done the sync i encoded it to ogg.