ffdshow resize to screen resolution does not work on this AVC

View previous topic View next topic Go down

ffdshow resize to screen resolution does not work on this AVC

Post by david.lynch on Sat Oct 04, 2014 5:22 am

Hello everyone,

Maybe developers could help on this. Image cannot be resized to screen resolution on the following 1920x1080p AVC. On ffdshow, libavcodec is selected. Resize works fine for other videos.

Code:

General
Unique ID                                : 249141897498486676765086241380200071251 (0xBB6EFBECA04DD7B7B73837E65A17C053)
Complete name                            : Cinderella.Man.2005.Bluray.1080p.DTS-HD.x264-Grym\Cinderella.Man.2005.Bluray.1080p.DTS-HD.x264-Grym.MKV
Format                                   : Matroska
Format version                           : Version 2
File size                                : 19.0 GiB
Duration                                 : 2h 24mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 18.9 Mbps
Encoded date                             : UTC 2013-08-17 17:50:33
Writing application                      : mkvmerge v6.1.0 ('Old Devil') built on Mar  2 2013 14:32:37
Writing library                          : libebml v1.3.0 + libmatroska v1.4.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 2h 24mn
Bit rate mode                            : Variable
Nominal bit rate                         : 14.0 Mbps
Maximum bit rate                         : 30.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.282
Writing library                          : x264 core 135 r2345 f0c1c53
Encoding settings                        : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=1 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=1 / keyint=24 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=24 / rc=2pass / mbtree=1 / bitrate=14020 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=30000 / vbv_bufsize=30000 / nal_hrd=vbr / ip_ratio=1.10 / aq=1:1.00
Default                                  : Yes
Forced                                   : No

Audio #1
ID                                       : 2
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 2h 24mn
Bit rate mode                            : Variable
Bit rate                                 : Unknown / 1 509 Kbps
Channel count                            : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 24 bits
Compression mode                         : Lossless / Lossy
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format profile                           : Dolby Digital
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 2h 24mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel count                            : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 198 MiB (1%)
Language                                 : English
Default                                  : No
Forced                                   : No

Audio #3
ID                                       : 4
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format profile                           : Dolby Digital
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 2h 24mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel count                            : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 198 MiB (1%)
Language                                 : English
Default                                  : No
Forced                                   : No

Audio #4
ID                                       : 5
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format profile                           : Dolby Digital
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 2h 24mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel count                            : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 198 MiB (1%)
Language                                 : English
Default                                  : No
Forced                                   : No

Text #1
ID                                       : 6
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : The same subtitle format used on BDs/HD-DVDs
Language                                 : English
Default                                  : No
Forced                                   : No

Text #2
ID                                       : 7
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : The same subtitle format used on BDs/HD-DVDs
Language                                 : Spanish
Default                                  : No
Forced                                   : No

Text #3
ID                                       : 8
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : The same subtitle format used on BDs/HD-DVDs
Language                                 : French
Default                                  : No
Forced                                   : No

Text #4
ID                                       : 9
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : The same subtitle format used on BDs/HD-DVDs
Language                                 : Spanish
Default                                  : No
Forced                                   : No

Text #5
ID                                       : 10
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : The same subtitle format used on BDs/HD-DVDs
Language                                 : French
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : en:00:00:00.000
00:08:01.022                             : en:00:08:01.022
00:16:24.024                             : en:00:16:24.024
00:23:23.819                             : en:00:23:23.819
00:28:38.383                             : en:00:28:38.383
00:38:54.040                             : en:00:38:54.040
00:44:01.180                             : en:00:44:01.180
00:49:01.855                             : en:00:49:01.855
00:58:44.687                             : en:00:58:44.687
01:02:54.228                             : en:01:02:54.228
01:10:41.695                             : en:01:10:41.695
01:14:49.276                             : en:01:14:49.276
01:22:52.300                             : en:01:22:52.300
01:28:18.001                             : en:01:28:18.001
01:36:18.939                             : en:01:36:18.939
01:40:45.164                             : en:01:40:45.164
01:44:24.800                             : en:01:44:24.800
01:54:35.743                             : en:01:54:35.743
02:04:42.808                             : en:02:04:42.808
02:17:44.381                             : en:02:17:44.381
02:24:22.028                             : en:02:24:22.028


david.lynch

Posts : 11
Join date : 2012-01-01

