Log in

View Full Version : Multilanguage OGM using mp3 audio tracks: synching


marc_albero
9th September 2002, 18:23
Hi you all,

I post this thread in Nev A/V formats because I didn't found a section dealing with muxing. Also it is sort of a "new thing", involving a little bit OGM, so...

The problem is:

I have downloaded a film in several versions: english, german, french, spanish and italian (I study idioms! I think it would be very good to have that). I'd like to get the video from the english version, since it is the best of all, and put it in a OGM along with all the audio streams. Besides, I'd like to avoid reencoding the audio due to quality reasons.

The only problem is that there is no muxing utility for OGM that allows resynching of each audio stream, neither mp3 nor vorbis. At least as far as I know! I will have to put silences in the beginning/end of some audio streams, and also cut little chunks, all without reencoding.

I found mp3Trim in the download section, but it is shareware, and doesn't allow to edit big-sized files.

Does anybody any means to do this?

Thanx, Marc

Palikrovol
9th September 2002, 21:40
Think about the fps in each movie. If they are different you will have to change the audio to the fps of the choosen video (english in your case). (You can do this with BeSweet).

To synch the audio, i use Virtualdub or nundub and set different audio skew corrections (in audio interleaving) (load the audio from wav or mp3 or what you have). When the audio is ok, i save it alone and then re-encode it to ogg vorbis (do all this with the different audio streams). You said you didn't want to reencode the audio, but i'm not sure if you can put mp3 inside an ogm.

I have made some movies the same way you want and the final result is great (You can also put all the different subtitles in the ogm. http://www.divxsubtitles.net http://www.subtitles.cz) And with patience the chapters :)

Hope you find it useful.

Ciao

marc_albero
13th September 2002, 13:43
NanDub works fine with VBR, but I have a strange problem when I want to synch the audio stream. NanDub starts playing fine, at good speed, but after a few seconds, the audio disappears, as if it could no more read the audio stream. It happens with every VBR AVIs I have. It looks like a configuration problem (an audio buffer or something?) rather than a system resources problem (the system not being able to play the audio and the video).

Any idea?

By the way, if you extract the audio from a AVI resynched with VDub/NanDub, I seriously doubt that the resulting MP3 is still synched. I resynched an AVI with AVIInfo, shifting the audio to a later start time, so that a noticeable silence gap appeared at the beginning of the movie, and the audio went further than the video at the end of the film. I ripped the audio, and it was exactly the same as at the beginning. If you put that in a multistream OGM, you get no synch. You have done nothing. Are you sure it is different with NanDub?? Hope so, but...

By the way (also), what a container did you use to have 3,4 or 5 audio streams and 1 video stream together? OGM? How did you do it?

Many Thanks.

Palikrovol
14th September 2002, 02:23
Originally posted by marc_albero
NanDub works fine with VBR, but I have a strange problem when I want to synch the audio stream. NanDub starts playing fine, at good speed, but after a few seconds, the audio disappears, as if it could no more read the audio stream. It happens with every VBR AVIs I have. It looks like a configuration problem (an audio buffer or something?) rather than a system resources problem (the system not being able to play the audio and the video).

Any idea?


I have the same problem with numdub and the audio. I don't know what it could be (i have seen your post in the virtual dub Forum :) ). Hope someone answer.



By the way, if you extract the audio from a AVI resynched with VDub/NanDub, I seriously doubt that the resulting MP3 is still synched. I resynched an AVI with AVIInfo, shifting the audio to a later start time, so that a noticeable silence gap appeared at the beginning of the movie, and the audio went further than the video at the end of the film. I ripped the audio, and it was exactly the same as at the beginning. If you put that in a multistream OGM, you get no synch. You have done nothing. Are you sure it is different with NanDub?? Hope so, but...


With nundub works fine. I just made a test and i set the audio skew to '-3600000' ms (cut the first hour from the audio). Then i just save the audio (with mp3 extension) and the resulting audio was really smaller than the original. Try with your movie and tell me.

The last time i did it, it worked (it was with the movie "The dead zone". I had two avi files, english and spanish. The english movie was much better than the other so i ripped the spanish audio to put it in the english movie. I changed the fps of the spanish audio from 25 to 23.976 and then with nundub and patience synched the spanish audio with the audio skew option. I Saved the spanish audio to a different file and last mixed up everything with graphedit in an ogm file)


By the way (also), what a container did you use to have 3,4 or 5 audio streams and 1 video stream together? OGM? How did you do it?

Many Thanks.


I use ogm. The maximum number of audio streams i have used is 3 (original language, spanish and german). I use Graphedit with Tobia's directshow filters. But there is more ways to do it: Oggmux (http://oggmux.sourceforge.net/index.html and read this forum to know more about it) and there is a new one, ogmtools (read about this last one here http://forum.doom9.org/showthread.php?s=&threadid=32909)

Hope you find it useful.

Bye