PDA

View Full Version : Audio not in sync after besplit


mmmiller
10th February 2003, 19:39
Hi,

I'm converting a DivX-movie to SVCD using AVI2SVCD.
The initial Audio-extraction was "too short" (cut after 21 minutes).
So I used AVI2WAV to extract the audio again to a mp3-file.

I run BeSplit on this extracted audio-file.
Logfile:



BeSplit v0.82 by DSPguru.
--------------------------
Logging start : 02/09/03 , 21:53:46.

C:\progra~1\BeSplit\BeSplit.exe -core( -input D:\Dvd2Svcd\Extracted_audio_1.mpa -prefix D:\Dvd2Svcd\Extracted_audio -logfile BeSplit.txt -type mp3 -fix )

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : D:\Dvd2Svcd\Extracted_audio_1.mpa
[00:00:00:000] | Output Prefix : D:\Dvd2Svcd\Extracted_audio
[00:00:00:000] +---------------------
[00:21:47:352] Stream error : Sync found after 351 bytes
[00:21:47:378] Stream error : Sync found after 2 bytes
[00:21:47:428] Stream error : Sync found after 196 bytes
[00:41:27:208] Stream error : Sync found after 326 bytes
[00:41:27:232] Stream error : Sync found after 183 bytes
[00:41:27:268] Stream error : Sync found after 73 bytes
[00:41:27:292] Stream error : Sync found after 55 bytes
[00:41:27:316] Stream error : Sync found after 384 bytes
[00:41:27:376] Stream error : Sync found after 253 bytes
[00:41:27:436] Stream error : Sync found after 621 bytes
[00:41:27:532] Stream error : Sync found after 627 bytes
[00:41:27:556] Stream error : Sync found after 860 bytes
[00:41:27:580] Stream error : Sync found after 478 bytes
[00:41:27:604] Stream error : Sync found after 384 bytes
[00:41:27:640] Stream error : Sync found after 345 bytes
[00:41:27:664] Stream error : Sync found after 179 bytes
[00:41:27:688] Stream error : Sync found after 384 bytes
[00:41:27:712] Stream error : Sync found after 763 bytes
[00:41:27:736] Stream error : Sync found after 383 bytes
[00:41:27:796] Stream error : Sync found after 479 bytes
[00:41:27:820] Stream error : Sync found after 767 bytes
[00:41:27:844] Stream error : Sync found after 384 bytes
[00:41:27:868] Stream error : Sync found after 384 bytes
[00:41:27:892] Stream error : Sync found after 768 bytes
[00:41:27:916] Stream error : Sync found after 32 bytes
[01:20:40:708] | Writing D:\Dvd2Svcd\Extracted_audio01.mp3
[01:20:40:708] +---------------------
[01:20:40:708] Operation Completed !
[00:01:16:000] <-- Process Duration
Logging ends : 02/09/03 , 21:55:02.



The resulting (fixed) audio-file was 1 second (8kb) shorter than the input-file.

After using the (fixed) audio file as input for MadPlay and Besweet, I have a mp2-file.

I restarted AVI2SVCD using Crash Recovery from the Muxing and Cutting-point.



--------------------------------------------------------
- 10-2-03 11:01:46
- AVI to SVCD Conversion
- AVI2SVCD ver. 1.0.9 build 3
--------------------------------------------------------
Initializing
Initializing finished.

--------------------------------------------------------
- 10-2-03 11:01:52
- Free on drive D: 5324.03 mb
- Crash Recovery
- Restarting from: Muxing and Cutting
--------------------------------------------------------
- 10-2-03 11:01:56
- Free on drive D: 6059.66 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 10-2-03 11:01:58
- Free on drive D: 6059.66 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 10-2-03 11:02:00
- Free on drive D: 6059.66 mb
- Multiplexing and cutting
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
Offset in Seconds: 2
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 736 mb

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\DVD2SVCD\bbMPEG_Muxed_File.mpg"
Length of D:\DVD2SVCD\bbMPEG_Muxed_File00.mpg
2560 Seconds
Offset in Seconds: 2562
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 736 mb

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\DVD2SVCD\bbMPEG_Muxed_File.mpg"
Multiplexing and cutting finished.

CD-Image creation finished.

--------------------------------------------------------
- 10-2-03 11:14:18
- Free on drive D: 4666.63 mb
- SVCD Creation finished!
--------------------------------------------------------



The resulting two MPG-files start with the audio ok. After 21 and 41 minutes the audio gets out of Sync.

How do I repair this ? Can I insert "spaces" when BeSplit finds a Stream Error ? Can I add a pause ? How much of pause do I need ?

I hope someone can tell me how to solve this problem...

Thanks in advance !


MMMiller

DSPguru
7th March 2003, 11:32
seem to me like your mpa source is sorrupted.
have you tried feeding madplay directly with this source ?

mmmiller
11th March 2003, 11:55
Thanks for your advice, DSPGuru.

I extracted the audio with AVI2WAV. It gave a mpa-file, which I didn't repair. I used it directly as input for Madplay.
Madplay gave 3 errors:

error: frame 0: lost synchronization
error: frame 54472: lost synchronization
error: frame 103629: lost synchronization

The resulting WAV-file was 2 seconds shorter than the original AVI-file.
I used BeSweet on this file to get the mp2.file.

After muxing and cutting, I have 2 mpg-files.

The first one is ok, I see after 21 minutes a very little out-of-sync problem. (Not disturbing...) After 41 minutes I see the movie is out-of-sync for about 2 seconds. But this is exactly at the ending of the first mpg-file !

The second one starts with a out-of-sync of 2 seconds and continues this til the end.

Is there a way to delay the start of the sound of the second MPG-file with 2 seconds ? (with bbmpeg ?)
Or by delaying the mp2-file with 2 seconds. In that case, I could save the first MPG-file, which is almost ok, and start muxing and cutting again with the delayed mp2-file, resulting in a first MPG-file which is bad, and a second MPG-file which is ok ?

I hope I make myself clear... and hope one of these possibilities is possible...

Thanks in advance again !

mmmiller

tiki4
11th March 2003, 18:19
You can delay video and audio streams in bbMPEG during muxing. Check out the manual SVCD guides on doom9's site. Maybe it's gone to the old guides section, but there exists at least one guide starting from TMPGEnc and muxing in bbMPEG. Everything is explained there.

tiki4

Update: It's here (http://www.doom9.org/mpg/bbmpeg.htm).

mmmiller
11th March 2003, 20:35
Thanks for your reaction.

When starting bbMPEG and choosing SETTINGS, I got only 4 tabs:
- General settings
- Input and output files
- Load and save settings
- Program stream settings

So I missed
- Video stream settings
- Audio stream settings
- Advanced video stream settings

I guessed for delaying I should choose Audio stream settings...

So I tried to edit bbMPEG Movie Settings2.ini

In this file, under the [Program] - section you can set audio andvideodelay (in milliseconds). Standard values = 180.
I raised the audiodelay and the audiodelay1 to 1580 (1,4 seconds) and the resulting file is perfect !

Thanks for ur reactions!

mmmiller

tiki4
12th March 2003, 09:11
You should find this standard values in bbMPEG of 180 ms as well. It should be on the Program stream settings tab at the bottom. Take a look again. Sorry, I don't have the program around and I didn't use is for such a long time.

tiki4

mmmiller
12th March 2003, 20:27
Can't find it, but the trick in changing the ini-file worked too...

However, I've got a new problem...
The resulting mpg-file from the bbmpeg-trick was perfectly in-sync.

Hoewever, I have a DVD-player which doesn't accept SVCD's. So I use the VCD-header-trick: Using TMPGEnc I get a SVCD-file with a VCD-header.
I use the in-sync-MPG-file as input.

The problem is that TMPGEnc somehow forgets about the delay: the resulting VCD-headed file is exactly 1,4 seconds out of sync...

Any solution ?

Thanks in advance again...

mmmiller

tiki4
13th March 2003, 08:57
Someone? (As if I could afford a DVD player...)