View user profile

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by Admin on Sun Oct 05, 2014 5:58 am

I see no reason why it would fail on that file.

Resizing to screen resolution is not really necessary. It is done automatically when you view a file in full screen (press F11).

Admin
Admin

Posts : 2977
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by david.lynch on Mon Oct 06, 2014 5:48 am

It happens on this file. We keep seeing black borders at top and bottom of the image.

david.lynch

Posts : 11
Join date : 2012-01-01

View user profile

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by Admin on Tue Oct 07, 2014 12:29 am

The black bars are most likely part of the video. This file has a resolution of 1920x1080, while most movies have a resolution of 1920x800 or 1920x1040 if they have been encoded without black bars.

If your objective is to fill the entire screen (and break aspect ratio) then you can use the Pan&Scan functionality of MPC-HC. This allows you to zoom and stretch the video using the keys on the numeric keypad (the numbers at right side of your keyboard).
Look at MPC-HC menu > View > Pan&Scan, for all possible actions. For example pressing 8 (on numeric keypad, not above the qwerty letters) will stretch the video vertically.

Admin
Admin

Posts : 2977
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by david.lynch on Wed Oct 08, 2014 11:29 am

Black bars are not part of the video, since other players can resize as expected.

Could someone with this specific video check this?


david.lynch

Posts : 11
Join date : 2012-01-01

View user profile

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by Admin on Thu Oct 09, 2014 1:49 am

I have checked that file and it does in fact contain black bars.

What is the resolution of your screen?
Is your goal to completely remove all black bars? Do you realize that this requires to either cut of parts from the sides, or to break aspect ratio (square becomes a rectangle in the video)?

One way to do it is with a Pan&Scan preset in MPC-HC:
1) MPC-HC menu > View > Pan&Scan > Edit
2) Create a new preset and name it for example: 2.39:1 to 16:10
3) Set the zoom factor to 1.4940
4) This will zoom a video that has an aspect ratio of 2:39:1 (most common, also applies to your current file) to a screen with an aspect ratio of 16:10 (for example 1920x1200)

If your screen is 16:9 then the correct zoom factor is 2.39/16*9=1.3444

Now to activate this Pan&Scan preset, simply select it from the menu.

And to make MPC-HC remember the last used zoom: Options > Player > Remember last Pan&Scan zoom

Admin
Admin

Posts : 2977
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by david.lynch on Thu Oct 09, 2014 2:25 am

Any screen resolution at any system that I could check it, XP/7, x86/x64. The option that should work is "Resize to Screen Resolution", "No aspect ratio correction".

We know that MPC does that, it uses his own filters. But what we want is to do that with K-lite filters (ffdshow) which works for every other video like this (but not so large as this).

This is an issue that can only be reproduced with the related video file, and probably with others that used the same encoder settings.


david.lynch

Posts : 11
Join date : 2012-01-01

View user profile

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by Admin on Fri Oct 10, 2014 2:44 am

The black bars are part of the video, so you can't remove them by resizing. It will just resize them along with the rest.

You can remove the black bars with the Crop function in ffdshow. Vertical autocrop should do the trick. I don't recommend to leave that enabled all the time, since it isn't very reliable, and may crop when it should not. It is better to selectively enable it in these kind of special cases.

Admin
Admin

Posts : 2977
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by david.lynch on Wed Oct 15, 2014 3:09 pm

Hello again Admin,

Resize works as expected with MPC. Have you downloaded this video to say that the black bars are part of it?

MPC > View > Pan&Scan > Scale to 16:9 TV works as expected. Resize on WMP does not work.


david.lynch

Posts : 11
Join date : 2012-01-01

View user profile

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by Admin on Thu Oct 16, 2014 12:04 am

Yes, I am 100% sure it has black bars. You can easily see for yourself by playing the video in windowed mode without resizing enabled in ffdshow.

Pan&Scan works differently than normal resizing. It stretches/zooms the video and is not restricted by the size of your screen. It can make the video bigger than the screen, so parts are cut off that fall outside of the visible area.

Admin
Admin

Posts : 2977
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by david.lynch on Thu Oct 16, 2014 4:28 am

Thanks for the persistence in clarifying it!


david.lynch

Posts : 11
Join date : 2012-01-01

View user profile

Back to top Go down

Re: ffdshow resize to screen resolution does not work on this AVC

Post by Sponsored content Today at 4:39 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum