How to improve lossy compression of NVENC HEVC with FFmpeg?

There are a lot of answers about h264_nvenc settings. But I didn’t find code examples for tuning NVENC HEVC lossy encoding settings on latest GPU, for example on Tesla T4. These are my current setings. It seems to me that some of these commands do not do anything. Useful for h.264 -b_ref_mode:v middle doesn’t work … Read more

How to restore unplayable H265 avi files produced by ffmpeg?

I have an input video file input.avi as produced by a digital camera $ avprobe input.avi avprobe version 11.7-6:11.7-1~deb8u1, Copyright (c) 2007-2016 the Libav developers built on Jun 12 2016 21:51:35 with gcc 4.9.2 (Debian 4.9.2-10) Input #0, avi, from ‘input.avi’: Metadata: creation_time : 2016-08-04 19:42:38 encoder : CanonMVI06 Duration: 00:00:21.60, start: 0.000000, bitrate: 17170 … Read more

How to play h265 video in Windows Server 2012 R2 DataCenter OS?

I am unable to play an H265 Video on Windows Server 2012 Datacenter OS. The main reason – Win2012 Server does not know about the h265 video codecs. So decoder unavailable, due to this, it can’t play. *Without installing any third-party codecs, how do I configure Win2012 Server OS to play H265 codecs? Does Win2016 … Read more

Decode/encode 4:2:2 with a 4:2:0 decoder/encoder

Similar to Reinterpret AVC bitstream as HEVC. Some hardware codecs support 4:2:0 for 4k but not don’t support 4:2:2 even for SD, with far less data. Can you trick a codec to encode 1920×1080 4:2:2 by feeding it 1920×2160 4:2:0? Answer No, you can’t trick it because the chroma planes are different resolution. 4:2:2 has … Read more

ffmpeg hevc_vaapi: Impossible to convert between the formats supported by the filter ‘Parsed_null_0’ and the filter ‘auto_scaler_0’

on Linux i am trying to encode file to H€VC using hardware acceleration. Successful attempt is: ffmpeg -v verbose -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i ‘/path/file.mkv’ -vcodec libx265 -crf 28 ‘/path/file.mp4’ but it is slow like 30fps, “ffmpeg -codecs|grep 265” shows: (encoders: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv hevc_v4l2m2m hevc_vaapi ) so i have tried hevc_vaapi: ffmpeg … Read more