Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::
- :: Windows batch file converts Sony 8K 4:2:0 H.264/H.265 to 4K H.265 4:4:4 file
- :: Usage: 8K_420_to_4K_444 [video file]
- :: Output filename is <input filename>+"_4k"
- :: Original ffmpeg recipe from From: https://video.stackexchange.com/questions/19637/downscaling-4k-yuv420-to-2160p-yuv444-with-ffmpeg-introduces-red-tint
- :: Note: Drops Sony's timecode stream and transcodes Sony's pcm_s16be audio stream to AAC (pcm_s16be not permitted by spec in MP4 containers)
- ::
- set param_dir_with_filename=%~dpn1
- set param_dir_extension=%~x1
- ffmpeg.exe -i %1 -filter_complex "extractplanes=y+u+v[y][u][v]; [u] scale=w=7680:h=4320:in_range=full:flags=print_info+neighbor+bitexact [us]; [v] scale=w=7680:h=4320:in_range=full:flags=print_info+neighbor+bitexact [vs]; [y][us][vs]mergeplanes=0x001020:yuv444p,format=pix_fmts=yuv444p10le,scale=w=3840:h=2160:flags=print_info+bicubic+full_chroma_inp+full_chroma_int" -sws_dither none -c:v libx265 -preset medium -crf 15 -c:a aac -c:s copy -dn -map 0 "%param_dir_with_filename%_4k%param_dir_extension%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement