PDA

View Full Version : Audio and subtitles out of synch


amg1
28th February 2003, 22:07
Hi,

First of all I wish to congratulate the author of DVD2SVCD and all the team involved in its support and development. Very good program.

I tried to do a SVCD of DVD "Seven" but when I preview it with Daemon Tools and Power DVD I realized that audio and subtitles are out of synch with video, i.e., audio and subtitles are synchronous with each other but lated related to the video, and the difference progressively increases as the film goes on.

The vob's are synch. I used internal routines to rip. The "aspichk"
says aspi are OK (Version 4.60). The Tab Conversion has a movie length of 02:01:15 but SVCDInfo.txt reports a length of 01:41:22. The file "dvd2svcd_log.txt" reports a framerate of 29970 in DVD2AVI section, but when I run DVD2AVI alone with the Vob's it indicates Aspect ratio 16:9, Framerate 25000, Video Type: PAL; Frame Type: Interlaced.

I'm sending the files obtained from the first chapter (00:03:59).

dvd2svcd_log.txt

WNASPI32.DLL 4.6.0.1021
--------------------------------------------------------
- 28-02-2003 1:19:41
- DVD to SVCD Conversion
- DVD2SVCD ver. 1.1.2 build 1
--------------------------------------------------------
Initializing
Initializing finished.

--------------------------------------------------------
- 28-02-2003 1:19:44
- Analyzing subtitles
--------------------------------------------------------
Subtitle found: StreamID: 0x25 Language: Portugues
Subtitle found: StreamID: 0x24 Language: Portugues
Subtitle found: StreamID: 0x2B Language: Portugues
Subtitle found: StreamID: 0x27 Language: Portugues
Subtitle found: StreamID: 0x26 Language: Portugues
Subtitle found: StreamID: 0x2A Language: Portugues
Subtitle found: StreamID: 0x29 Language: Portugues
Subtitle found: StreamID: 0x28 Language: Portugues
Subtitle found: StreamID: 0x23 Language: Portugues
Subtitle found: StreamID: 0x22 Language: Portugues
Subtitle found: StreamID: 0x21 Language: English
Subtitle found: StreamID: 0x20 Language: English

Executing subtitle selection/verification.
Subtitle selection/verification accepted.
1 subtitle streams selected.
Saving Subtitles ini file
--------------------------------------------------------
- 28-02-2003 1:19:59
- Free on drive C: 31963.28 mb
- Internal rip
--------------------------------------------------------
Preparing vobfiles to be ripped:
- C:\Programas\DVD2SVCD\Movie1\VTS_01_1.vob
- C:\Programas\DVD2SVCD\Movie1\VTS_01_2.vob
- C:\Programas\DVD2SVCD\Movie1\VTS_01_3.vob
- C:\Programas\DVD2SVCD\Movie1\VTS_01_4.vob
- C:\Programas\DVD2SVCD\Movie1\VTS_01_5.vob
- C:\Programas\DVD2SVCD\Movie1\VTS_01_6.vob
- C:\Programas\DVD2SVCD\Movie1\VTS_01_7.vob

Ripping: C:\Programas\DVD2SVCD\Movie1\VTS_01_1.vob
Ripping finished. Speed: 12581

--------------------------------------------------------
- 28-02-2003 1:20:20
- DVD2AVI
--------------------------------------------------------
Creating DVD2AVI INI file:
- C:\Programas\DVD2SVCD\DVD2AVI\DVD2AVI.INI

Variable settings:
iDCT_Algorithm: 32-bit SSE MMX

Executing DVD2AVI.
Executing DVD2AVI. Commandline:
"C:\Programas\DVD2SVCD\DVD2AVI\DVD2AVI.exe" -CS=2 -YR=1 -EXIT -OF=[C:\Programas\DVD2SVCD\Movie\DVD2AVI_Project_file] -IF=[C:\Programas\DVD2SVCD\Movie\VTS_01_1.vob]
Analyzing DVD2AVI Project file
Force Film NOT activated!
Framerate: 29970
DVD2AVI processing done.

--------------------------------------------------------
- 28-02-2003 1:20:35
- Free on drive C: 31741.96 mb
- Extracting the subtitles.
--------------------------------------------------------

Subtitle extraction finished. Extracted these subtitles:
SVCD Stream no: 1 Language: Portugues Num. of subs: 32

Saving Subtitle Timecodes.
Permanent subtitles.
Saving Subtitles ini file
--------------------------------------------------------
- 28-02-2003 1:20:52
- Free on drive C: 31741.95 mb
- AUDIO Extraction
--------------------------------------------------------
Found AC3 stream id: 0x80
Filename: C:\Programas\DVD2SVCD\Movie\Extracted_audio_1.ac3
Audio1 delay: 0 ms
Audio extraction finished.

