digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Simple Guide AVI to KDVD with Mainconcept Encoder (MCE) (http://www.digitalfaq.com/archives/encode/8378-simple-guide-avi.html)

Prodater64 02-28-2004 03:04 PM

Simple Guide AVI to KDVD with Mainconcept Encoder (MCE)
 
Hi:
Here is a little Mainconcept (MCE) guide.

1 - Open MCE. In MCE Main screen select Options - Import Modules - MPEG Import - Details: Add in extensions, first of all,

"avs," without quotation marks. It must look like this:

Code:

avs,mpg,mpeg,mpa,mpv,dat,vob,m2v,m2a,m1v,m1a,mmv,mzl,ifo
http://www.digitalfaq.com/archives/error.gif

Ok, Ok. Close MCE.

2 - Copy de following lines and put it in a text file. Save it with de name: KVCD DVD 720x576 VBR.mef
and put it in: C:\Documents and Settings\[user name]\Application Data\MCMPEGEnc
Code:


[MAIN]
StreamType=1
MpegType=2
VideoMode=1
AudioMode=2
Width=720
Height=576
DestStartX=0
DestStartY=0
DestWidth=720
DestHeight=576
SrcStartX=0
SrcStartY=0
SrcWidth=352
SrcHeight=240
FlipVertical=0
SampleRate=44100
LineFiltering=0
Deinterlacing=0
Passes=1
ID=mep-profile
Name=KVCD DVD 720x576 VBR
[WaveAudio]
Channels=0
Bits=0
[basic]
settingsVersion=2
online=0
perfLevel=16
motionSearchType=25
mpegType=2
deinterlacing_mode=0
relaxed_standards=1
[video]
videoPulldownFlag=0
rateControlMode=1
aspectRatio=2
frameRateCode=3
iFramesInGOP=15
ipFrameDistance=3
bitrateFlag=0
mquantValue=3
constBitrate=6000000
maxBitrate=6000000
avgBitrate=1800000
minBitrate=450000
timeCode0=0
dropFrameTC=0
constrParms=0
closedGOPs=0
[audio]
audioLayer=2
audioMode=0
deEmphasis=0
audioBitrate=11
privateBit=0
copyrightBit=0
originalBit=0
errorProtection=0
psychModel=2
[multiplex]
programStreamType=2
vbrMultiplex=1
padVCDAudio=0
writeProgramEndCode=1
muxSVCDScanOffsets=0
alignSequenceHeaders=0
usePrivateStream2=0
useComputedBitrate=0
frameTimestamps=0
muxPulldownFlag=3
userMuxRate=0
sectorSize=2048
packetsPerPack=1
videoBufferSize=0
audioBufferSize=0
audio1BufferSize=0
sectorDelay=0
videoDelay=180
audioDelay=180
audio1Delay=180
alwaysWriteSysHeader=0
maxFileSize=0
muxStartTime=0
muxStopTime=0
resetClocks=1
setBrokenLink=1
writeEndCodes=1
[advVideo]
profile=4
level=8
chromaFormat=1
colorPrimaries=5
transferCharacteristics=5
matrixCoefficients=5
videoFormat=1
intraDCPrec=1
vbvBufferSize=112
forceVBVDelay=1
displayHorizontalSize=720
displayVerticalSize=576
progressiveSequence=0
progressiveFrame=0
fieldPictures=0
topFieldFirst=0
repeatFirstField=0
intraVLCFormatI=1
intraVLCFormatP=1
intraVLCFormatB=1
framePredDCTI=0
framePredDCTP=0
framePredDCTB=0
quantizationScaleI=1
quantizationScaleP=1
quantizationScaleB=1
alternateScanI=1
alternateScanP=1
alternateScanB=1
writeSequenceDisplayExt=0
writeSequenceEveryGOP=1
writeSequenceEndCode=1
embedSVCDUserBlocks=0
writePictureDisplayExt=0
frameCentreHorizontalOffset=0
frameCentreVerticalOffset=0
qtNoiseSensitivity=1
featureFlags=32
reactionParameter=0
initialAverageActivity=0
initialIComplexity=0
initialPComplexity=0
initialBComplexity=0
initialIFullness=0
initialPFullness=0
initialBFullness=0
minFramePercentage=25
padFramePercentage=0
autoVectorLengths=1
horzPelMovement=2047
vertPelMovement=2047
forwHorzFCodeP=5
forwVertFCodeP=5
forwHorzSearchP=127
forwVertSearchP=127
forwHorzFCodeB1=5
forwVertFCodeB1=5
forwHorzSearchB1=127
forwVertSearchB1=127
backHorzFCodeB1=5
backVertFCodeB1=5
backHorzSearchB1=127
backVertSearchB1=127
forwHorzFCodeB2=5
forwVertFCodeB2=5
forwHorzSearchB2=127
forwVertSearchB2=127
backHorzFCodeB2=5
backVertFCodeB2=5
backHorzSearchB2=127
backVertSearchB2=127
forwHorzFCodeB3=0
forwVertFCodeB3=0
forwHorzSearchB3=0
forwVertSearchB3=0
backHorzFCodeB3=0
backVertFCodeB3=0
backHorzSearchB3=0
backVertSearchB3=0
forwHorzFCodeB4=0
forwVertFCodeB4=0
forwHorzSearchB4=0
forwVertSearchB4=0
backHorzFCodeB4=0
backVertFCodeB4=0
backHorzSearchB4=0
backVertSearchB4=0
forwHorzFCodeB5=0
forwVertFCodeB5=0
forwHorzSearchB5=0
forwVertSearchB5=0
backHorzFCodeB5=0
backVertFCodeB5=0
backHorzSearchB5=0
backVertSearchB5=0
forwHorzFCodeB6=0
forwVertFCodeB6=0
forwHorzSearchB6=0
forwVertSearchB6=0
backHorzFCodeB6=0
backVertFCodeB6=0
backHorzSearchB6=0
backVertSearchB6=0
forwHorzFCodeB7=0
forwVertFCodeB7=0
forwHorzSearchB7=0
forwVertSearchB7=0
backHorzFCodeB7=0
backVertFCodeB7=0
backHorzSearchB7=0
backVertSearchB7=0
ignore_frame_interval=0
user_iquant=1
intra_q[0]=8
intra_q[1]=9
intra_q[2]=12
intra_q[3]=22
intra_q[4]=26
intra_q[5]=27
intra_q[6]=29
intra_q[7]=34
intra_q[8]=9
intra_q[9]=10
intra_q[10]=14
intra_q[11]=26
intra_q[12]=27
intra_q[13]=29
intra_q[14]=34
intra_q[15]=37
intra_q[16]=12
intra_q[17]=14
intra_q[18]=18
intra_q[19]=27
intra_q[20]=29
intra_q[21]=34
intra_q[22]=37
intra_q[23]=38
intra_q[24]=22
intra_q[25]=26
intra_q[26]=27
intra_q[27]=31
intra_q[28]=36
intra_q[29]=37
intra_q[30]=38
intra_q[31]=40
intra_q[32]=26
intra_q[33]=27
intra_q[34]=29
intra_q[35]=36
intra_q[36]=39
intra_q[37]=38
intra_q[38]=40
intra_q[39]=48
intra_q[40]=27
intra_q[41]=29
intra_q[42]=34
intra_q[43]=37
intra_q[44]=38
intra_q[45]=40
intra_q[46]=48
intra_q[47]=58
intra_q[48]=29
intra_q[49]=34
intra_q[50]=37
intra_q[51]=38
intra_q[52]=40
intra_q[53]=48
intra_q[54]=58
intra_q[55]=69
intra_q[56]=34
intra_q[57]=37
intra_q[58]=38
intra_q[59]=40
intra_q[60]=48
intra_q[61]=58
intra_q[62]=69
intra_q[63]=79
user_niquant=1
inter_q[0]=16
inter_q[1]=18
inter_q[2]=20
inter_q[3]=22
inter_q[4]=24
inter_q[5]=26
inter_q[6]=28
inter_q[7]=30
inter_q[8]=18
inter_q[9]=20
inter_q[10]=22
inter_q[11]=24
inter_q[12]=26
inter_q[13]=28
inter_q[14]=30
inter_q[15]=32
inter_q[16]=20
inter_q[17]=22
inter_q[18]=24
inter_q[19]=26
inter_q[20]=28
inter_q[21]=30
inter_q[22]=32
inter_q[23]=34
inter_q[24]=22
inter_q[25]=24
inter_q[26]=26
inter_q[27]=30
inter_q[28]=32
inter_q[29]=32
inter_q[30]=34
inter_q[31]=36
inter_q[32]=24
inter_q[33]=26
inter_q[34]=28
inter_q[35]=32
inter_q[36]=34
inter_q[37]=34
inter_q[38]=36
inter_q[39]=38
inter_q[40]=26
inter_q[41]=28
inter_q[42]=30
inter_q[43]=32
inter_q[44]=34
inter_q[45]=36
inter_q[46]=38
inter_q[47]=40
inter_q[48]=28
inter_q[49]=30
inter_q[50]=32
inter_q[51]=34
inter_q[52]=36
inter_q[53]=38
inter_q[54]=42
inter_q[55]=42
inter_q[56]=30
inter_q[57]=32
inter_q[58]=34
inter_q[59]=36
inter_q[60]=38
inter_q[61]=40
inter_q[62]=42
inter_q[63]=44

3 - Open MCE. In MCE Main screen. Select video source: Your avs script, including filters and resize. For DVD you can try this one (the target is 3 movies in one DVD+-R starting from DVD):

Mpeg2source("D:\damian.d2v")
Blockbuster(method="noise",detail_min=1,detail_max =8,variance=0.3,seed=5823)
ATC(1,2,4,0.5,false)
TemporalSoften(2,7,7,3,2)
Blockbuster(method="noise",detail_min=1,detail_max =10,variance=0.5,seed=5823)
LanczosResize(704, 430, 6, 0, 708, 576)
AddBorders(8, 73, 8, 73)
letterbox(0,0,16,16)

Of course you need to change the source file, and the resize parameters. Other parameters will be in accord with your source, this one is for DVD source.
You can try any other better for avi to KDVD if it is your case. (Dialhot V4 is a good one) But here, there are many people to ask for this.
In Video Input Info you must see 720x576. If it not you resize in avisynth script is not good.

4 - Audio Source: For me is better encode audio with other applications. Live it blank.

5 - Output file: Select it.

6 - Output format: Select KVCD DVD 720x576 VBR, elementary video, PAL or NTSC. Click in details.

http://www.digitalfaq.com/archives/error.gif

7 - Video: Put the mark in keep proportions, click in crop & scale and check that in crop, all values are 0, and in scale Height = 576 Center = 288 Width = 720 Center = 360. Press ok. Press advanced.

http://www.digitalfaq.com/archives/error.gif

http://www.digitalfaq.com/archives/error.gif

8 - GOP Structure: I frames = 15, P frames = 3, Auto GOP = VCSD, Closed GOP interval = 0, Bitrate Type = Variable bitrate, Maximun = 6000, Average = 1800, Minimun = 450. Click in advanced video settings.

You can see in this image that with this settings, Constant quantisation box is grayed.

http://www.digitalfaq.com/archives/error.gif

9 - Select Noise Sensitivity = 1, Motion search mode = 12, Motion search pixel movemente, mark enable, Horizontal = 2047, Vertical = 2047, Mark User quant matrices, then if you press edit, you can verify the KVCD notch matrix. In additional settings open sequence header, select VBV Buffer size and put 224 for value.

http://www.digitalfaq.com/archives/error.gif

http://www.digitalfaq.com/archives/error.gif

10 - Press OK twice, and press convert and it is all.

11 - Process audio, multiplex, authoring and burn it.

Not to hard, isn'it?


This is intended in first place for fit three movies in one DVD+-R, starting from DVD. If you start from avi, maybe would be better encode in CQ mode. For this you need to change only the 8 point:

8 - GOP Structure: I frames = 15, P frames = 3, Auto GOP = VCSD, Closed GOP interval = 0, Bitrate Type = Variable bitrate, Maximun = 6000, Average = 0, Minimun = 0, CQ = 3.


With this settings Constant quantisation box is not grayed.

http://www.digitalfaq.com/archives/error.gif

No exact prediction method available, you can try avisynth sampler(lenght=100) and later use:
Code:

Predicted MPEG size = (( Total frames/MovieTimeInMinutes) / 100 ) * MPEG sample file size
If you select in GOP structure I frames = 24, the final mpg file size will be smaller, but the standard is 15 for PAL and 18

for NTSC. I think that you can select 24 in PAL and in NTSC too without problem. In any case test your standalone.

Dialhot 02-28-2004 04:11 PM

Great guide. I'm sure this will help some peoples. Thanks.

(I just wonder about the usage of 0 as minimum but I don't know this encoder).

Prodater64 02-28-2004 04:39 PM

Quote:

Originally Posted by Dialhot
Great guide. I'm sure this will help some peoples. Thanks.

(I just wonder about the usage of 0 as minimum but I don't know this encoder).

Your welcome.

0 as average and minimum is the way of this encoder for switch on the CQ mode. Minimun bitrate won't be 0, but the one that the encoder judges should be. The problem is with bad quality DivX/XviD sources. With this ones, min bitrate drop down, less than 200. Many standalones don's support this min bitrates. Not problem with high quality DivX/XviD or DVD sources.

rs008f 02-28-2004 06:10 PM

Prodater64,

Is it a good sign that MAinconcept reports multiples of the below?

P:local_skipped = 2, base_min=188, enc_comp=18, T= 11475

Prodater64 02-28-2004 06:22 PM

Quote:

Originally Posted by rs008 in "Which sequence to use? Progressive or Interlaced?" - (very bad really!)
Prodater64,

Is it a good sign that MAinconcept reports multiples of the below?

P:local_skipped = 2, base_min=188, enc_comp=18, T= 11475

Not really. Is a very bad sign. This means that you are encoding from a source that not has the requirements for the average bitrate that you want. Then frames are skipped or in more known terms dropped. You can fix that, droping down average bitrate until no more reports are showed.
Other way is encode in CQ mode 3, if your work is for DivX or XviD to DVD will be better and you won't have problems with the ending file sizes.

rs008f 02-28-2004 06:26 PM

Yes I'm converting Divx/Xvid to MPEG-2 and yes I'm using CQ 3 instead of avg bitrate. I guess this mean Mainconcept is a no no then since I would like to fit 5-6 hours on 1 DVD. No matter what CQ I use, there are drop frames..............

Prodater64 02-28-2004 06:53 PM

Do You select only elementary video?

Look any of you CQ encoded samples with Bitrate Viewer. Write down the average bitrate.
Take this bitrate and sum 20%. Encode with VBR with this value for average bitrate. Make several samples with higher average bitrates, step by 100, stop when you see the first error. Use de previous bitrate without error for your encode.

rs008f 02-28-2004 07:01 PM

I select elementary video+audio but have tried elementary video only. I set GOP as 18 since I'm doing NTSC KDVD. Field encoding is "Progressive frame", Frame rate is 23.976 (same as source)

incredible 03-01-2004 02:49 PM

MCE gots one explizit Problem!:

The Q range is limited from 1 to 31 and this is not enough to obtain an accurate prediction to get a well wanted final filesize afterwards.

But if you get a bit "over" you can do a shrinking afterwards using the very comfortable Rejig you encode in mpeg2.

kwag 03-01-2004 04:43 PM

Quote:

Originally Posted by Dialhot
(I just wonder about the usage of 0 as minimum but I don't know this encoder).

It's the only way to create a CQ encode. If you set MIN other than 0, then you encode at average. Just one of the sucking "features" of MCE, which render it useless to many, because most DVD players playing in VCD mode will choke on "0" bitrate on dark scenes. :roll:

-kwag

DTW 04-11-2004 12:02 AM

I've tried going through this, but I am stuck. Under Main Concept, if I choose KVD DVD 720x576VBR as the mpeg type, then Stream Type is set as Elementary Video, Video mode is PAL. If I want to change either one of these (ie, Video Mode NTSC and Stream type to be Elementary Video and Audio), it won't let me! Because if I do, then the Stream Type autommatically changes as well (to VCD or DVD - MainConcept's default mef files).

How can I change these settings and keep the stream type to be KVCD DVD's one at the same time?

:?

Prodater64 04-11-2004 06:53 AM

Quote:

Originally Posted by DTW
I've tried going through this, but I am stuck. Under Main Concept, if I choose KVD DVD 720x576VBR as the mpeg type, then Stream Type is set as Elementary Video, Video mode is PAL. If I want to change either one of these (ie, Video Mode NTSC and Stream type to be Elementary Video and Audio), it won't let me! Because if I do, then the Stream Type autommatically changes as well (to VCD or DVD - MainConcept's default mef files).

How can I change these settings and keep the stream type to be KVCD DVD's one at the same time?

:?

Don't worry about that, when you change the stream type, it changes the template name by generic name, but don't change your settings. Chick it, you will see that KVCD notch matrix not change, nor any other settings.

DTW 04-11-2004 09:26 PM

I am trying it now, hopefully it shall work.

The problem I have is that MCE will not allow me to follow your guide exactly. The reason is because I want to use Elementary video and audio, and also NTSC, not PAL.

Therefore, when I try to adjust video size to 720 x 576, it will not let me. It only allows me to set it to 720 x 480. Hence Crop and Scale settings are also 480 (height), and 720 (width).

In the search range, the maximum value was 31, not 43.

Also, in the user quant matrices, all my values are different to the ones shown in your guide.

Regarding what you said about the stream type not changing the settings that is true, but if I cange the video mode from PAL to NTSC, it does change all my settings. I wonder if the KDVD template is being used at all by MCE now.

I am converting an avi file, so CQ method is used (Max Rate 6000, Min and Average rate = 0, CQ = 3)

Prodater64 04-11-2004 10:09 PM

Quote:

Originally Posted by DTW
The problem I have is that MCE will not allow me to follow your guide exactly. The reason is because I want to use Elementary video and audio, and also NTSC, not PAL.

Therefore, when I try to adjust video size to 720 x 576, it will not let me. It only allows me to set it to 720 x 480. Hence Crop and Scale settings are also 480 (height), and 720 (width).

In the search range, the maximum value was 31, not 43.

Also, in the user quant matrices, all my values are different to the ones shown in your guide.

Regarding what you said about the stream type not changing the settings that is true, but if I cange the video mode from PAL to NTSC, it does change all my settings. I wonder if the KDVD template is being used at all by MCE now.

I am converting an avi file, so CQ method is used (Max Rate 6000, Min and Average rate = 0, CQ = 3)

1 - Follow the guide step by step as it is writed. Don't try to set any other values don't writed, like in pictures.
2 - Select your Video/Audio sources.
3 - Select mpeg type as i said in guide.
4 - Select video mode to ntsc. (don't worry about mpeg type change)
5 - Select stream type to elementary video and audio or any other you want.
5 - Select details and change resolution if necesary. (NTSC=720X480, but you can change it if you want) Mark in keep proportions. (Follow guide)
6 - Select audio frequency and mode.
7 - Select advanced. Video settings. (Follow guide. 6000 0 0 CQ3 is ok.)
8 - Select advanced video settings. (Follow guide.)
9 - select audio settings, set audio type as you want and audiobitrate too.
10 - Press ok twice.
11 - Select (menu) options - save settings as profile. (with this you can load same settings (your settings) every time.
12 - Search in C:\Documents and Settings\[user name]\Application Data\MCMPEGEnc your saved file, open it with notepad, and replace following lines (they are the last ones into file):

Code:

user_iquant=1
intra_q[0]=8
intra_q[1]=9
intra_q[2]=12
intra_q[3]=22
intra_q[4]=26
intra_q[5]=27
intra_q[6]=29
intra_q[7]=34
intra_q[8]=9
intra_q[9]=10
intra_q[10]=14
intra_q[11]=26
intra_q[12]=27
intra_q[13]=29
intra_q[14]=34
intra_q[15]=37
intra_q[16]=12
intra_q[17]=14
intra_q[18]=18
intra_q[19]=27
intra_q[20]=29
intra_q[21]=34
intra_q[22]=37
intra_q[23]=38
intra_q[24]=22
intra_q[25]=26
intra_q[26]=27
intra_q[27]=31
intra_q[28]=36
intra_q[29]=37
intra_q[30]=38
intra_q[31]=40
intra_q[32]=26
intra_q[33]=27
intra_q[34]=29
intra_q[35]=36
intra_q[36]=39
intra_q[37]=38
intra_q[38]=40
intra_q[39]=48
intra_q[40]=27
intra_q[41]=29
intra_q[42]=34
intra_q[43]=37
intra_q[44]=38
intra_q[45]=40
intra_q[46]=48
intra_q[47]=58
intra_q[48]=29
intra_q[49]=34
intra_q[50]=37
intra_q[51]=38
intra_q[52]=40
intra_q[53]=48
intra_q[54]=58
intra_q[55]=69
intra_q[56]=34
intra_q[57]=37
intra_q[58]=38
intra_q[59]=40
intra_q[60]=48
intra_q[61]=58
intra_q[62]=69
intra_q[63]=79
user_niquant=1
inter_q[0]=16
inter_q[1]=18
inter_q[2]=20
inter_q[3]=22
inter_q[4]=24
inter_q[5]=26
inter_q[6]=28
inter_q[7]=30
inter_q[8]=18
inter_q[9]=20
inter_q[10]=22
inter_q[11]=24
inter_q[12]=26
inter_q[13]=28
inter_q[14]=30
inter_q[15]=32
inter_q[16]=20
inter_q[17]=22
inter_q[18]=24
inter_q[19]=26
inter_q[20]=28
inter_q[21]=30
inter_q[22]=32
inter_q[23]=34
inter_q[24]=22
inter_q[25]=24
inter_q[26]=26
inter_q[27]=30
inter_q[28]=32
inter_q[29]=32
inter_q[30]=34
inter_q[31]=36
inter_q[32]=24
inter_q[33]=26
inter_q[34]=28
inter_q[35]=32
inter_q[36]=34
inter_q[37]=34
inter_q[38]=36
inter_q[39]=38
inter_q[40]=26
inter_q[41]=28
inter_q[42]=30
inter_q[43]=32
inter_q[44]=34
inter_q[45]=36
inter_q[46]=38
inter_q[47]=40
inter_q[48]=28
inter_q[49]=30
inter_q[50]=32
inter_q[51]=34
inter_q[52]=36
inter_q[53]=38
inter_q[54]=42
inter_q[55]=42
inter_q[56]=30
inter_q[57]=32
inter_q[58]=34
inter_q[59]=36
inter_q[60]=38
inter_q[61]=40
inter_q[62]=42
inter_q[63]=44

Now when you choice your template in mpeg type, it will have the kvcd notch matrix.
13 - I recommend multiplexing with other software, but it can be maked with MCE too.

Zyphon 04-12-2004 03:14 AM

Thank you so much for this guide Prodater64.

Ive been wanting to use MCE for a long time but never knew how to get to grips with it, maybe now with this excellent guide I can have a go at using it. :)

PS: @Kwag is there any way that this board can support a Printer Friendly feature as sometimes I like to print the guides so I can read them and study them on paper without hurting my eyes looking at a monitor for long periods :?:

kwag 04-12-2004 10:13 AM

Quote:

Originally Posted by Zyphon
PS: @Kwag is there any way that this board can support a Printer Friendly feature as sometimes I like to print the guides so I can read them and study them on paper without hurting my eyes looking at a monitor for long periods :?:

No, sorry, it doesn't :(

-kwag

Zyphon 04-12-2004 11:26 AM

Quote:

Originally Posted by kwag
No, sorry, it doesn't :(

-kwag

Np Kwag I can just copy and paste in MS Word and print it that way, thanks anyway. :)

DTW 07-31-2004 04:25 AM

I am following the procedures now, and when I start to convert, the message I get is:

MMX:y SSE:y SSE2:y 28:1 3DNowExt:y 3DNow:n CMOV:y
Initializing video encoder
Number of CPU: 2, available: 2
SIMD: SSE2
Video encoder initialized
Multiplexing information
Video stream 0 data rate : 750000 bytes/sec (6000000 bits/sec)
Audio stream 0 data rate : 28000 bytes/sec (224000 bits/sec)
Overhead data rate : 32950 bytes/sec (263600 bits/sec)
Total data rate : 810950 bytes/sec (6487600 bits/sec)
M088:Video PTS (4785.00ms) underflow at pack 1043 by 19.00ms
M088:Video PTS (4818.00ms) underflow at pack 1060 by 29.00ms
M089:Video DTS (4852.00ms) underflow at pack 1077 by 38.00ms
M088:Video PTS (4885.00ms) underflow at pack 1105 by 76.00ms
M088:Video PTS (4919.00ms) underflow at pack 1124 by 90.00ms
M089:Video DTS (4952.00ms) underflow at pack 1144 by 108.00ms
M088:Video PTS (4985.00ms) underflow at pack 1171 by 142.00ms
M088:Video PTS (5019.00ms) underflow at pack 1189 by 154.00ms
M089:Video DTS (5052.00ms) underflow at pack 1207 by 167.00ms
M088:Video PTS (5085.00ms) underflow at pack 1235 by 204.00ms
M088:Video PTS (5119.00ms) underflow at pack 1252 by 213.00ms

I am not sure what the problem is? Can I get some help? :)

I followed the guide exactly, I chose program (video+audio), NTSC, changed video size to 720x480, done everything else as mentioned, and then I saved profile, and edited using Notepad to replace the quant matrices at the end of the script. But I get the message above. So I am a little confused now...

Prodater64 07-31-2004 05:37 AM

Quote:

Originally Posted by DTW
I am following the procedures now, and when I start to convert, the message I get is:

MMX:y SSE:y SSE2:y 28:1 3DNowExt:y 3DNow:n CMOV:y
Initializing video encoder
Number of CPU: 2, available: 2
SIMD: SSE2
Video encoder initialized
Multiplexing information
Video stream 0 data rate : 750000 bytes/sec (6000000 bits/sec)
Audio stream 0 data rate : 28000 bytes/sec (224000 bits/sec)
Overhead data rate : 32950 bytes/sec (263600 bits/sec)
Total data rate : 810950 bytes/sec (6487600 bits/sec)
M088:Video PTS (4785.00ms) underflow at pack 1043 by 19.00ms


I followed the guide exactly, I chose program (video+audio), NTSC, changed video size to 720x480, done everything else as mentioned, and then I saved profile, and edited using Notepad to replace the quant matrices at the end of the script. But I get the message above. So I am a little confused now...

Click details, advanced, multiplexer settings, in mux rate write 10000 and rise this value by 1000 if you keep getting this error, but I think it is enough.
Also check audio settings to asure yourself that all is right.

DTW 08-01-2004 03:33 AM

Thanks! I tried that. Now, I just converted a 40 min avi using this technique. Since it is avi, I used max rate 6000, average and min rate 0, and CQ =3. Now, the resulting mpg was 1.4 Gb! I thought the file should be much smaller. Does this sound normal??

Prodater64 08-01-2004 03:53 AM

Quote:

Originally Posted by DTW
Thanks! I tried that. Now, I just converted a 40 min avi using this technique. Since it is avi, I used max rate 6000, average and min rate 0, and CQ =3. Now, the resulting mpg was 1.4 Gb! I thought the file should be much smaller. Does this sound normal??

CQ3 is to high. You will obtain good quality and more normal size with CQ5, CQ6 or CQ7.
Also using Dialhot V4 filter is useful when you want to save space.

DTW 08-01-2004 07:50 AM

Thanks Prodater, I have tried it with CQ=7 and my 42 minute avi clip is now 1Gb. I can fit 4 episodes onto one DVD.

Using your technique on this thread, and without any other filters as you mentioned in your last message, how many minutes of video am I supposed to be able to fit onto one DVD? I will be able to fit ~ 170 minutes. (4 x 42 minute episodes). Is that a good result, do you think?

Thank you.

Prodater64 08-01-2004 08:28 AM

Quote:

Originally Posted by DTW
Thanks Prodater, I have tried it with CQ=7 and my 42 minute avi clip is now 1Gb. I can fit 4 episodes onto one DVD.

Using your technique on this thread, and without any other filters as you mentioned in your last message, how many minutes of video am I supposed to be able to fit onto one DVD? I will be able to fit ~ 170 minutes. (4 x 42 minute episodes). Is that a good result, do you think?

Thank you.

That is a very bad result.

Use this template as I teached in first post:

Code:

[MAIN]
StreamType=1
MpegType=2
VideoMode=1
AudioMode=2
Width=528
Height=288
DestStartX=0
DestStartY=0
DestWidth=528
DestHeight=288
SrcStartX=0
SrcStartY=0
SrcWidth=528
SrcHeight=288
FlipVertical=0
SampleRate=48000
LineFiltering=0
Deinterlacing=0
Passes=1
ID=mep-profile
Name=MCE like MNC
[WaveAudio]
Channels=2048
Bits=758
[basic]
settingsVersion=2
online=1
perfLevel=23
motionSearchType=23
mpegType=2
deinterlacing_mode=0
relaxed_standards=1
[video]
videoPulldownFlag=0
rateControlMode=1
aspectRatio=2
frameRateCode=3
iFramesInGOP=15
ipFrameDistance=3
bitrateFlag=0
mquantValue=7
constBitrate=6000000
maxBitrate=9000000
avgBitrate=0
minBitrate=0
timeCode0=0
dropFrameTC=0
constrParms=0
closedGOPs=1
[audio]
audioLayer=2
audioMode=0
deEmphasis=0
audioBitrate=11
privateBit=0
copyrightBit=0
originalBit=0
errorProtection=1
psychModel=2
[multiplex]
programStreamType=2
vbrMultiplex=1
padVCDAudio=0
writeProgramEndCode=1
muxSVCDScanOffsets=0
alignSequenceHeaders=0
usePrivateStream2=0
useComputedBitrate=0
frameTimestamps=0
muxPulldownFlag=3
userMuxRate=0
sectorSize=2048
packetsPerPack=1
videoBufferSize=0
audioBufferSize=0
audio1BufferSize=0
sectorDelay=0
videoDelay=180
audioDelay=180
audio1Delay=180
alwaysWriteSysHeader=0
maxFileSize=0
muxStartTime=0
muxStopTime=0
resetClocks=1
setBrokenLink=1
writeEndCodes=1
[advVideo]
profile=4
level=8
chromaFormat=1
colorPrimaries=5
transferCharacteristics=5
matrixCoefficients=5
videoFormat=1
intraDCPrec=1
vbvBufferSize=0
forceVBVDelay=1
displayHorizontalSize=528
displayVerticalSize=288
progressiveSequence=0
progressiveFrame=1
fieldPictures=0
topFieldFirst=0
repeatFirstField=0
intraVLCFormatI=1
intraVLCFormatP=1
intraVLCFormatB=1
framePredDCTI=1
framePredDCTP=1
framePredDCTB=1
quantizationScaleI=0
quantizationScaleP=0
quantizationScaleB=0
alternateScanI=0
alternateScanP=0
alternateScanB=0
writeSequenceDisplayExt=0
writeSequenceEveryGOP=1
writeSequenceEndCode=1
embedSVCDUserBlocks=0
writePictureDisplayExt=0
frameCentreHorizontalOffset=0
frameCentreVerticalOffset=0
qtNoiseSensitivity=3
featureFlags=544
reactionParameter=0
initialAverageActivity=0
initialIComplexity=0
initialPComplexity=0
initialBComplexity=0
initialIFullness=0
initialPFullness=0
initialBFullness=0
minFramePercentage=25
padFramePercentage=0
autoVectorLengths=0
horzPelMovement=0
vertPelMovement=0
forwHorzFCodeP=5
forwVertFCodeP=4
forwHorzSearchP=78
forwVertSearchP=42
forwHorzFCodeB1=3
forwVertFCodeB1=2
forwHorzSearchB1=26
forwVertSearchB1=14
backHorzFCodeB1=4
backVertFCodeB1=3
backHorzSearchB1=52
backVertSearchB1=28
forwHorzFCodeB2=4
forwVertFCodeB2=3
forwHorzSearchB2=52
forwVertSearchB2=28
backHorzFCodeB2=3
backVertFCodeB2=2
backHorzSearchB2=26
backVertSearchB2=14
forwHorzFCodeB3=0
forwVertFCodeB3=0
forwHorzSearchB3=0
forwVertSearchB3=0
backHorzFCodeB3=0
backVertFCodeB3=0
backHorzSearchB3=0
backVertSearchB3=0
forwHorzFCodeB4=0
forwVertFCodeB4=0
forwHorzSearchB4=0
forwVertSearchB4=0
backHorzFCodeB4=0
backVertFCodeB4=0
backHorzSearchB4=0
backVertSearchB4=0
forwHorzFCodeB5=0
forwVertFCodeB5=0
forwHorzSearchB5=0
forwVertSearchB5=0
backHorzFCodeB5=0
backVertFCodeB5=0
backHorzSearchB5=0
backVertSearchB5=0
forwHorzFCodeB6=0
forwVertFCodeB6=0
forwHorzSearchB6=0
forwVertSearchB6=0
backHorzFCodeB6=0
backVertFCodeB6=0
backHorzSearchB6=0
backVertSearchB6=0
forwHorzFCodeB7=0
forwVertFCodeB7=0
forwHorzSearchB7=0
forwVertSearchB7=0
backHorzFCodeB7=0
backVertFCodeB7=0
backHorzSearchB7=0
backVertSearchB7=0
ignore_frame_interval=0
user_iquant=1
intra_q[0]=8
intra_q[1]=9
intra_q[2]=12
intra_q[3]=22
intra_q[4]=26
intra_q[5]=27
intra_q[6]=29
intra_q[7]=34
intra_q[8]=9
intra_q[9]=10
intra_q[10]=14
intra_q[11]=26
intra_q[12]=27
intra_q[13]=29
intra_q[14]=34
intra_q[15]=37
intra_q[16]=12
intra_q[17]=14
intra_q[18]=18
intra_q[19]=27
intra_q[20]=29
intra_q[21]=34
intra_q[22]=37
intra_q[23]=38
intra_q[24]=22
intra_q[25]=26
intra_q[26]=27
intra_q[27]=31
intra_q[28]=36
intra_q[29]=37
intra_q[30]=38
intra_q[31]=40
intra_q[32]=26
intra_q[33]=27
intra_q[34]=29
intra_q[35]=36
intra_q[36]=39
intra_q[37]=38
intra_q[38]=40
intra_q[39]=48
intra_q[40]=27
intra_q[41]=29
intra_q[42]=34
intra_q[43]=37
intra_q[44]=38
intra_q[45]=40
intra_q[46]=48
intra_q[47]=58
intra_q[48]=29
intra_q[49]=34
intra_q[50]=37
intra_q[51]=38
intra_q[52]=40
intra_q[53]=48
intra_q[54]=58
intra_q[55]=69
intra_q[56]=34
intra_q[57]=37
intra_q[58]=38
intra_q[59]=40
intra_q[60]=48
intra_q[61]=58
intra_q[62]=69
intra_q[63]=79
user_niquant=1
inter_q[0]=16
inter_q[1]=18
inter_q[2]=20
inter_q[3]=22
inter_q[4]=24
inter_q[5]=26
inter_q[6]=28
inter_q[7]=30
inter_q[8]=18
inter_q[9]=20
inter_q[10]=22
inter_q[11]=24
inter_q[12]=26
inter_q[13]=28
inter_q[14]=30
inter_q[15]=32
inter_q[16]=20
inter_q[17]=22
inter_q[18]=24
inter_q[19]=26
inter_q[20]=28
inter_q[21]=30
inter_q[22]=32
inter_q[23]=34
inter_q[24]=22
inter_q[25]=24
inter_q[26]=26
inter_q[27]=30
inter_q[28]=32
inter_q[29]=32
inter_q[30]=34
inter_q[31]=36
inter_q[32]=24
inter_q[33]=26
inter_q[34]=28
inter_q[35]=32
inter_q[36]=34
inter_q[37]=34
inter_q[38]=36
inter_q[39]=38
inter_q[40]=26
inter_q[41]=28
inter_q[42]=30
inter_q[43]=32
inter_q[44]=34
inter_q[45]=36
inter_q[46]=38
inter_q[47]=40
inter_q[48]=28
inter_q[49]=30
inter_q[50]=32
inter_q[51]=34
inter_q[52]=36
inter_q[53]=38
inter_q[54]=42
inter_q[55]=42
inter_q[56]=30
inter_q[57]=32
inter_q[58]=34
inter_q[59]=36
inter_q[60]=38
inter_q[61]=40
inter_q[62]=42
inter_q[63]=44

The idea is to codify in MPEG-2 but with some settings changed (like Mencoder encode), but standard compliance yet.
1. - Choice your target res and do correct resize settings.
2. - To codify the audio one to 48000 Hertz for DVD and 44100 Hertz for SKVCD.
3. - In the Multiplexer eyelash settings, down to the left, the Mux rate to 32766. That will avoid the seemed errors of buffer and during the codified one without another lateral effect.
4. - Change another settings related to your target (KDVD/SKVCD), BUT NOT UNUSUAL SETTINGS.

Do another test and tell me your results.

DTW 08-02-2004 05:05 AM

Select your Video/Audio sources - OK
Select mpeg type as i said in guide - DVD
Select video mode to ntsc - OK
Select stream type to program video and audio.
Select details and change resolution if necesary. NTSC=720X480 used.
Select audio frequency and mode - mpeg layer 2, 224 Kbps bitrate
Select advanced. Video settings. Follow guide. 6000 0 0 CQ7 as you suggested
Select advanced video settings
Select (menu) options - save settings as profile. (with this you can load same settings (your settings) every time.
Search in C:\Documents and Settings\[user name]\Application Data\MCMPEGEnc your saved file, open it with notepad, and replace following lines (they are the last ones into file): DONE.

I then used Mux rate = 10000. (Haven't tried 32766... will that make all the difference???)

That is all I done. File size: 0.98 Gb.. What else should I try? Start from scratch again?

Prodater64 08-02-2004 05:49 AM

Quote:

Originally Posted by DTW
I then used Mux rate = 10000. (Haven't tried 32766... will that make all the difference???)

No.

Another method. It will give you a mpeg1 but you can burn it into a DVD with TMPG DVD Author.

Code:

[MAIN]
StreamType=4
MpegType=0
VideoMode=1
AudioMode=2
Width=720
Height=576
DestStartX=16
DestStartY=99
DestWidth=688
DestHeight=378
SrcStartX=0
SrcStartY=0
SrcWidth=608
SrcHeight=320
FlipVertical=0
SampleRate=48000
LineFiltering=0
Deinterlacing=0
Passes=1
ID=mep-profile
Name=KVCD2DVD
[WaveAudio]
Channels=56320
Bits=28416
[basic]
settingsVersion=2
online=0
perfLevel=16
motionSearchType=23
mpegType=0
deinterlacing_mode=0
relaxed_standards=1
[video]
videoPulldownFlag=0
rateControlMode=1
aspectRatio=8
frameRateCode=3
iFramesInGOP=12
ipFrameDistance=3
bitrateFlag=0
mquantValue=5
constBitrate=1700000
maxBitrate=1856000
avgBitrate=0
minBitrate=0
timeCode0=0
dropFrameTC=0
constrParms=0
closedGOPs=0
[audio]
audioLayer=2
audioMode=1
deEmphasis=0
audioBitrate=8
privateBit=0
copyrightBit=0
originalBit=0
errorProtection=0
psychModel=2
[multiplex]
programStreamType=0
vbrMultiplex=1
padVCDAudio=0
writeProgramEndCode=1
muxSVCDScanOffsets=0
alignSequenceHeaders=0
usePrivateStream2=0
useComputedBitrate=0
frameTimestamps=0
muxPulldownFlag=0
userMuxRate=81915
sectorSize=2048
packetsPerPack=1
videoBufferSize=0
audioBufferSize=0
audio1BufferSize=0
sectorDelay=0
videoDelay=180
audioDelay=180
audio1Delay=180
alwaysWriteSysHeader=0
maxFileSize=0
muxStartTime=0
muxStopTime=0
resetClocks=1
setBrokenLink=1
writeEndCodes=1
[advVideo]
profile=4
level=8
chromaFormat=1
colorPrimaries=5
transferCharacteristics=5
matrixCoefficients=5
videoFormat=1
intraDCPrec=0
vbvBufferSize=0
forceVBVDelay=1
displayHorizontalSize=720
displayVerticalSize=576
progressiveSequence=1
progressiveFrame=1
fieldPictures=0
topFieldFirst=0
repeatFirstField=0
intraVLCFormatI=0
intraVLCFormatP=0
intraVLCFormatB=0
framePredDCTI=1
framePredDCTP=1
framePredDCTB=1
quantizationScaleI=0
quantizationScaleP=0
quantizationScaleB=0
alternateScanI=0
alternateScanP=0
alternateScanB=0
writeSequenceDisplayExt=0
writeSequenceEveryGOP=1
writeSequenceEndCode=1
embedSVCDUserBlocks=0
writePictureDisplayExt=0
frameCentreHorizontalOffset=0
frameCentreVerticalOffset=0
qtNoiseSensitivity=8
featureFlags=32
reactionParameter=0
initialAverageActivity=0
initialIComplexity=0
initialPComplexity=0
initialBComplexity=0
initialIFullness=0
initialPFullness=0
initialBFullness=0
minFramePercentage=25
padFramePercentage=0
autoVectorLengths=0
horzPelMovement=0
vertPelMovement=0
forwHorzFCodeP=4
forwVertFCodeP=4
forwHorzSearchP=63
forwVertSearchP=60
forwHorzFCodeB1=3
forwVertFCodeB1=3
forwHorzSearchB1=25
forwVertSearchB1=20
backHorzFCodeB1=4
backVertFCodeB1=4
backHorzSearchB1=50
backVertSearchB1=40
forwHorzFCodeB2=4
forwVertFCodeB2=4
forwHorzSearchB2=50
forwVertSearchB2=40
backHorzFCodeB2=3
backVertFCodeB2=3
backHorzSearchB2=25
backVertSearchB2=20
forwHorzFCodeB3=0
forwVertFCodeB3=0
forwHorzSearchB3=0
forwVertSearchB3=0
backHorzFCodeB3=0
backVertFCodeB3=0
backHorzSearchB3=0
backVertSearchB3=0
forwHorzFCodeB4=0
forwVertFCodeB4=0
forwHorzSearchB4=0
forwVertSearchB4=0
backHorzFCodeB4=0
backVertFCodeB4=0
backHorzSearchB4=0
backVertSearchB4=0
forwHorzFCodeB5=0
forwVertFCodeB5=0
forwHorzSearchB5=0
forwVertSearchB5=0
backHorzFCodeB5=0
backVertFCodeB5=0
backHorzSearchB5=0
backVertSearchB5=0
forwHorzFCodeB6=0
forwVertFCodeB6=0
forwHorzSearchB6=0
forwVertSearchB6=0
backHorzFCodeB6=0
backVertFCodeB6=0
backHorzSearchB6=0
backVertSearchB6=0
forwHorzFCodeB7=0
forwVertFCodeB7=0
forwHorzSearchB7=0
forwVertSearchB7=0
backHorzFCodeB7=0
backVertFCodeB7=0
backHorzSearchB7=0
backVertSearchB7=0
ignore_frame_interval=0
user_iquant=1
intra_q[0]=8
intra_q[1]=9
intra_q[2]=12
intra_q[3]=22
intra_q[4]=26
intra_q[5]=27
intra_q[6]=29
intra_q[7]=34
intra_q[8]=9
intra_q[9]=10
intra_q[10]=14
intra_q[11]=26
intra_q[12]=27
intra_q[13]=29
intra_q[14]=34
intra_q[15]=37
intra_q[16]=12
intra_q[17]=14
intra_q[18]=18
intra_q[19]=27
intra_q[20]=29
intra_q[21]=34
intra_q[22]=37
intra_q[23]=38
intra_q[24]=22
intra_q[25]=26
intra_q[26]=27
intra_q[27]=31
intra_q[28]=36
intra_q[29]=37
intra_q[30]=38
intra_q[31]=40
intra_q[32]=26
intra_q[33]=27
intra_q[34]=29
intra_q[35]=36
intra_q[36]=39
intra_q[37]=38
intra_q[38]=40
intra_q[39]=48
intra_q[40]=27
intra_q[41]=29
intra_q[42]=34
intra_q[43]=37
intra_q[44]=38
intra_q[45]=40
intra_q[46]=48
intra_q[47]=58
intra_q[48]=29
intra_q[49]=34
intra_q[50]=37
intra_q[51]=38
intra_q[52]=40
intra_q[53]=48
intra_q[54]=58
intra_q[55]=69
intra_q[56]=34
intra_q[57]=37
intra_q[58]=38
intra_q[59]=40
intra_q[60]=48
intra_q[61]=58
intra_q[62]=69
intra_q[63]=79
user_niquant=1
inter_q[0]=16
inter_q[1]=18
inter_q[2]=20
inter_q[3]=22
inter_q[4]=24
inter_q[5]=26
inter_q[6]=28
inter_q[7]=30
inter_q[8]=18
inter_q[9]=20
inter_q[10]=22
inter_q[11]=24
inter_q[12]=26
inter_q[13]=28
inter_q[14]=30
inter_q[15]=32
inter_q[16]=20
inter_q[17]=22
inter_q[18]=24
inter_q[19]=26
inter_q[20]=28
inter_q[21]=30
inter_q[22]=32
inter_q[23]=34
inter_q[24]=22
inter_q[25]=24
inter_q[26]=26
inter_q[27]=30
inter_q[28]=32
inter_q[29]=32
inter_q[30]=34
inter_q[31]=36
inter_q[32]=24
inter_q[33]=26
inter_q[34]=28
inter_q[35]=32
inter_q[36]=34
inter_q[37]=34
inter_q[38]=36
inter_q[39]=38
inter_q[40]=26
inter_q[41]=28
inter_q[42]=30
inter_q[43]=32
inter_q[44]=34
inter_q[45]=36
inter_q[46]=38
inter_q[47]=40
inter_q[48]=28
inter_q[49]=30
inter_q[50]=32
inter_q[51]=34
inter_q[52]=36
inter_q[53]=38
inter_q[54]=42
inter_q[55]=42
inter_q[56]=30
inter_q[57]=32
inter_q[58]=34
inter_q[59]=36
inter_q[60]=38
inter_q[61]=40
inter_q[62]=42
inter_q[63]=44

Res 720*480 or 704*480.
Details->Search Method = 11 y Search Range = 21
I frames 12
Auto GOP = VCSD
Closed GOP interval = 1
CQ5
NR = 8
Motion Search = 11
Enable "Do half-pel search"
Disable "Motion search pixel movement"
Enable User quant matrices

Even in mpeg1 non standarar resolution, TMPGEnc DVD Author will burn it as DVD without any problem.
You can reduce final size by selecting a resolution of 352*240 (DVD standard), but quality will not be the same.
Go ahead and tell me your results.

DTW 08-02-2004 08:15 AM

Ok, so I made the template into mef file. I opened it, then selected 'NTSC' in Video Mode. MPEG type became 'mpeg 1'. Then, details:
Res 720*480. Audio Rate = 48khz.
Details->Search Method = 11 y Search Range = 21
I frames 12, P frames 3
Auto GOP = VCSD
Closed GOP interval = 1
Bitrate type Variable Bitrate, Max 1856kbps, Average and Min 0
CQ5
NR = 8
Motion Search = 11
Enable "Do half-pel search"
Disable "Motion search pixel movement"
VBV buffer size 0 (I did not change this, or any other settings now)
Enable User quant matrices. But when I view the quant matrices, the matrix has changed! So I saved as profile, then edited the .mef file with Notepad, and replaced the matrix values, ie from the following point onwards:

user_iquant=1
intra_q[0]=8
intra_q[1]=9
intra_q[2]=12
intra_q[3]=22
intra_q[4]=26 etc etc.


I converted my 42 minute avi file and got 720MB. My 1Gb file seems slightly better quality, :)


All times are GMT -5. The time now is 10:09 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.