View Full Version : Problem Aspect Ratio on TV
scarabeaus_1
16th November 2009, 22:07
Hello everyone,
i have a little problem: I reacently bought an new LCD TV (Samsung) which is capable of playing x264 video files. I now want to convert my DVDs to x264 to play it from HDD.
The problem i have is that the converted file has the right pictureaspect on PC but not on TV. The picturehight is fine but not the picturewidth. There is blank space nearly 1/3 of the screen
To convert my DVDs i'm using megui.
The input picture is an letterboxed 2.35 widescreen film. The input DAR is set to ITU 16:9 PAL (1,823361). Because the film has on the left side a smal black line i added the crop and than do a resize to 720 PAL resulution picturewidth. (as shown in the code below)
# Set DAR in encoder to 20 : 11. The following line is for automatic signalling
global MeGUI_darx = 20
global MeGUI_dary = 11
DGDecode_mpeg2source("D:\Temp\Star Trek\Test\VTS_03_1.d2v", info=3)
ColorMatrix(hints=true, threads=0)
#deinterlace
crop( 2, 0, 0, 0)
LanczosResize(720,576) # Lanczos (Sharp)
#denoise
can someone please tell me how to solve the problem!!
:thanks:
scarabeaus
wonkey_monkey
16th November 2009, 22:18
crop(9, 0, -9, 0) # the small black line should never be seen because of overscan - which in PAL is 9 pixels on either side (IIRC)
LanczosResize(1024,576)
#you could also crop off the black bars top and bottom here - crop(0,72,0,-72) (guessing on the values)
Unfortunately the Samsung ignores aspect ratios - I know because I own one (great picture though, huh?).
David
Gavino
16th November 2009, 23:30
crop(9, 0, -9, 0) # the small black line should never be seen because of overscan - which in PAL is 9 pixels on either side (IIRC)
YV12 can only be cropped on even pixels, so use
crop(8, 0, -8, 0)
or
crop(8, 0, -10, 0)
wonkey_monkey
16th November 2009, 23:43
Oops! Should have spotted that :stupid:
David
smok3
16th November 2009, 23:47
there are some sar flags and some extended-sar flags, see if you can use one from the first definition, if that doesnt work you will have to resize to 1:1.
4.7.29.2 VUI_aspect_ratio_idc
Class: Numeric (Integer)
Description: Specifies the value of the sample aspect ratio of the luma samples Default value is 0 (unspecified). See Annex E, Table E-1 of the AVC text for more info.
Options:
1
1:1 (“square”)
2
12:11
3
10:11
4
16:11
5
40:33
6
24:11
7
20:11
8
32:11
9
80:33
10
18:11
11
15:11
12
64:33
13
160:99
14
4:3
15
3:2
16
2:1
scarabeaus_1
17th November 2009, 10:29
#you could also crop off the black bars top and bottom here - crop(0,72,0,-72) (guessing on the values)
Yes this was also my intension, but unfortunatly, the samsung does not fill in the bars again on playback -> complete false AR
Unfortunately the Samsung ignores aspect ratios - I know because I own one (great picture though, huh?).
Somehow I can't belive that, because a friend of me, has got an mkv movie, where the aspect ratio is fine (with black bars on top and bottom and picturewidth from one side to the other).
wonkey_monkey
17th November 2009, 13:23
Yes this was also my intension, but unfortunatly, the samsung does not fill in the bars again on playback -> complete false AR
Not if you've only cropped the 720x576 clip, but this:
crop(8,0,-10,0)
lanczosresize(1024,576)
crop(0,72,0,-72) # adjust for your movie
maintains the 1:1 pixel aspect ratio that the Samsung assumes.
Somehow I can't belive that, because a friend of me, has got an mkv movie, where the aspect ratio is fine (with black bars on top and bottom and picturewidth from one side to the other).
I can only assume that your friend's mkv has been pre-scaled to a 1:1 pixel aspect ratio, as the above script does to your DVD source. If not, then I'd very much like to get a sample, as would a lot of frustrated Samsung owners. But the official word from Samsung is that Media Play only supports/assumes 1:1 pixel aspect ratios.
David
Alex_ander
17th November 2009, 14:45
Assuming the original video ITU compliant (702x576 within 720x576 correspond to 16:9) it is possible to avoid excessive cropping of visible parts (those 9+9 instead of 2 pixels) if you first resize 720x576 to 1050 (=1024x720/702), then crop to visible. This also keeps correct proportions at 'square' pixels.
wonkey_monkey
17th November 2009, 20:13
it is possible to avoid excessive cropping of visible parts
True to a point, but the idea of overscan pixels is that cropping them is never "excessive".
This also keeps correct proportions at 'square' pixels.
Well, 0.02% out. I like splitting hairs, okay? :p
David
Alex_ander
17th November 2009, 20:56
That's 2.2% (18-2=16 of 718), when you know they are lost forever, it's a pity :).
wonkey_monkey
17th November 2009, 21:32
That's 2.2% (18-2=16 of 718)
At the risk of dragging the thread off-topic, I was talking about the aspect ratio after resizing to 1050x576 - because 1024x720/702=1050.256410r, not 1050, which gives you an aspect ratio of 1.0002442:1. I recklessly propose, however, that this is beyond the tolerance of human vision :)
David
scarabeaus_1
18th November 2009, 16:07
Mh...I see, this case is not an easy one... :(
Do the mediaplayers which are availble more and more play the files properly? For example the Raidsonic IB-MP305A-B? Or does this still depend on the TV?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.