--------------------------------------------------------
- 28-02-2003 1:20:59
- Free on drive C: 31729.16 mb
- AUDIO conversion
--------------------------------------------------------

Encoding Audio. Filename: C:\Programas\DVD2SVCD\Movie\Extracted_audio_1.ac3
Executing BeSweet. Commandline:
"C:\Programas\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "C:\Programas\DVD2SVCD\Movie\Extracted_audio_1.ac3" -output "C:\PROGRA~2\DVD2SVCD\Movie\Encoded_audio_1.mp2" -logfile "C:\PROGRA~2\DVD2SVCD\Movie\Encoded_audio_1.log" ) -azid( -L -3db -c normal -s surround -g max ) -2lame( -e -b 192 -m s )
Audio conversion of C:\Programas\DVD2SVCD\Movie\Extracted_audio_1.ac3 finished.

Audio conversion finished.

--------------------------------------------------------
- 28-02-2003 1:21:41
- Free on drive C: 31723.67 mb
- Converting Pictures
--------------------------------------------------------
Converting: C:\Programas\DVD2SVCD\DefaultChangeCD.bmp
Finished converting pictures
--------------------------------------------------------
- 28-02-2003 1:21:58
- Free on drive C: 31722.88 mb
- Video Encoding using Cinema Craft
--------------------------------------------------------
Saving Subtitle Timecodes.
Permanent subtitles.

Executing Cinema Craft Encoder.
StreamSectors: 833937188
AudioSectors: 4980332
VideoPAPO: 12840984
ScanOffsetBytes: 7181
SeqAligningBytes: 456380
DVDBytes: 0
VideoEndHeader: 4
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 815652307.47
Seconds: 204.67
CalcMPEGStream: 815652307.47
Frames: 5984
CDSize: 800.00
Number of CDs: 1
Cut point 795.00
Variable Settings:
Frames: 5984
Anti Noise Filter: Off
Passes: 4
Image Quality: 17
VAF file creation: Off
Video Encoding Mode: CBR
Avg. Bitrate: 2370
Aspect Ratio: 16:9 (borders added, encoded as 4:3)

---AVS Begin---
LoadPlugin("C:\PROGRA~2\DVD2SVCD\MPEG2Dec\mpeg2dec.dll")
LoadPlugin("C:\PROGRA~2\DVD2SVCD\AVISYN~1.DLL")
mpeg2source("C:\PROGRA~2\DVD2SVCD\Movie\DVD2AV~1.D2V")
LoadPlugin("C:\Programas\DVD2SVCD\SimpleResize\SimpleResize.dll")
SimpleResize(480,360)
AddBorders(0,60,0,60)
AvisynthSubtitler("C:\PROGRA~2\DVD2SVCD\Movie\Subs\","permsubs.txt")
ResampleAudio(44100)
----AVS End----

Closing program
CCE Max Speed: 1.270
Video Encoding finished.

--------------------------------------------------------
- 28-02-2003 1:25:56
- Free on drive C: 31666.40 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Programas\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 28-02-2003 1:26:00
- Free on drive C: 31666.39 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Programas\DVD2SVCD\bbMPEG\default.ini

Executing RunbbMPEG. Commandline:
"C:\Programas\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "C:\Programas\DVD2SVCD\Movie\ChangeCDPicture.bmp.mpg"
--------------------------------------------------------
- 28-02-2003 1:26:08
- Free on drive C: 31666.36 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Programas\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 28-02-2003 1:26:13
- Free on drive C: 31666.36 mb
- Multiplexing and cutting
--------------------------------------------------------
Saving bbMPEG settings: C:\Programas\DVD2SVCD\bbMPEG\default.ini
Offset in Seconds: 2
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 795 mb

Executing RunbbMPEG. Commandline:
"C:\Programas\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "C:\Programas\DVD2SVCD\Movie\bbMPEG_Muxed_File.mpg"
Multiplexing and cutting finished.

--------------------------------------------------------
- 28-02-2003 1:26:33
- Free on drive C: 31603.69 mb
- Determining length of audio
--------------------------------------------------------
Analyzing: C:\Programas\DVD2SVCD\Movie\bbMPEG_Muxed_File00.mpg
237.600 seconds C:\Programas\DVD2SVCD\Movie\bbMPEG_Muxed_File00.mpg
Analyzing finished.

--------------------------------------------------------
- 28-02-2003 1:26:47
- Free on drive C: 31603.69 mb
- Creating CD-Images using VCDXBuild
--------------------------------------------------------
- No. of chapters to create: 1

CD image #1: CD_Image_File_CD1.bin

Executing VCDXBuild. Commandline:
"C:\Programas\DVD2SVCD\VCDImager\VCDXBuild.exe" --verbose --cue-file="C:\PROGRA~2\DVD2SVCD\Movie\CD_Image_File_CD1.cue" --bin-file="C:\PROGRA~2\DVD2SVCD\Movie\CD_Image_File_CD1.bin" "C:\PROGRA~2\DVD2SVCD\Movie\VCDXBU~1.XML"
CD-Image creation finished.

--------------------------------------------------------
- 28-02-2003 1:26:58
- Free on drive C: 31538.92 mb
- SVCD Creation finished!
--------------------------------------------------------

Avisynth_Script_file.avs

LoadPlugin("C:\PROGRA~2\DVD2SVCD\MPEG2Dec\mpeg2dec.dll")
LoadPlugin("C:\PROGRA~2\DVD2SVCD\AVISYN~1.DLL")
mpeg2source("C:\PROGRA~2\DVD2SVCD\Movie\DVD2AV~1.D2V")
LoadPlugin("C:\Programas\DVD2SVCD\SimpleResize\SimpleResize.dll")
SimpleResize(480,360)
AddBorders(0,60,0,60)
AvisynthSubtitler("C:\PROGRA~2\DVD2SVCD\Movie\Subs\","permsubs.txt")
ResampleAudio(44100)


Encoded_audio_1.log

BeSweet v1.5b15 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using MP2enc.dll v1.129 (23/5/2002), Engine 1.129 <http://www.cdex.n3.net>.

Logging start : 02/28/03 , 01:21:07.

C:\Programas\DVD2SVCD\BeSweet\BeSweet.exe -core( -input C:\Programas\DVD2SVCD\Movie\Extracted_audio_1.ac3 -output C:\PROGRA~2\DVD2SVCD\Movie\Encoded_audio_1.mp2 -logfile C:\PROGRA~2\DVD2SVCD\Movie\Encoded_audio_1.log ) -azid( -L -3db -c normal -s surround -g max ) -2lame( -e -b 192 -m s )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : C:\Programas\DVD2SVCD\Movie\Extracted_audio_1.ac3
[00:00:00:000] | Output: C:\PROGRA~2\DVD2SVCD\Movie\Encoded_audio_1.mp2
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:000] +-------- AZID -------
[00:00:00:000] | Input Channels Mode: 3/2, Bitrate: 448kbps
[00:00:00:000] | Output Stereo mode: Dolby surround compatible
[00:00:00:000] | Total Gain: 21.561dB, Compression: Normal
[00:00:00:000] | LFE levels: To LR -3.0dB, To LFE 0.0dB
[00:00:00:000] | Center mix level: BSI
[00:00:00:000] | Surround mix level: BSI
[00:00:00:000] | Dialog normalization: No
[00:00:00:000] | Rear channels filtering: No
[00:00:00:000] | Source Sample-Rate: 48.0KHz
[00:00:00:000] +------- MP2ENC ------
[00:00:00:000] | Bitrate method : CBR
[00:00:00:000] | MP2 bitrate : 192
[00:00:00:000] | Channels Mode : Stereo
[00:00:00:000] | Error Protection: Yes
[00:00:00:000] +---------------------
[00:03:59:456] Conversion Completed !
[00:03:59:456] Actual Avg. Bitrate : 192kbps
[00:00:28:000] <-- Transcoding Duration
Logging ends : 02/28/03 , 01:21:35.


___________________________________________
Win XP; Athlon 2000; 512 MB DDR; HD 120 GB

dvd2svcd
28th February 2003, 22:43
Something went very wrong here. As I can see it should have ripped 7 vob files but it only ripped 1. Try switching to vStrip ripping or in the last instance use smartripper to rip the dvd.

Edit:And btw, very nice informative first post, I wish everybody would explain the problem this well when posting the first time. Keep it up :)

amg1
28th February 2003, 23:20
Hi again,

Thank you for your Edit comment. In fact it ripped 7 vob files. Maybe I was not so clear after all. As I told you in my first post I ripped (again) from the first vob only the first chapter selecting it in the Conversion Tab - Movie length, to try some options (Smartdeinterlace, movie offset seconds, and others) but nothing did work. I'm going to try vStrip ripping (tonight) and I'll tell the result tomorrow.

Bye.

amg1
1st March 2003, 12:20
I tried VStrip but the results are the same. The original Vob's ripped with the internal subroutines are synch. VStrip reripped these Vob's to the folder Movie creating another set of Vob's that are synch too. But the files bbMPEG_Muxed_File0x.mpg are out of synch. The DVD is PAL (I'm in Europe). When I run DVD2AVI.exe with the Vob's (original or reripped with VStrip) it indicates Framerate 25000, Video Type: PAL, but the file "dvd2svcd_log.txt" reports a framerate of 29970 in DVD2AVI section...

It seems that dvd2avi, when played in batch mode inside DVD2SVCD, interprets the movie as NTSC. I send the files dvd2avi.ini (from the folder Dvd2avi) and the beginning of Dvd2avi_Project_File.d2v (from the folder Movie).

dvd2avi.ini

INI_Version=1
Window_Position=100,100
iDCT_Algorithm=2
YUVRGB_Scale=1
Field_Operation=0
Track_Number=0
Channel_Format=0
AC3=2
DR_Control=2
DS_Downmix=0
MPA=1
SRC_Precision=0
Norm_Ratio=100
Process_Priority=2


DVD2AVIProjectFile
7
40 C:\PROGRAMAS\DVD2SVCD\MOVIE\VTS_01_1.VOB
40 C:\PROGRAMAS\DVD2SVCD\MOVIE\VTS_01_2.VOB
40 C:\PROGRAMAS\DVD2SVCD\MOVIE\VTS_01_3.VOB
40 C:\PROGRAMAS\DVD2SVCD\MOVIE\VTS_01_4.VOB
40 C:\PROGRAMAS\DVD2SVCD\MOVIE\VTS_01_5.VOB
40 C:\PROGRAMAS\DVD2SVCD\MOVIE\VTS_01_6.VOB
40 C:\PROGRAMAS\DVD2SVCD\MOVIE\VTS_01_7.VOB

Stream_Type=1,0,0
iDCT_Algorithm=2
YUVRGB_Scale=1
Luminance=128,0
Picture_Size=0,0,0,0,0,0
Field_Operation=0
Frame_Rate=29970
Location=0,0,6,53B35

7 0 0 2 2 2 2 2 2 2 2 2 2 2 2
7 0 C7 2 2 2 2 2 2 2 2 2 2 2 2
7 0 1B4 2 2 2 2 2 2 2 2 2 2 2 2
7 0 290 2 2 2 2 2 2 2 2 2 2 2 2
7 0 37C 2 2 2 2 2 2 2 2 2 2 2 2

dvd2svcd
1st March 2003, 21:30
What player are you using to watch bbMPEG_Muxed_File0x.mpg ?

amg1
1st March 2003, 21:55
The player is PowerDVD. I solved some hours ago the problem of audio desynch. What I did was to change the frame rate in the project file. It worked. Now audio and video are synch. But the subs remain out of synch. I just need a little help.

I join the first part of the changed project file.

DVD2AVIProjectFile
1
40 C:\PROGRAMAS\DVD2SVCD\MOVIE\VTS_01_1.VOB

Stream_Type=1,0,0
iDCT_Algorithm=2
YUVRGB_Scale=1
Luminance=128,0
Picture_Size=0,0,0,0,0,0
Field_Operation=0
Frame_Rate=25000
Location=0,0,0,1BA4E

7 0 0 2 2 2 2 2 2 2 2 2 2 2 2
7 0 C7 2 2 2 2 2 2 2 2 2 2 2 2

dvd2svcd
2nd March 2003, 10:57
Very odd that it is seen as a NTSC movie when in fact it is a PAL.

markrb
2nd March 2003, 19:50
Would checking the NTSC to PAL button help here?
I don't know just offering a suggestion.

Mark

amg1
3rd March 2003, 04:04
No markrb, checking the NTSC to PAL button didn't result. But I've solved the problem of subtitles too. From the beginning:
- Run the DVD2SVCD program until the end
- Change the frame rate to 25000 in Dvd2avi_Project_File.d2v
- Run freeware Subtitle Workshop (http://urusoft.cjb.net/)
- Load subtitle... PermSubs.txt (...\DVD2SVCD\Movie\Subs)
Input FPS: 29,97 --> FPS: 25.
Save as PermSubs1.txt in the same folder
- Open DVD2SVCD: Tab Frameserver. Check Edit (the Avisynth Script File) as part of Video encoding.
- Tab Misc.: Recover (from Audio Extraction) --> Hit Continue
- When the Avisynth Script appears just change PermSubs.txt to PermSubs1.txt

That's it. I hope this can be useful to others with the same problem.