View Full Version : Aspect Ratio questions
fleon
24th October 2008, 00:49
Hi i want to encode a dvd that I own that have 16/9 aspect ratio and is 720x480 and I have read that this videos true resolution is 853x480 and also I have played it on media player classic and it says that it is playing on that resolution
I also have read that it is not good to resize the video to that resolution that would not be right since the true resolution already is 853x480, and finally I also read that this is the formula for the sar:
SAR_x DAR_x * height
----- = --------------
SAR_y DAR_y * width
So for my source the sar will be 32:27
Now I did encode a very few seconds of the movie to be sure without waiting so much and the movie wasnt encoded at 853x480 and I did put --sar 32:27 on megui, so what I wanna now is how do I encode the movie at the true resolution and correct aspect ratio without resizing
Thanks
poisondeathray
24th October 2008, 01:08
--sar 32:27 works for all my NTSC DVD's, and I just tested it on today's new build, it's working fine.
You said it doesn't playback at 853x480, so what does it play back at?
What is your script?
Do you have any other filters in the directshow filter chain that maybe impairing playback for h264 or your particular container? (e.g. if you activate color converter, it won't playback with the proper DAR in MPC with VRM9)
What renderer is being used?
What happens in another media player e.g. VLC or SMplayer?
What does avinaptic say about your encoded file using that --sar value? (specifically the FAR, PAR, DAR values)
If you can't figure it out, post a sample
fleon
24th October 2008, 01:25
--sar 32:27 works for all my NTSC DVD's, and I just tested it on today's new build, it's working fine.
You said it doesn't playback at 853x480, so what does it play back at?
What is your script?
Do you have any other filters in the directshow filter chain that maybe impairing playback for h264 or your particular container? (e.g. if you activate color converter, it won't playback with the proper DAR in MPC with VRM9)
What renderer is being used?
If you can't figure it out, post a sample
It plays at 720x480 and my script is pretty simple this is it:
DGDecode_mpeg2source("C:\FINAL_FANTASY_7\VIDEO_TS\VTS_02_1.d2v",info=3)
ColorMatrix(hints=true,interlaced=true)
tfm(order=1).tdecimate()
#crop
#resize
#denoise
__film = last
__t0 = __film.trim(5000, 5500)
__t0
This is the one for the test clip that I did, for just a few seconds and the video is in mp4 but I havent muxed it with the audio since I just wanna test the video then encode the full movie.
And media player classic is on his default settings, and I have also tried it with vrm9 but it is still plays at the same rsolution (720x480)
Also I have uploaded the test clip is just almost 6mb it is here http://www.mediafire.com/?c9baj41z9nn
poisondeathray
24th October 2008, 01:32
Is that an output file? it plays properly in MPC on my PC (853x480). VLC plays it properly as well
(ffdshow for avc decoder, haali media splitter)
J_Darnley
24th October 2008, 01:32
Avisynth doesn't know what the SAR is so it just displays the video at the frame size. When you encode the video x264 will set the things so that when you play video it will be resized appropriately. The sample you provided is resized on playback. Is there still a problem?
fleon
24th October 2008, 01:36
Is that an output file? it plays properly in MPC on my PC (853x480)
(ffdshow for avc decoder, haali media splitter)
That's weird when I use display stats in media player classic it tells me 720x480 (AR= 3 x 2 )
and also when I open the file with bsplayer it also tells me that the video is 720x480
I'm using coreavc 1.8.5, haali media splitter as decoder and my os is windows xp x64, also i'm using the x64 version of media player classic
poisondeathray
24th October 2008, 01:40
I suspect something amiss on your system. My display stats in MPC report 853x480, and the screenshot measures that dimension as well
When I change decoder to CoreAVC 1.8, it plays fine too
Give VLC or SMplayer a try, which aren't dependent on directshow filters - if it plays fine in these you've narrowed the problem down
Avenger007
24th October 2008, 01:50
The file is encoded properly and plays properly. MPC says 720x480 (16:9), so the AR is correct.
fleon
24th October 2008, 01:58
I suspect something amiss on your system. My display stats in MPC report 853x480, and the screenshot measures that dimension as well
When I change decoder to CoreAVC 1.8, it plays fine too
Give VLC or SMplayer a try, which aren't dependent on directshow filters - if it plays fine in these you've narrowed the problem down
In vlc the file do plays at 853x480 and I have also noticed that when I play the file with mpc the tray icon of ffdshow video decoder appears eventhought I have specified to not use it with h264 (i'm using ffdshow x64) maybe an ffdshow bug?, so it seems that maybe is not using the coreavc decoder, I have also selected the option of use a tray icon with coreavc and it doesnt appears, so what could it be? I dont want to just use vlc since coreavc is much better
poisondeathray
24th October 2008, 02:09
I'm on 32-bit xp so I don't know
Did you set CoreAVC as the preferred decoder, and push apply when disabling ffdshow h264 decoding?
Try re-registering CoreAVC through the start menu
Sagekilla
24th October 2008, 02:36
If your video is encoded at 720x480 physical pixels, with a 32:27 AR, then having the file playback at 853x480 is perfectly normal.. the player is stretching the video to 16:9 but it's reporting the physical pixels as 853x480 instead of 720x480, nothing odd there.
fleon
24th October 2008, 02:54
I'm on 32-bit xp so I don't know
Did you set CoreAVC as the preferred decoder, and push apply when disabling ffdshow h264 decoding?
Try re-registering CoreAVC through the start menu
Yes coreavc is set as the preferred decoder and when I installed ffdshow x64 I deselected h264 decoding and i also checked and it is disabled and I did tried re registering coreavc but nothing :(
If your video is encoded at 720x480 physical pixels, with a 32:27 AR, then having the file playback at 853x480 is perfectly normal.. the player is stretching the video to 16:9 but it's reporting the physical pixels as 853x480 instead of 720x480, nothing odd there.
Yes i know that, but as I said in the previous posts the problem is that in mpc home cinema x64 with coreavc 1.8.5 as the preferred decoder is playing at 720x480 and I also have installed ffdshow x64 but I have disabled h264 decoding and eventhought I have done that I see the tray icon of ffdshow when I play the file in mpc not the coreavc tray icon( and i have selected to display the tray icon of coreavc)
Just in vlc the file plays at 853x480
Sagekilla
24th October 2008, 02:59
This is why I don't encode using SAR o_o Also, I don't encode at SD resolutions anymore so that's another thing to consider.. no need for SAR when sourcing from Blu-ray.
Very odd that you have this going on.. I personally never had issue with AR when I used it but that was always on 32-bit XP/Vista.
Avenger007
24th October 2008, 03:02
the problem is that in mpc home cinema x64 with coreavc 1.8.5 as the preferred decoder is playing at 720x480
How do you know it's playing at 720x480?
As long as it says 720x480 (16:9) then it is playing at the correct resolution.
fleon
24th October 2008, 03:05
How do you know it's playing at 720x480?
As long as it says 720x480 (16:9) then it is playing at the correct resolution.
I know because I opened the file in mpc and in bs player and the one in bsplayer is widther also in mpc I used display stats and the file said 720x480 (AR= 3 x 2 )
This must be a bug in mpc home cinema x64 since I tried again playing the file on bsplayer with the changes that I made( re registering coreavc and select to display the tray icon) and it do plays at 853x480 on bsplayer
kemuri-_9
24th October 2008, 05:56
i can confirm the fact that mpc-hc (both x64 and x86) do not display at 16:9 using internal ffmpeg based filters (x86 with coreavc works),
even despite mp4box confirming the AR like everyone else has:
AVC/H264 Video - Visual Size 720 x 480 - Profile High @ Level 4
NAL Unit length bits: 32
Pixel Aspect Ratio 32:27 - Indicated track size 853 x 480
Rumbah
24th October 2008, 13:42
For me mpc-hc corrects the aspect ratio if I switch to fullscreen.
kemuri-_9
24th October 2008, 14:15
i tried that and it doesn't work for me, but i did try muxing the sample mp4 into a .mkv (not specifying any track options)
and then mpc-hc displays it at proper AR, so it appears to be a bug for reading the PAR from a mp4 stream
and can replicate it not working from .mp4 with some self generated items.
@fleon: if you want to use mpc-hc with its internal codecs, gonna need to the use the aspect ratio override feature then....
fleon
24th October 2008, 17:09
@fleon: if you want to use mpc-hc with its internal codecs, gonna need to the use the aspect ratio override feature then....
What I want is to use mpc with coreavc wich is not working, because eventhought I have configured coreavc 1.8.5 to be the preferred decoder and also to display the tray icon that doesnt happen in mpc.
But the override aspect ratio feature works, now the only problem is that ffdshow x64 is decoding the video in mpc eventhought it is disabled for that type of video, in bsplayer ffdshow doesnt decode the video , corevc does
poisondeathray
24th October 2008, 18:37
Perhaps you can get more help in the software playback subforum? or the CoreAVC thread?
fleon
24th October 2008, 20:41
I asked in the coreavc thread and LoRd_MuldeR told me that the x86 versions of mpc hc and ffdshow have better performance so I installed them and it works great now, the sample is displayed at 853x480 and I can see the tray icon of coreavc so coreavc it's working thanks
Snowknight26
25th October 2008, 02:45
Might the setting "Read AR from stream" under the appropriate decoder settings ("transform filter" )have anything to do with the problems?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.