Quantcast Best Setting for Source Aspect Ratio in TMPGEnc? - digitalFAQ.com Forums [Archives]
  #1  
04-08-2004, 10:47 PM
blahh blahh is offline
Free Member
 
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
i'm quite new to kvcd and have a short question concerning the source aspect ratio.

in the beginning i thought tmpg would handle this correctly itself, since the output looked fine, when i used x>y resolutions like 352x288 in my avs-script. in this case tmpg set the source aspect ratio to 4:3 625 lines (pal, 704x576).

but when i tried 352x576 tmpg set the source aspect ratio to 4:3 display and the output was horizontally streched/vertically crushed.

so, what do i have to set in tmpg's advanced options?
is the source aspect ratio correct but something else needs to be changed?
or is there anything wrong in the script?

many, many thanks in advance!

b

>>>

newbie template...

SOURCE:

- Filetype (divx/xvid/mpeg/mjpg - so what says Gspot??) ? : dvd
- interlaced(means combing on fast moving scenes) or not interlaced ? : not
- Framerate (29.97, 23.976, 25.000) ? : 25
- Resolution ? : probably 720x576..!?
- Audiosamplerate (44.1 khz, 48 khz)? : 48
- Audio Type (AC3, mp3, mp2) ?: ac3
- Is Audio VBR or CBR ? cbr
(some answers you get if using Gspot on the source!)


DESTINATION:

- KVCD, K(S)VCD or KDVD ?: kvcd
- Mode (mpeg1 or mpeg2) ?: mpeg1
- Framerate (29.97, 23.976, 25.000) ? : 25
- Resolution ? 352x576
- Audiosamplerate (44.1 khz or 48 khz) ? : 48
- Audio Enc Type (mp2, AC3) ?: mp2
- Encoding Appl. (CCE or TmpgEnc) ?: tmpg
- muxing Appl. (TmpgEnc, BBmpeg, etc.) ?: bb
- Authoring Appl. (Vcdeasy, VCDgear, Nero) ?: vcdeasy
- Burning Appl. (Vcdeasy, Nero, etc.) ?: nero

If Avisynth is used:

- Which Version of Avisynth Do you use? 2.54
- Post your last state of your script here!:
Quote:
loadplugin("d:\blah\test\filters\asharp.dll")
loadplugin("d:\blah\test\filters\grip.dll")
loadplugin("d:\blah\test\filters\mpeg2dec3.dll")
loadplugin("d:\blah\test\filters\stmedianfilter.dl l")
loadplugin("d:\blah\test\filters\undot.dll")
loadplugin("d:\blah\test\filters\unfilter.dll")

mpeg2source("d:\blah\test\def\test.d2v")

undot()
asharp(1,4)
gripcrop(352,576)
gripsize(resizer="bicubicresize")
stmedianfilter(3,3,1,1)
mergechroma(blur(1.5))
mergeluma(blur(0.1))

scriptclip("nf=ydifferencetonext()"+chr(13)+"unfil ter(-(fmin(round(nf)*2,100)),-(fmin(round(nf)*2,100))).temporalsoften(fmin(round (2/nf),6),round(1/nf),round(3/nf),1,1)")

gripborders()

function fmin(int f1,int f2){return(f1<f2)?f1:f2}
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
04-08-2004, 10:55 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by blahh
but when i tried 352x576 tmpg set the source aspect ratio to 4:3 display and the output was horizontally streched/vertically crushed.
Welcome blahh,

What did you use to display your encoded mpeg file
If you used WMP, that's probably why it didn't display correctly.
Try previewing with WinDVD or PowerDVD

Edit: Also, make sure you encoded with input aspect set to "Full Screen".
AviSynth (GripFit) will take care of the correct input resizing.

-kwag
Reply With Quote
  #3  
04-08-2004, 11:12 PM
blahh blahh is offline
Free Member
 
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
thanks for the quick reply, kwag!
quick kwag... hehe

i'm using the latest version of gabest's media player classic.
but my main concern is that it looks that strange on tv...

have to go to bed now, cause it's 6 o'clock in the morning over here.

edit

ok, i'll check that full screen option later today.
didn't read about that in any of the guides i saw..!?
Reply With Quote
  #4  
04-09-2004, 06:06 AM
blahh blahh is offline
Free Member
 
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ok, full screen solved the problem. thanks again!

three questions to clarify...
  • the (source) aspect ratio reported by tmpg is correct? no need to change?
  • i played a little bit with the resolutions in the avs-script. at some resolutions tmpg reports my video source type to be interlaced although i know it isn't, because it's the same dvd. for example at 352x576 and 704x576. while at 352x288 tmpg says progressive. is that a problem? i guess it doesn't matter whether i ignore it and leave it interlaced or set it correctly to progressive!?
  • can i leave the other settings in tmpg untouched or is there something else i have to be aware of?
my procedure at the moment:

1. load the avs
2. load the template
3. settings
4. gop structure... check output bitstream for edit (closed gop)
5. advanced... video arrange method: full scream
6. video... set cq

edit

I guess by...

Quote:
Also, make sure you encoded with input aspect set to "Full Screen".
...you meant video arrange method!?
Reply With Quote
  #5  
04-09-2004, 12:31 PM
kev23m kev23m is offline
Free Member
 
Join Date: Feb 2004
Location: India
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
Always load the template and then the avs file. Let avisynth handle resizing.
Reply With Quote
  #6  
04-10-2004, 03:57 AM
blahh blahh is offline
Free Member
 
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
thanks for the hint, kev! but are you sure about that?
red-m does it the other way round...

http://www.kvcd.net/guides/kguide/kvcdguide.htm
Reply With Quote
  #7  
04-10-2004, 07:58 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by blahh
thanks for the hint, kev! but are you sure about that?
red-m does it the other way round...

http://www.kvcd.net/guides/kguide/kvcdguide.htm
It is correct. If your script is bad configured about resolution, loading first the template and later avs file, will you advise (in status bar) any resolution change.
Reply With Quote
  #8  
04-10-2004, 08:58 AM
blahh blahh is offline
Free Member
 
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ah, i see...

any comments to the three questions (especially the third) in my second last post?
i'd really appreciate your help!
Reply With Quote
  #9  
04-10-2004, 10:21 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by blahh
ah, i see...

any comments to the three questions (especially the third) in my second last post?
i'd really appreciate your help!
1 - Run tmpgenc.
2 - Open template.
3 - Open your avs.
4 - Check don't change resolution in status bar. If change, fix your avs.
5 - Settings. If you downloaded template from kvcd.net, only check if you are using kvcd notch matrix (configure - quantize matrix tab, check last values for intrablock, non-intrablock, it should be 79 and 44 respectively.) If not you must to write correct values there .
6 - You only have to change an unique value. This is in configure - video tab - rate control mode - settings - quality. This is the CQ value, adjust it according with prediction, to fill your movie in your media.
7 - KVCD Official Specifications recommend that don't close gop.
Code:
K Video Compression Dynamics (KVCD) Official Specifications

KVCD Official Specifications: ( Audio specifications are not defined )

The core of KVCD is a propietary modification to the standard MPEG-1 and MPEG-2 Quantization Matrix. The official KVCD resolution is 528x480( 576 ). This is labeled KVCDx3. Also 544x480( 576 ) is defined as an alternate resolution, labeled KVCDx3A.
The KVCD "Notch" Quantization matrix may be used on any hardware or software encoder capable of accepting custom tailored matrixes.
It is optimized for space/quality, and has also been optimized to reduce visible DCT blocks on low lit/dark scenes. 
The KVCD "Notch" Quantization Matrix is Copyright (c) 2002, 2003 of Softronex Corporation. Please contact us for commercial use.

Here is the byte code for the KVCD "Notch" Quantization Matrix:

Intra: 
8 9 12 22 26 27 29 34
9 10 14 26 27 29 34 37
12 14 18 27 29 34 37 38
22 26 27 31 36 37 38 40
26 27 29 36 39 38 40 48
27 29 34 37 38 40 48 58
29 34 37 38 40 48 58 69
34 37 38 40 48 58 69 79
NonIntra: 
16 18 20 22 24 26 28 30
18 20 22 24 26 28 30 32
20 22 24 26 28 30 32 34
22 24 26 30 32 32 34 36
24 26 28 32 34 34 36 38
26 28 30 32 34 36 38 40
28 30 32 34 36 38 42 42
30 32 34 36 38 40 42 44


Optional Recommendations:

For optimal encoding on natural material ( movies, new computer generated films ), we recommend to match the KVCD "Notch" Quantization Matrix with a maximum GOP size of 24 pictures for NTSCFilm (23.976fps), 25 pictures for PAL (25fps) or 30 pictures for NTSC (29.97fps).
For animation, old cartoons, etc., we recommend a maximum GOP size of 12 pictures for NTSCFilm (23.973fps), 15 pictures for PAL (25fps) and 18 pictures for NTSC (29.97fps).
It's also recommended to set "Scene change detection", if the encoder permits.
Also, use open GOP.
There are no preferences as to the type of encoding ( CQ, CQ_VBR, X-PASS, etc. ). Use the best mode that your encoder can produce.
Suggested bitrates are a minimum of 64Kbps and a maximum of 3,000Kbps.
For MPEG-1 and MPEG-2 in this bitrate range, a DC component precision of 8 bits is recommended.

DVD Compliance:

For DVD compliant MPEG files, select the standard DVD parameters for your encoder, but change (modify, patch, etc.) the matrix on your encoder to use the KVCD "Notch" Quantization Matrix. This will enable play times of ~6 hours on a 4.7GB DVD(+-)R(W) media at a standard resolution of 720x480(576 ) Full D-1, Wide Screen encodes, or ~10 hours at a resolution of 352x480( 576 ) Half D-1.
Reply With Quote
  #10  
04-10-2004, 12:35 PM
blahh blahh is offline
Free Member
 
Join Date: Apr 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
You only have to change an unique value... CQ
...obviously at least two!? see kwag's post.
video arrange method: full screen

Quote:
KVCD Official Specifications recommend that don't close gop.
i thought closed gop is recommended if you plan to add chapters later on!?
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
TMPGEnc: Aspect Ratio vs Source Aspect Ratio? Brenth Video Encoding and Conversion 3 08-14-2008 03:26 AM
TMPGEnc: What to use for Source Aspect Ratio supermule Video Encoding and Conversion 7 07-11-2007 08:31 AM
KVCD: Source Aspect Ratio for 16:9 ? miksmith Video Encoding and Conversion 5 10-04-2004 05:56 AM
KVCD: Source Aspect Ratio? VORTECH Video Encoding and Conversion 5 12-09-2003 11:11 AM
Aspect ratio vs source aspect ratio? marky Video Encoding and Conversion 1 08-02-2002 07:09 PM

Thread Tools



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