How to add VF Scale command line for x265?

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
sam2018
Posts: 32
Joined: Fri Aug 17, 2018 3:17 pm

How to add VF Scale command line for x265?

Post by sam2018 »

is there anyway we can add VF Scale command for x265? i want to add following info or if handbreak has pre-build option kindly let me know how can i add it.


https://pastebin.com/LUxg9EUj
sam2018
Posts: 32
Joined: Fri Aug 17, 2018 3:17 pm

Re: How to add VF Scale command line for x265?

Post by sam2018 »

it seems this problem is not solve yet

https://github.com/HandBrake/HandBrake/ ... -572327683
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: How to add VF Scale command line for x265?

Post by Ritsuka »

What are you trying to accomplish? HandBrake will always convert full range to limited range, there is no way to disable it right now.
The only known issue is that the QSV decoder does not do this conversion, so if you are using it disable it in HandBrake preferences.

If you think the conversion is wrong, please paste the activity log and provide a sample to reproduce the issue.
sam2018
Posts: 32
Joined: Fri Aug 17, 2018 3:17 pm

Re: How to add VF Scale command line for x265?

Post by sam2018 »

Here is the log
https://pastebin.com/XrXfTRV5


Here is the original and encoded file
https://www96.zippyshare.com/v/fgMbKeNL/file.html


This is original file screenshot
Image


This is encoded file screenshot
Image


see the black colour, that is changed. is there anyway we can prevent this? i am not familiar with QSV decoder, how can i check that option?
sam2018
Posts: 32
Joined: Fri Aug 17, 2018 3:17 pm

Re: How to add VF Scale command line for x265?

Post by sam2018 »

Here is the log
https://pastebin.com/XrXfTRV5


Here is the original and encoded file
https://www96.zippyshare.com/v/fgMbKeNL/file.html


This is original file screenshot
https://i.postimg.cc/s1CWpFTC/Original.png


This is encoded file screenshot
https://i.postimg.cc/s1CWpFTC/Original.png


see the black colour, that is changed. is there anyway we can prevent this? i am not familiar with QSV decoder, how can i check that option?


sorry for second post. old post don't have edit option and for some unknown reason image bbcode is not working.
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: How to add VF Scale command line for x265?

Post by Ritsuka »

The link to the files does not work.
Your CPU doesn't have QSV so that's not the issue. Which player are you using? Unfortunately there are a lot of players that fail to display full range video correctly, my personal recommendation is mpv (https://mpv.io).
sam2018
Posts: 32
Joined: Fri Aug 17, 2018 3:17 pm

Re: How to add VF Scale command line for x265?

Post by sam2018 »

User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: How to add VF Scale command line for x265?

Post by Ritsuka »

Yes, it's an issue in your player.
sam2018
Posts: 32
Joined: Fri Aug 17, 2018 3:17 pm

Re: How to add VF Scale command line for x265?

Post by sam2018 »

The problem is the video was encoded with handbrake. Handbrake will range compress a full range video to limited range. Reflagging it with a bitstream filter won't help, because the actual values are changed from 0-255 to 16-235 in 8bit code values (or scaled to 64-940 in 10bit instead of 0-1023)

hevc can be reflagged to full without re-encoding , if it was encoded full but flagged limited. (That is not your case)
https://ffmpeg.org/ffmpeg-bitstream-fil ... 5fmetadata

At this point in time, there is no way to bypass or disable that behaviour by handbrake. It's a shame because many consumer videos these days can be full range to begin with e.g. go pro, action cams....

someone said....
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: How to add VF Scale command line for x265?

Post by Ritsuka »

No it's not. Both video looks exactly the same in mpv and QuickTime player.
Full range output is on the to-do list. But the limited range encoded video looks exactly the same in non-broken players.
sam2018
Posts: 32
Joined: Fri Aug 17, 2018 3:17 pm

Re: How to add VF Scale command line for x265?

Post by sam2018 »

Original file media info:
https://pastebin.com/0WNdF0fJ

Encoded media info
https://pastebin.com/758wPqy7

original video `Color range: Full`
handbreak change the color range to `Color range: Limited`
sam2018
Posts: 32
Joined: Fri Aug 17, 2018 3:17 pm

Re: How to add VF Scale command line for x265?

Post by sam2018 »

Handbreak is probably the best video encode app, i really wish if you can add an option so that if user he can prevent the handbreak colour range convert. i mean use the original colour range from the source file.
Post Reply