ubuntu:video:convert_h264_to_h265
This is an old revision of the document!
Ubuntu - Video - Convert H264 to H265
ffmpeg -i a.mp4 -c:v libx265 -map 0:v -c:a copy -map 0:a -c:s copy b.mkv
Using GPU Hardware Encoding
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i a.mp4 -c:v hevc_vaapi b.mkv ffmpeg -threads 16 -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i a.mp4 -c:v hevc_vaapi c.mkv
NOTE: These allow the GPU to be used:
-hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128
ubuntu/video/convert_h264_to_h265.1686012268.txt.gz ยท Last modified: 2023/06/06 00:44 by peter