View Full Version : bbmpeg muxed file missing last seconds


ejfudd
3rd March 2002, 12:35
Hi,
I have tried to backup a few dvd's in sections by selecting chapters in the conversion tab while using the internal ripping routine. In each case, I have found that for the first cd, the last ~10 seconds are missing from the bbmpeg_muxed_file00.mpg file. (e.g. if there are 30 chapters selecting chapters 1-15) I do not see this problem if the final chapters are selected. I see the problem if the first cd is 740 or 800 mb. I have muxed the cce video with the audio file using tmpgenc and the resulting file is complete to the end. (an interesing observation here is that the complete file from tmpgenc muxing is about 4 MB smaller than the bbmpeb muxed file.) Since I have seen mentions of ripping by chapters in posts I assume I am doing something wrong. Below is the log file from my last attempt.
Any help is appreciated. Thanks.
--------------------------------------------------------
- 3/2/2002 11:19:57 PM
- DVD to SVCD Conversion
- DVD2SVCD ver. 1.0.7 build 3
--------------------------------------------------------
Initializing
Initializing finished.

--------------------------------------------------------
- 3/2/2002 11:19:59 PM
- Free on drive D: 111259.20 mb
- Internal rip
--------------------------------------------------------
Preparing vobfiles to be ripped:
- R:\VIDEO_TS\VTS_02_1.vob
- R:\VIDEO_TS\VTS_02_2.vob
- R:\VIDEO_TS\VTS_02_3.vob
- R:\VIDEO_TS\VTS_02_4.vob
- R:\VIDEO_TS\VTS_02_5.vob
- R:\VIDEO_TS\VTS_02_6.vob
- R:\VIDEO_TS\VTS_02_7.vob
- R:\VIDEO_TS\VTS_02_8.vob

Ripping: R:\VIDEO_TS\VTS_02_1.vob
Ripping: R:\VIDEO_TS\VTS_02_2.vob
Ripping: R:\VIDEO_TS\VTS_02_3.vob
Ripping finished. Speed: 6733

--------------------------------------------------------
- 3/2/2002 11:26:32 PM
- DVD2AVI
--------------------------------------------------------
Creating DVD2AVI INI file:
- E:\Program Files\DVD2SVCD\DVD2AVI\DVD2AVI.INI

Variable settings:
iDCT_Algorithm: 32-bit SSE MMX

Executing DVD2AVI.
Executing DVD2AVI. Commandline:
"E:\Program Files\DVD2SVCD\DVD2AVI\DVD2AVI.exe" -IA=1 -CS=2 -YR=1 -EXIT -OF=[D:\fightcluba\DVD2AVI_Project_file] -IF=[D:\fightcluba\VTS_02_1.vob,D:\fightcluba\VTS_02_2.vob,D:\fightcluba\VTS_02_3.vob]
Analyzing DVD2AVI Project file
Force Film activated!
Framerate: 23976
DVD2AVI processing done.

--------------------------------------------------------
- 3/2/2002 11:27:38 PM
- Free on drive D: 108687.86 mb
- AUDIO Extraction
--------------------------------------------------------
Found AC3 stream id: 0x81
Filename: D:\fightcluba\Extracted_audio_1.ac3
Audio1 delay: 29 ms
Audio extraction finished.

--------------------------------------------------------
- 3/2/2002 11:30:51 PM
- Free on drive D: 108536.32 mb
- AUDIO conversion
--------------------------------------------------------

Converting Audio to MP2. Filename: D:\fightcluba\Extracted_audio_1.ac3
Executing BeSweet. Commandline:
"E:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "D:\fightcluba\Extracted_audio_1.ac3" -output "D:\FIGHTC~1\Encoded_audio_1.mp2" -logfile "D:\FIGHTC~1\Encoded_audio_1.log" ) -azid( -L -3db -c normal ) -ota( -g max -d 29 ) -ssrc( --rate 44100 ) -2lame( -e -b 128 -m s )
Audio conversion of D:\fightcluba\Extracted_audio_1.ac3 finished.

Audio conversion finished.

--------------------------------------------------------
- 3/2/2002 11:43:36 PM
- Free on drive D: 108493.01 mb
- Converting Pictures
--------------------------------------------------------
Converting: E:\Program Files\DVD2SVCD\DefaultTitlepicture.bmp
Converting: E:\Program Files\DVD2SVCD\DefaultChangeCD.bmp
Finished converting pictures
--------------------------------------------------------
- 3/2/2002 11:43:43 PM
- Free on drive D: 108492.05 mb
- Video Encoding using Cinema Craft
--------------------------------------------------------

Executing Cinema Craft Encoder.
StreamSectors: 770491988
AudioSectors: 45922240
VideoPAPO: 11223972
ScanOffsetBytes: 81647
SeqAligningBytes: 5189108
VideoEndHeader: 4
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 300.00
PureMPEGStream: 708075017.47
Seconds: 2831.80
CalcMPEGStream: 708075017.47
Frames: 68039
CDSize: 740.00
Cut point 735.00
Variable Settings:
Frames: 68039
Anti Noise Filter: 2
Passes: 3
Image Quality: 17
VAF file creation: On
Video Encoding Mode: Multipass VBR
Min. bitrate: 300
Max. bitrate: 2530
Avg. Bitrate: 2000
Closing program
Video Encoding finished.

--------------------------------------------------------
- 3/3/2002 1:48:35 AM
- Free on drive D: 107798.64 mb
- Video Pulldown
--------------------------------------------------------
Executing Pulldown. Commandline:
"E:\Program Files\DVD2SVCD\pulldown\pulldown.exe" "D:\fightcluba\Encoded_Video_CCE_NTSC.mpv" "D:\fightcluba\Pulldown_Encoded_Video_NTSC.mpv"
Video pulldown finished.

--------------------------------------------------------
- 3/3/2002 1:50:29 AM
- Free on drive D: 107122.01 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: E:\Program Files\DVD2SVCD\bbMPEG\default.ini

Executing RunbbMPEG. Commandline:
"E:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\fightcluba\TitlePicture.bmp.mpg"
--------------------------------------------------------
- 3/3/2002 1:50:32 AM
- Free on drive D: 107121.97 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: E:\Program Files\DVD2SVCD\bbMPEG\default.ini

Executing RunbbMPEG. Commandline:
"E:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\fightcluba\ChangeCDPicture.bmp.mpg"
--------------------------------------------------------
- 3/3/2002 1:50:35 AM
- Free on drive D: 107121.94 mb
- Multiplexing and cutting
--------------------------------------------------------
Saving bbMPEG settings: E:\Program Files\DVD2SVCD\bbMPEG\default.ini
Offset in Seconds: 2
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 735 mb

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

--------------------------------------------------------
- 3/3/2002 1:52:41 AM
- Free on drive D: 106387.23 mb
- Determining length of audio
--------------------------------------------------------
Analyzing: D:\fightcluba\bbMPEG_Muxed_File00.mpg
2830.080 seconds D:\fightcluba\bbMPEG_Muxed_File00.mpg
Analyzing finished.

--------------------------------------------------------
- 3/3/2002 1:52:52 AM
- Free on drive D: 106387.23 mb
- Creating CD-Images using VCDXBuild
--------------------------------------------------------
- No. of chapters to create: 15

CD image #1: CD_Image_File_CD1.bin

Executing VCDXBuild. Commandline:
"E:\Program Files\DVD2SVCD\VCDImager\VCDXBuild.exe" --cue-file="D:\fightcluba\CD_Image_File_CD1.cue" --bin-file="D:\fightcluba\CD_Image_File_CD1.bin" "D:\fightcluba\VCDXBuild_Script_1.xml"
CD-Image creation finished.

--------------------------------------------------------
- 3/3/2002 1:54:21 AM
- Free on drive D: 105642.11 mb
- SVCD Creation finished!
--------------------------------------------------------

emilius256
3rd March 2002, 22:13
read this http://forum.doom9.org/showthread.php?s=&threadid=16340
i think it can solve the problem.

ejfudd
3rd March 2002, 23:24
The above link does not appear to be relevant since only one mpg file is being created. Also, it happens whether a 800 mb or 740 mb file is created.

by the way here is some system info:

P4 1.7 GHz, 1 gb 266 ddr ram, win xp pro (logged on as administrator)

I should also mention that there is a work around that I have been using. I would rather not having to do the extra steps of the work around if possible.

The work around:

1) run dvd2svcd as I would normally

when it ends

2) delete the bin and cue file created (I don't know if this is necessary or not.)

3) simple mux the mpv file with the audio file in tmpgenc (tools)

4) rename the muxed file to bbMPEG_Muxed_File00.mpg

5) use crash recovery in dvd2svcd at svcd authoring.

ejfudd
6th March 2002, 19:45
This posting is to give an answer for anyone searching about this issue:

emilius256 wrote (in another thread):

As was already posted in the previos thread, you have to edit the .d2s file, find the line bbMPEGCDSize and put 740 or 800 as size.
The problem is that you choose a cd size in the bitrate tab (for example 800) but in the .d2s file the size is 785 instead of 800.
So the cut is a few second before the real end of the movie and since you choose 1 cd, this few seconds are lost.
Try editing the .d2s file then user Crash Recovery and start from Muxing and Cutting.
If this doesen't work post againg.
Hope this can help you.

Bye.

This did fix the problem.

DDogg
7th March 2002, 00:00
Wasn't this fixed in Build 4?

emilius256
7th March 2002, 10:24
It seems that buld 4 didn't solve the problem.
I've compressed Shrek pal 2CD with build 4 and the 2 mpeg files missed 5-10 seconds at the end.
I've changed the movie offset seconds to 0 in the bbMPEG tab but i don't think this is the reason.

Bye.

Mozart
7th March 2002, 15:03
hi,

first of all, it is really hard to believe that bbmpeg is missing the end of files. Lets use those infos available in your log:


CCE step:
(...)
Executing Cinema Craft Encoder.
(...)
PictureSectors: 300.00
PureMPEGStream: 708075017.47
Seconds: 2831.80
CalcMPEGStream: 708075017.47


Here we can see that CCE will encode 2831.80 seconds of video.


Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds


here we can see that the offset value used was 2 sec.


(...)
- Determining length of audio
--------------------------------------------------------
Analyzing: D:\fightcluba\bbMPEG_Muxed_File00.mpg
2830.080 seconds D:\fightcluba\bbMPEG_Muxed_File00.mpg
Analyzing finished.


here we can see that the final muxed file has 2830.080 seconds of audio (and, of course, of video too). The diference 2831.8-2830.08=1.72 seconds is almost 2 seconds, which is the offset value used by bbmpeg. Thus, there is nothing wrong with the bbmpeg file.

Lets go ahead with our investigation... could you test the bin/cue file created with the mpeg muxed by bbmpeg? Do it using daemon tools and watching the virtual svcd. If there is no missed seconds at the end of the movie, this mean that your burner have problems while trying to burn files which has almost the whole size of the CD, missing the end of these files. Could verify it?

emilius256
7th March 2002, 16:45
The problem is not in the burned cd, after the encoding if i play the resulting .mpg file i see that the movie is shorter of 5-10 seconds but if i play the .mpv file, i don't have any lost seconds.
However these are the part of the log.

Executing Cinema Craft Encoder
StreamSectors: 849624188
AudioSectors: 105100576
VideoPAPO: 11533068
ScanOffsetBytes: 97140
SeqAligningBytes: 6173787
VideoEndHeader: 4
SubtitleSectors: 6911576
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 719808037.33
Seconds: 2592.40
CalcMPEGStream: 719808037.33
Frames: 64760
CDSize: 815.00
Cut point 802.00

As you can see CDSize is 815 but Cut point is 802 so i guess the movie is compressed to fit a 815 MB cd but is cut at 802 MB.
the movie is 2592 seconds long.

Offset in Seconds: 0
Executing bbMPEG.
Variable Settings:
Movie offset: 0 seconds
Cut point: 802 mb

Movie offset is 0 otherwise the first 2 seconds are cut.

- Determining length of audio
--------------------------------------------------------
Analyzing: D:\temp\sh_1\bbMPEG_Muxed_File00.mpg
2584.080 seconds D:\temp\sh_1\bbMPEG_Muxed_File00.mpg
Analyzing finished.

As you see the movie from 2592 seconds become 2584 seconds, 8 seconds less then the original.
After modify the d2s file and put bbMPEGCDSize=815, i start crash recovery from Muxing and cutting.
Here's the new log.

Offset in Seconds: 0
Executing bbMPEG.
Variable Settings:
Movie offset: 0 seconds
Cut point: 815 mb

Now the cut point is 815 like the Cd size i put in the bitrate tab.

- Determining length of audio
--------------------------------------------------------
Analyzing: D:\temp\sh_1\bbMPEG_Muxed_File00.mpg
2590.272 seconds D:\temp\sh_1\bbMPEG_Muxed_File00.mpg

Now the lenght is almost right, 2592.40 - 2590.272 = 2.128.

If you think i'm doing something wrong, or you need to give a look to my log, just tell me.

Any hint will be appreciated.

Thx.

Mozart
7th March 2002, 19:03
come on emilius... You said before that bbmpeg was missing 5-10 seconds of the movie... Now you said that, editing the cut point, those "missed" seconds are shown again... It seems that nothing were missed, don't you think?

This is an old problem with the cutting point, as you can see here (http://forum.doom9.org/showthread.php?threadid=16340&highlight=800mb).

emilius256
7th March 2002, 23:27
It seems that nothing were missed, don't you think?
Yes, you're right, after editing the cut point in the d2s file the movie doesen't have any missed seconds, but in the log file there's however a 2 seconds of difference.

This is an old problem with the cutting point, as you can see here.
I know this is an old problem, and if you look at the beginning of this thread you can see that i've already posted the same link, i was only trying to help ejfudd.

I'm sorry if i have caused any problem, it wasn't my intention.
I was only trying to be of help. :( :(

I'm so sorry.

Mozart
7th March 2002, 23:45
there is no reason for excuses emilius. No problem at all.

emilius256
7th March 2002, 23:56
Thank you Mozart :) .

Now i feel better.