digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Convert KVCD templates to MainConcept MPEG Encoder? (http://www.digitalfaq.com/archives/encode/2826-convert-kvcd-templates.html)

HansLuyten 03-01-2003 04:06 AM

Convert KVCD templates to MainConcept MPEG Encoder?
 
I really like the MainConcept MPEGEncoder much more than TMPGEnc,... is there a way we can convert a KVCD template to MPEGEcnoder tempate? It does support templates ...

kwag 03-01-2003 06:59 AM

Hi HansLuyten,

I believe you can use the KVCD parameters with MainConcept. Just take the KVCD GOP settings 1-24-2-1-24 and the KVCD quantization matrix, and put them in MainConcept.
Let me know how it works, because we already benchmarked that encoder against TMPEG, and we agree that it is faster than TMPEG, but quality wise it's still not there 8)

-kwag

HansLuyten 03-02-2003 04:31 AM

Hi Kwag,

I did take a look at it and I'm afraid it's a bit too confusing for me ... :)
In the quantize area it says intra and non-intra ... :( that's where they lost me :(

HansLuyten 03-02-2003 05:27 AM

OK did fix the quantization matrix :) did a little snooping in the templates ... and a lot of typing:

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

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

I also did set the bitrates;

constBitrate=1000000
maxBitrate=2400000
avgBitrate=1000000
minBitrate=300000

The GOP,I/B/P frames however remains a mistery to me ...
Without changing these and only quantize and bitrates, the encoders reports an error :(

by the way: for those that are interested, MainConcept MPEG Encoder stores it "user" templates in C:\Documents and Settings\<USER>\Application Data\MCMPEGEnc.

They are text based and have the .mef extension.

kwag 03-02-2003 09:54 AM

Hi Hans,

What error does the encoder report :?:

-kwag

HansLuyten 03-03-2003 03:06 AM

MPEG video encoding
MPEG PCM encoding, audio mode: 4
MPEG muxing
V130:Invalid video horizontal size (528) for DVD, should be 720, 704 or 352
P006:Invalid PCM audio sample rate (44100), should be 48000 or 96000
Error in converting:
The parameter is incorrect.

I based the KVCD template on an existing DVD template.
I tried it with an SVCD template and it seems to work, however, I have no idea if the encoding is as efficient as KSVCD. I'll try it and see what happens ;)

HansLuyten 03-03-2003 03:10 AM

In the templates of MPEG Encoder, I also found these lines shown below. Not sure what their purpose is (as my video knowledge is a bit limited on I,B and P Frames);

horzPelMovement=3
vertPelMovement=3
forwHorzFCodeP=4
forwVertFCodeP=4
forwHorzSearchP=33
forwVertSearchP=33
forwHorzFCodeB1=2
forwVertFCodeB1=2
forwHorzSearchB1=11
forwVertSearchB1=11
backHorzFCodeB1=3
backVertFCodeB1=3
backHorzSearchB1=22
backVertSearchB1=22
forwHorzFCodeB2=3
forwVertFCodeB2=3
forwHorzSearchB2=22
forwVertSearchB2=22
backHorzFCodeB2=2
backVertFCodeB2=2
backHorzSearchB2=11
backVertSearchB2=11
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

HansLuyten 03-03-2003 03:13 AM

The SVCD template does not really like the 528 width :(
Invalid width error (528 should be 480 for SVCD).

The DVD template does not like 528 either ...

So I'm trying 480x480 now ... (NTSC)

HansLuyten 03-03-2003 03:15 AM

Wow, it's running pretty speedy when transcoding AVI -> MPEG2 (modified SVCD template using KSVCD settings). almost 1.5 times realtime! (on a P4, 2.8Ghz) 1.4 times to be precise ...

HansLuyten 03-03-2003 04:30 AM

OK finished converting a movie, 1 hour and 48 minutes playback time, to "KSVCD", using MPEG Encoder;

MPEG audio encoding, audio mode: 2
MMX:y SSE:y SSE2:y 28:1 3DNowExt:n 3DNow:n CMOV:y
Multiplexing information
Video stream data rate : 300000 bytes/sec (2400000 bits/sec)
Audio stream 1 data rate : 28000 bytes/sec (224000 bits/sec)
Total data rate : 348600 bytes/sec (2788800 bits/sec)
Frame size avg = 32436 bits, min = 2064 bits, max = 435184 bits
Bitrate avg = 972116 bps, min = 470105 bps, max = 1854681 bps
Mquant avg = 12.82, min = 1, max = 112
Total size = 256147394 bytes
Skipped = 25991 frames, RC_requested = 0
I:mquant = 11.17, X=134.69, d=247.676, size = 24353
P:mquant = 10.90, X= 51.80, d=71.041, size = 4818
B:mquant = 11.20, X= 28.06, d=61.473, size = 2032
::mquant = 11.11, X= 40.58, d=74.476, size = 4046
Total time: 3958 seconds (01:05:58), time per frame: 0.020 seconds.
Avg slots/frame = 731.429; b/smp = 5.08; br = 224.000 kbps.

The result file is 977 Mb in size, woops, a bit too big.
Any suggestions?

black prince 03-03-2003 07:24 AM

@HansLuyten,

I'm curious about the picture quality even at 977MB. :) If it's
transcoding it could be a useful tool for converting DVD9 to
DVD5. 8) It appears from your test, it only allows standard
VCD, SVCD and maybe DVD resolutions. Since it's accepting
KVCD GOP and Q-Matrix, plus bitrate adjustments we might
have a competor for Tmpgenc. :?: Tmpgenc is great, but
slow.

-black prince

jamesp 03-03-2003 08:03 AM

Tmpeg may be slow, but generally the filters you use slow it up even more. If you use faeryDust etc the frames came in slower than Tmpeg processes them. Main Concept sould be no quicker in this circumstance.

Jim

Quote:

Originally Posted by black prince
@HansLuyten,

I'm curious about the picture quality even at 977MB. :) If it's
transcoding it could be a useful tool for converting DVD9 to
DVD5. 8) It appears from your test, it only allows standard
VCD, SVCD and maybe DVD resolutions. Since it's accepting
KVCD GOP and Q-Matrix, plus bitrate adjustments we might
have a competor for Tmpgenc. :?: Tmpgenc is great, but
slow.

-black prince


HansLuyten 03-03-2003 08:41 AM

Well, the quality is very good! Just a bit too big for my 80min CDR's ;)

I like the quality of MPEG Encoder, although TMPEnc is not bad either.
The only reason why I consider MPEG encoder is: SPEED. TMPEnc can be so very very very slow ... (hint: speed improvement tips are most welcome! ;) )

I did manage to incorporate the bitrates and Q-Matrix of KVCD, however the GOP thingy ... well that part didn't work out yet (I'm getting a bit lost in the differences between the two template formats). So once I manage to include those as well, KVCD for MPEG Encoder should be just fine :)
Some help here would be very welcome!

Also; putting an entire movie on one CD in SVCD resolution is just fine for me, since none of the MPEG1 templates seem to work anyways on my DVD player (Mustek 520). Maybe sticking to a standard resolution might kill some of the issues with other DVD players.


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

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