vinela.blogg.se

Convert hevc to h264 ffmpeg
Convert hevc to h264 ffmpeg








convert hevc to h264 ffmpeg convert hevc to h264 ffmpeg

I spent ages with the end results comparing them with the 1 minute same clip from the bluray that came with the UHD and couldn't figure out why they looked different and then it dawned on me.

convert hevc to h264 ffmpeg

Objective is to be best quality video at 1080p possible and preserve the soundtrack and PGS stream as is.Īfter much hunting around various forums and LOTS of conversions and tests I think i've got it as good as I can get it PQ wise with my current limited knowledge of ffmpeg / libx264 and errm everything basically.įfmpeg -hide_banner -y -probesize 100M -i "FILE_ONLY_1MIN.hevc" -map 0:v:0 -c:v libx264 -x264-params b_pyramid=2:ref=4:vbv-maxrate=30000:vbv-bufsize=15000 -refs 4 -crf 17 -preset:v veryslow -profile:v high -b_strategy 2 -rc-lookahead 900 -level 4.1 -pix_fmt yuv420p -color_range 1 -colorspace 1 -color_primaries bt709 -color_trc bt709 -subq 10 -vf zscale=tin=smpte2084:min=bt2020nc:pin=bt2020:rin=tv:t=smpte2084:m=bt2020nc:p=bt2020:r=tv,zscale=t=linear,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p,zscale=s=1920x1080 "FILE_ONLY_1MIN.h264" If anyone here has done this sort of thing already and knows a better ffmpeg line to do the job say on the original file without demuxing/remuxing it i'd appreciate it as I am new to ffmpeg. I intend to remux the newly created 1080p layer with the original primary soundtrack layer and PGS stream in tsMuxer and see what I get.

convert hevc to h264 ffmpeg

I am running the following ffmpeg command (grabbed from a forum online) to convert the UHD HEVC layer to 1080p(rec709).įfmpeg -hide_banner -y -hwaccel "cuda" -i "S03E01_WW.hevc" -map 0:v:0 -c:v "h264_nvenc" -rc "vbr" -b:v "5M" -maxrate "10M" -bufsize "10M" -preset "9" -profile:v "high" -level "0" -pix_fmt yuv420p -color_range "1" -colorspace "1" -color_primaries "1" -color_trc "1" -vf "scale=1920x1080:flags=lanczos+accurate_rnd+full_chroma_int:in_color_matrix=auto:out_color_matrix=bt709:in_range=auto:out_range=limited:out_h_chr_pos=0:out_v_chr_pos=0" -subq "10" -bf 4 -b_ref_mode 2 -b_strategy "2" -refs 4 -rc-lookahead 40 -max_muxing_queue_size 2048 -analyzeduration 10M -probesize 50M -map 0:a? -c:a copy -map 0:s? -c:s copy -map_chapters 0 -map 0:t? "S03E01_WW.h264" I am in the process of converting a bunch of UHD TV show episodes to a format playable on a 1080p system.Ĭurrently I have demuxed a test episode to UHD hevc layer, primary surround soundtrack layer and PGS stream 0 layer.










Convert hevc to h264 ffmpeg