View Single Post
Old 14th September 2017, 11:42   #5602  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Example for your first file:
ffmpeg -i "input.mkv" -pix_fmt yuv420p10 -strict -1 -f yuv4mpegpipe - | x265 - --y4m --output-depth 10 --colorprim 9 --transfer 16 --colormatrix 9 --range limited --chromaloc 2 --max-cll "1000,96" --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15634,16450)L(10000000,50)" -o "output.265"
(--chromalog 2 is usually used for 4K HDR so I have set it. But MediaInfo doesn't show this about your source.)
remux with audio/subs from source: mkvmerge -o "output.mkv" "output.265" --no-video "input.mkv"

You can find some more examples/discussion here:
https://forum.doom9.org/showthread.php?t=174491
http://x265.readthedocs.io/en/defaul...mation-options

Last edited by sneaker_ger; 14th September 2017 at 12:55. Reason: edited colorprim/transer/matrix to int values because of x265 cli change
sneaker_ger is offline   Reply With Quote