User Tools

Site Tools


ubuntu:video:convert_h264_to_h265

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:video:convert_h264_to_h265 [2023/06/06 00:49] peterubuntu:video:convert_h264_to_h265 [2023/06/13 10:55] (current) – removed peter
Line 1: Line 1:
-====== Ubuntu - Video - Convert H264 to H265 ====== 
- 
-<code bash> 
-ffmpeg -i a.mp4 -c:v libx265 -map 0:v -c:a copy -map 0:a -c:s copy b.mkv 
-</code> 
- 
----- 
- 
-===== Using GPU Hardware Encoding ===== 
- 
-<code bash> 
-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 
-</code> 
- 
-<WRAP info> 
-**NOTE:** These allow the GPU to be used: 
- 
-<code bash> 
--hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 
-</code> 
- 
----- 
- 
-==== Encoding formats ==== 
- 
-Try replacing scale with scale_vaapi and replace -c:v h264 with -c:v:0 h264_vaapi 
- 
-The supported encoders are: 
-|H.262 / MPEG-2 part 2|mpeg2_vaapi| 
-|H.264 / MPEG-4 part 10 (AVC)|h264_vaapi| 
-|H.265 / MPEG-H part 2 (HEVC)|hevc_vaapi| 
-|MJPEG / JPEG|mjpeg_vaapi| 
-|VP8|vp8_vaapi| 
-|VP9|vp9_vaapi| 
- 
-</WRAP> 
  
ubuntu/video/convert_h264_to_h265.1686012544.txt.gz · Last modified: 2023/06/06 00:49 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki