Log in

View Full Version : VOBs and .mpv were complete but .mpg was cut off


terrypeng
12th December 2003, 17:20
Sorry if this problem has been posted. I've searched the forums for weeks but still can't figure it out. Thanks in advance for any help.

I am using dvd2svcd with default settings but the SVCD created from .bin/.cue was cut off the last 2+ mins. I used PowerDVD to play Encoded_Video_TMPGEnc_NTSC.mpv and it was complete (50:01). All VOB files were complete. However, bbMPEG_Muxed_File00.mpg was cut off (only 47:49). I tried DVD Rip with Internal routines and vStrip but both have the same result.

---------------------------------------------------------

WNASPI32.DLL 4.6.0.1021
--------------------------------------------------------
- 12/5/2003 7:07:07 AM
- DVD to SVCD Conversion
- DVD2SVCD ver. 1.2.1 build 3
--------------------------------------------------------
Initializing
- D:\VIDEO_TS\VTS_02_0.IFO
- D:\VIDEO_TS\VTS_02_1.vob
- D:\VIDEO_TS\VTS_02_2.vob
- D:\VIDEO_TS\VTS_02_3.vob
- D:\VIDEO_TS\VTS_02_4.vob
Initializing finished.

--------------------------------------------------------
- 12/5/2003 7:07:09 AM
- Analyzing subtitles
--------------------------------------------------------
Subtitle found: StreamID: 0x20 Language: Chinese

Executing subtitle selection/verification.
Subtitle selection/verification accepted.
1 subtitle streams selected.
Saving Subtitles ini file
--------------------------------------------------------
- 12/5/2003 7:07:32 AM
- Free on drive C: 2269.56 mb
- Internal rip
--------------------------------------------------------
Preparing vobfiles to be ripped:
- D:\VIDEO_TS\VTS_02_1.vob
- D:\VIDEO_TS\VTS_02_2.vob
- D:\VIDEO_TS\VTS_02_3.vob
- D:\VIDEO_TS\VTS_02_4.vob

Ripping: D:\VIDEO_TS\VTS_02_1.vob
Ripping: D:\VIDEO_TS\VTS_02_2.vob
Ripping: D:\VIDEO_TS\VTS_02_3.vob
Ripping: D:\VIDEO_TS\VTS_02_4.vob
Analyzing DVD2AVI Project file
Force Film NOT activated!
Framerate: 29970
Ripping finished. Speed: 2170

Trying to eject the DVD
--------------------------------------------------------
- 12/5/2003 7:33:54 AM
- DVD2AVI
--------------------------------------------------------
Creating DVD2AVI INI file:
- C:\Program Files\DVD2SVCD\DVD2AVI\DVD2AVI.INI

Variable settings:
iDCT_Algorithm: 32-bit SSE MMX

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

--------------------------------------------------------
- 12/5/2003 7:38:27 AM
- Free on drive C: 2924.71 mb
- Extracting the subtitles.
--------------------------------------------------------

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

Saving Subtitle Timecodes.
Permanent subtitles.
Saving Subtitles ini file
--------------------------------------------------------
- 12/5/2003 7:52:40 AM
- Free on drive C: 2924.68 mb
- AUDIO Extraction
--------------------------------------------------------
Found PCM stream id: 0xA0
Filename: C:\Program Files\DVD2SVCD\Movie\Extracted_audio_1.wav
Found PCM stream id: 0xA1
Filename: C:\Program Files\DVD2SVCD\Movie\Extracted_audio_2.wav
Audio1 delay: -33 ms
Audio2 delay: -33 ms
Analyzing DVD2AVI Project file
Force Film NOT activated!
Framerate: 29970
Audio extraction finished.

--------------------------------------------------------
- 12/5/2003 8:06:31 AM
- Free on drive C: 3070.64 mb
- AUDIO conversion
--------------------------------------------------------

Encoding Audio. Filename: C:\Program Files\DVD2SVCD\Movie\Extracted_audio_1.wav
Executing BeSweet. Commandline:
"C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "C:\Program Files\DVD2SVCD\Movie\Extracted_audio_1.wav" -output "C:\PROGRA~1\DVD2SVCD\Movie\Encoded_audio_1.mp2" -logfile "C:\PROGRA~1\DVD2SVCD\Movie\Encoded_audio_1.log" ) -ota( -g max -d -33 ) -shibatch( --rate 44100 ) -2lame( -e -b 192 -m s )
Audio conversion of C:\Program Files\DVD2SVCD\Movie\Extracted_audio_1.wav finished.


Encoding Audio. Filename: C:\Program Files\DVD2SVCD\Movie\Extracted_audio_2.wav
Executing BeSweet. Commandline:
"C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "C:\Program Files\DVD2SVCD\Movie\Extracted_audio_2.wav" -output "C:\PROGRA~1\DVD2SVCD\Movie\Encoded_audio_2.mp2" -logfile "C:\PROGRA~1\DVD2SVCD\Movie\Encoded_audio_2.log" ) -ota( -g max -d -33 ) -shibatch( --rate 44100 ) -2lame( -e -b 192 -m s )
Audio conversion of C:\Program Files\DVD2SVCD\Movie\Extracted_audio_2.wav finished.

Audio conversion finished.

--------------------------------------------------------
- 12/5/2003 8:51:24 AM
- Free on drive C: 3088.88 mb
- Converting Pictures
--------------------------------------------------------
Converting: C:\Program Files\DVD2SVCD\DefaultChangeCD.bmp
Finished converting pictures
--------------------------------------------------------
- 12/5/2003 8:51:32 AM
- Free on drive C: 3088.88 mb
- Video Encoding using TMPGEnc
--------------------------------------------------------
Saving Subtitle Timecodes.
Permanent subtitles.
- Encoding C:\Program Files\DVD2SVCD\Movie\ChangeCDPicture.bmp.avs
Executing TMPGEnc. Commandline:
"C:\Program Files\tmpg\TMPGEnc.exe" "C:\Program Files\DVD2SVCD\Movie\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

- Encoding Test Clip C:\Program Files\DVD2SVCD\Movie\AviSynth_Script_file_CQ_TEST.avs
Executing TMPGEnc. Commandline:
"C:\Program Files\tmpg\TMPGEnc.exe" "C:\Program Files\DVD2SVCD\Movie\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

- Encoding Test Clip C:\Program Files\DVD2SVCD\Movie\AviSynth_Script_file_CQ_TEST.avs
Wanted: 671780906 (656036kb)
Predicted: 890858158 (869979kb) Using CQ Value: 80.00
Calculated next CQ Value: 68.43
Executing TMPGEnc. Commandline:
"C:\Program Files\tmpg\TMPGEnc.exe" "C:\Program Files\DVD2SVCD\Movie\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

- Encoding Test Clip C:\Program Files\DVD2SVCD\Movie\AviSynth_Script_file_CQ_TEST.avs
Wanted: 671780906 (656036kb)
Predicted: 789086464 (770592kb) Using CQ Value: 68.43
Calculated next CQ Value: 62.44
Executing TMPGEnc. Commandline:
"C:\Program Files\tmpg\TMPGEnc.exe" "C:\Program Files\DVD2SVCD\Movie\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

- Encoding Test Clip C:\Program Files\DVD2SVCD\Movie\AviSynth_Script_file_CQ_TEST.avs
Wanted: 671780906 (656036kb)
Predicted: 716615770 (699820kb) Using CQ Value: 62.44
Calculated next CQ Value: 60.15
Executing TMPGEnc. Commandline:
"C:\Program Files\tmpg\TMPGEnc.exe" "C:\Program Files\DVD2SVCD\Movie\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

- Encoding Test Clip C:\Program Files\DVD2SVCD\Movie\AviSynth_Script_file_CQ_TEST.avs
Wanted: 671780906 (656036kb)
Predicted: 692695308 (676460kb) Using CQ Value: 60.15
Calculated next CQ Value: 59.08
Executing TMPGEnc. Commandline:
"C:\Program Files\tmpg\TMPGEnc.exe" "C:\Program Files\DVD2SVCD\Movie\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

- Encoding Test Clip C:\Program Files\DVD2SVCD\Movie\AviSynth_Script_file_CQ_TEST.avs
Wanted: 671780906 (656036kb)
Predicted: 692332907 (676106kb) Using CQ Value: 59.08
Calculated next CQ Value: 58.05
Executing TMPGEnc. Commandline:
"C:\Program Files\tmpg\TMPGEnc.exe" "C:\Program Files\DVD2SVCD\Movie\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

- Encoding Test Clip C:\Program Files\DVD2SVCD\Movie\AviSynth_Script_file_CQ_TEST.avs
Wanted: 671780906 (656036kb)
Predicted: 685595128 (669526kb) Using CQ Value: 58.05
Calculated next CQ Value: 57.36
Executing TMPGEnc. Commandline:
"C:\Program Files\tmpg\TMPGEnc.exe" "C:\Program Files\DVD2SVCD\Movie\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

- Encoding Test Clip C:\Program Files\DVD2SVCD\Movie\AviSynth_Script_file_CQ_TEST.avs
Wanted: 671780906 (656036kb)
Predicted: 675525270 (659693kb) Using CQ Value: 57.36
Calculated final CQ Value: 57.17
- Encoding C:\Program Files\DVD2SVCD\Movie\AviSynth_Script_file.avs
StreamSectors: 833937188
AudioSectors: 146277208
VideoPAPO: 10652220
ScanOffsetBytes: 80967
SeqAligningBytes: 5145884
DVDBytes: 0
VideoEndHeader: 4
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 671780905.70
Seconds: 3006.77
CalcMPEGStream: 671780905.70
Frames: 89963
CDSize: 800.00
Number of CDs: 1
Cut point 795.00
Using CQ Value: 57.17
Aspect Ratio: 4:3 (No borders, encoded as 4:3)

