For information on the hevc_vaapi encoder settings:
Check your GPU compatibility:
Decode the video stream using hardware accelerated decoding. This enables full hardware transcode with VAAPI, using only hardware acceleration entire video transcode.
When the input may or may not be hardware decodable, this will fallback to software decoding.
When transcoding audio and/or video streams, ffmpeg will not begin writing into the output until it has one packet for each such stream. While waiting for that to happen, packets for other streams are buffered. This option sets the size of this buffer, in packets, for the matching output stream.
FFmpeg docs refer to this value as '-max_muxing_queue_size'
This free text input allows you to write any FFmpeg params that you want. This is for more advanced use cases where you need finer control over the file transcode.
:::note These params are added in three different places:
- MAIN OPTIONS - After the default generic options. (Main Options Docs)
- ADVANCED OPTIONS - After the input file has been specified. (Advanced Options Docs)
- VIDEO OPTIONS - After the video is mapped and the encoder is selected. (Video Options Docs) (Advanced Video Options Docs)
ffmpeg \
-hide_banner \
-loglevel info \
<CUSTOM MAIN OPTIONS HERE> \
-i /library/TEST_FILE.mkv \
<CUSTOM ADVANCED OPTIONS HERE> \
-map 0:v:0 \
-map 0:a:0 \
-map 0:a:1 \
-c:v:0 hevc_vaapi \
<CUSTOM VIDEO OPTIONS HERE> \
-c:a:0 copy \
-c:a:1 copy \
-y /path/to/output/video.mkv
:::