Advertisement
horshack

8K_420_to_4k_444.cmd

Mar 18th, 2021
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. ::
  2. :: Windows batch file converts Sony 8K 4:2:0 H.264/H.265 to 4K H.265 4:4:4 file
  3. :: Usage: 8K_420_to_4K_444 [video file]
  4. :: Output filename is <input filename>+"_4k"
  5. :: Original ffmpeg recipe from From: https://video.stackexchange.com/questions/19637/downscaling-4k-yuv420-to-2160p-yuv444-with-ffmpeg-introduces-red-tint
  6. :: 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)
  7. ::
  8. set param_dir_with_filename=%~dpn1
  9. set param_dir_extension=%~x1
  10. 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%"
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement