Aspect Ratio Problem in MediaCoder 2011 5116 R6

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

Post Reply
arunkchow
Beginner
Beginner
Posts: 4
Joined: Fri Jul 08, 2011 5:46 am

Aspect Ratio Problem in MediaCoder 2011 5116 R6

Post by arunkchow » Fri Jul 08, 2011 6:14 am

All,

I'm trying to transcode a VC1 High Profile video to H264 AVC.
The dimensions of the source file are 1920x1080 (with black boxes on top and bottom) 16:9.

I'm trying to get the Display Aspect Ratio 2.40:1. I cropped the video to 1920x800 and chose th option "Set Aspect Ratio" and tried all the possible options.

The problem is.. It's taking my settings, instead of creating the file using those settings it just adds another entry "Display Aspect Ratio" and shows the custom number I tried.
But the "Original Aspect Ratio" still shows the 16:9.

I'm using CUDA Encoder. Please help.

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: Aspect Ratio Problem in MediaCoder 2011 5116 R6

Post by meRobs » Sat Jul 09, 2011 8:02 pm

Have you understood what MediaCoder is trying to do, as explained in the Guides on Aspect Ratio and that on Cropping (see: viewtopic.php?f=17&t=8061)?

Secondly, did you get the value "Original Aspect Ratio" from the properties panel or from MediaInfo?
In this case, it may ne represent what actually occurs with the file (when played).
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

arunkchow
Beginner
Beginner
Posts: 4
Joined: Fri Jul 08, 2011 5:46 am

Re: Aspect Ratio Problem in MediaCoder 2011 5116 R6

Post by arunkchow » Sun Jul 10, 2011 7:49 am

meRobs wrote:Have you understood what MediaCoder is trying to do, as explained in the Guides on Aspect Ratio and that on Cropping (see: viewtopic.php?f=17&t=8061)?

Secondly, did you get the value "Original Aspect Ratio" from the properties panel or from MediaInfo?
In this case, it may ne represent what actually occurs with the file (when played).
I may have sounded little expert to you but the fact being I don't have much of knowledge in these terms. I tried to go through the threads you referred me to.. But there is no information which can solve my problem. Below are the screenshots with what I have as source and what I'm trying to achieve out.

The actual source:
Image
It's a VC1 encoded 1920x1080p 16:9 Aspect Ratio clip.
Source Resolution:
Image
The top and bottom black boxes are also considered as a part of 1920x1080 resolution.
Desired Output:
Image
I'm trying to eliminate the black boxes by cropping them with a resolution of 1920x780 by using autodetect crop option in crop tool. At this point I'm not sure what settings I define to get the above output. Which I find pretty hard to achieve.
Actual Output:
Image
No matter what I try.. This is what I see..

MediaCoder settings screenshot:
Image

Please just throw me numbers that I can enter to get this thing sorted..!

Thanks a bunch in advance..

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: Aspect Ratio Problem in MediaCoder 2011 5116 R6

Post by meRobs » Sun Jul 17, 2011 11:08 pm

I don't understand what you want!
The first 3 images look the same, with ~10% balck bands and the last image seems to be what you would want.
It has had the black bands removed as you wanted and the remaining image expanded vertically to give the 16:9 result.
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

ladycoder
Expert
Expert
Posts: 588
Joined: Fri Nov 24, 2006 5:29 am

Re: Aspect Ratio Problem in MediaCoder 2011 5116 R6

Post by ladycoder » Sun Jul 24, 2011 11:13 am

The DAR is 16:9 WITH the black bars. The desired video would be cropped like the last screenshot and stretched horizontally so the DAR is 2.35:1 or 2.40:1 = ultra widescreen = 1920x816

So MC is cropping but expanding to fit the original WXH.

arunkchow
Beginner
Beginner
Posts: 4
Joined: Fri Jul 08, 2011 5:46 am

Re: Aspect Ratio Problem in MediaCoder 2011 5116 R6

Post by arunkchow » Mon Aug 01, 2011 10:30 pm

ladycoder wrote:The DAR is 16:9 WITH the black bars. The desired video would be cropped like the last screenshot and stretched horizontally so the DAR is 2.35:1 or 2.40:1 = ultra widescreen = 1920x816

So MC is cropping but expanding to fit the original WXH.
There.. You got my problem right!!! So.. What do I do to fix that..?!
If you could give me some steps, I'd be grateful to your assistance!!

Regards,
A

arunkchow
Beginner
Beginner
Posts: 4
Joined: Fri Jul 08, 2011 5:46 am

Re: Aspect Ratio Problem in MediaCoder 2011 5116 R6

Post by arunkchow » Mon Aug 01, 2011 10:34 pm

meRobs wrote:I don't understand what you want!
The first 3 images look the same, with ~10% balck bands and the last image seems to be what you would want.
It has had the black bands removed as you wanted and the remaining image expanded vertically to give the 16:9 result.
Yep.. I actually don't want it to expand the image vertically. I want the image stay at 1920x780 resolution without expanding at an aspect ratio of 2.40:1 not 16:9!

Regards,
A.

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: Aspect Ratio Problem in MediaCoder 2011 5116 R6

Post by meRobs » Mon Aug 01, 2011 10:49 pm

To understand what has happened and what to do about it you need to read the Guides on Aspect Ratio and Cropping.
They are listed under Tips & Guides (link below).

Keep in mind that if you trimmed off the top/bottom black bands and left the desired image at an aspect ratio of 2.4:1 you would need a player that can respond to that size without itself adding black bands.
Many players, such as DVd players, TVs and hand-held units have screens that are 4:3 or 16;9 and thus will add the bands or crop off the sides to suit or expand the image to fill the screen.
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

ladycoder
Expert
Expert
Posts: 588
Joined: Fri Nov 24, 2006 5:29 am

Re: Aspect Ratio Problem in MediaCoder 2011 5116 R6

Post by ladycoder » Tue Aug 02, 2011 8:04 am

I would love to help further, but the last MC version I use is 4275.

Manual Crop and Resize always works for me, although sometimes getting square pixels for some codecs or setting the DAR is tricky.

Try to find where it is expanding to fit or disregarding the resize. Set the height as mod 16 = 800 after cropping.

Can you set the DAR = 2.35:1 or 2.4:1?

The point is, whether the player adds the bars, i.e. letter-boxes the video or not, the wasted bits used to encode the black bars are not wasted in the recode, and the final file is the correct WXH.

I think that is the goal.

BTW, make sure the video really did not resize; check with mediainfo. I encoded a similar ultra-wide screen with bars using mencoder, and after cropping, whatever I tried the the playback DAR remained 16:9.

I had to reset it to 2.35:1 with mkvmerge. Oddly enough, when I split the recode to check something in the middle, the second part's DAR returned to 16:9!!!

Post Reply