---AVS Begin---
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\AVISYN~2.DLL")
mpeg2source("C:\PROGRA~1\DVD2SVCD\Movie\DVD2AV~2.D2V")
BicubicResize(480,480,0.0,0.6)
ConvertToYUY2()
AvisynthSubtitler("C:\PROGRA~1\DVD2SVCD\Movie\Subs\","permsubs.txt")
ConvertToRGB()
----AVS End----

Executing TMPGEnc. Commandline:
"C:\Program Files\tmpg\TMPGEnc.exe" "C:\Program Files\DVD2SVCD\Movie\TMPGEnc_Project_file.tpr" /Encode /Close
Video Encoding finished.

--------------------------------------------------------
- 12/5/2003 1:19:37 PM
- Free on drive C: 3767.29 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 12/5/2003 1:19:41 PM
- Free on drive C: 3767.28 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "C:\Program Files\DVD2SVCD\Movie\ChangeCDPicture.bmp.mpg"
--------------------------------------------------------
- 12/5/2003 1:19:47 PM
- Free on drive C: 3767.27 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 12/5/2003 1:19:50 PM
- Free on drive C: 3767.27 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: 795 mb

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

--------------------------------------------------------
- 12/5/2003 1:24:31 PM
- Free on drive C: 2970.36 mb
- Determining length of audio
--------------------------------------------------------
Analyzing: C:\Program Files\DVD2SVCD\Movie\bbMPEG_Muxed_File00.mpg
2869.969 seconds C:\Program Files\DVD2SVCD\Movie\bbMPEG_Muxed_File00.mpg
Analyzing finished.

--------------------------------------------------------
- 12/5/2003 1:25:04 PM
- Free on drive C: 2970.36 mb
- Creating CD-Images using VCDXBuild
--------------------------------------------------------
- No. of chapters to create: 4

CD image #1: CD_Image_File_CD1.bin

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

--------------------------------------------------------
- 12/5/2003 1:27:42 PM
- Free on drive C: 2164.73 mb
- Conversion done!
--------------------------------------------------------

Nick
12th December 2003, 18:08
Very puzzling. Unlikely to be a ripping problem as the encoded video file works. You don't mention the audio. Does Encoded_audio.mp2 play all the way through in media player? If not post your BeSweet log.

As for muxing, if both video and audio are OK I can't see why this has failed. bbMPEG at least usually stops with an error message!

Try multiplexing manually in TMPGEnc. Open MPEG Tools from the file menu, choose multiplex tab and select MPEG2 Super VideoCD (VBR) as your output. Browse for you mpv and mp2 files for video and audio source respectively and save your output as bbMPEG_Muxed_File00.mpg over the faulty one.

Try playing the file. If TMPGEnc fails to mux to the end post back giving any error message it gives. If it plays fully do a crash recovery in DVD2SVCD from the SVCD authoring stage.

If that doesn't work get VCDEasy and author the image files yourself. It is no longer freeware but the last freeware version is still available ( click me (http://www.pc-magazin.de/datatip/common/dtt/download.php?areaid=66&fileid=2245) ). If you find you use it a lot, upgrade to the latest version and invest $15 in the author by registering it.

That should sort it in this instance but if it happens frequently on various different DVD's, try a full deinstall and reinstall then post back here.

PS Welcome to the forum - nice first post. Did everything right.

jsoto
13th December 2003, 01:04
Hi terrypeng,

TMPGENc in CQ mode isn't enough accurate. Many times you have an oversized or undersized video. Not sure what happens in the case of a single CD, but probably D2S is cutting the mpg in order to do not create a CD image too big.

To check this:
- Check your video size. It must be below
"Wanted: 671780906 (656036kb)"
- If higher, try changing bbMPEGCDSize parameter in dvd2svcd project file.d2s to 810 or 820, and then recover from mux & cutting. You will get a Image too big, but may be with overburn you still can use it.

CQ mode is the best quality/encoding_time in TMPGENc, but the predicted size is not accurate enough. To avoid future problems of oversizing, you can change "CQ value factor" in Encoder tab to a value less than 1. The general result will be CD not completely filled, but the probability of oversizing will be lower.

jsoto

terrypeng
14th December 2003, 21:33
Many thanks to Nick and Jsoto's comments. I've solved the problem and convert at least 3 DVDs with this cut-off issue earlier. Here is what I have done in the past two days.

1. Both Encoded_audio_1.mp2 and Encoded_Video_TMPGEnc_NTSC.mpv were complete (50:01). But bbMPEG_Muxed_File00.mpg was cut off (only 47:49).
2. Tried to deinstall, reboot, and reinstall DVD2SVCD: same cut-off problem.
3. Tried to install DVD2SVCD on another machine: same cut-off problem.
4. I read jsoto's comment. So I changed Encoder(TMPGEnc)'s Rate Control Mode from Constant Quality(CR) to Automatic variable bitrate (CQ VR). The rest of settings are default. Then it works. I am not familiar with TMPGEnc. Can someone elaborates the Rate Control Modes (CBR, VBR, CQ, CQ VR) and when I should use which mode?

Thanks

Nick
15th December 2003, 12:46
Ok. You have a fixed number of bits available on your target discs and MPEG compression needs bits to record movement. There are two ways to determine bitrate distribution - Size based encoding and quality based encoding.

Size based is where the encoder divides the disc size in bits by the movie length in seconds to see how many bits per second it has to play with. This value is called Average Bitrate. There are two subtypes of size based encodes -

CBR (Constant bitrate) where the calculated average is used to encode the movie. So action scenes are of low quality - the extra movement needs more bits to encode well. Quieter scenes that don't need many bits have extra bits wasted upon them as CBR makes no provision for this. It is however, very quick. Use it for test encodes and perhaps for putting short films on DVDR as the average bitrate value is then very high anyway.

VBR (Variable bitrate) does the above but then goes back over the movie, looking for quiet scenes to steal bits from and then reallocating these bits to the bit-hungry action scenes. This is where Min and Max bitrates come in. Therefore the quality is better but it takes ages!

Quality based is where test clips are encoded from random samples of the movie. From these, a Quality factor can be calculated - say a 2% sample of the movie was encoded and filled 4% of your target discs, if you encoded the sample at half that quality 2% of the movie would have filled 2% of your discs. So encode the whole movie at half that quality it should exactly fill the discs...
The advantages of this method are that every scene is encoded to a preset quality so the quality of the encode is top notch. It is much quicker than 2 pass VBR. Its downside is that if the sample is not representative of the movie as a whole, the sums don't add up and you may get oversize or undersized output files.

So you either live with the long VBR encodes, or you live with the occasional file size error with CQ - it's down to you.

This is quite a simplification but should clarify the principles of what you're doing. I hope it helps.

jsoto
15th December 2003, 23:36
A very clear summary (as usual) from Nick

Nothing to add, except my personal rules when I used TMPGENc. IMHO, CQ mode in TMPGENc gives better quality than 2 pass VBR, so I lived with the "problem" of oversized files. To save it, I recoded (using D2S recover function) the video using a fixed Q just a little lower than the one calculated by D2S (around 10% of the times).

Other choice is to manually recode the audio to a lower bitrate, but recovering from mux in D2S with this "trick" does not work fine (it still works with the original audio bitrate), so you have to mux and author manually.

jsoto