Changes between Version 46 and Version 47 of Encode/AV1


Ignore:
Timestamp:
Sep 4, 2023, 12:57:09 PM (3 years ago)
Author:
Dmitrii Ovchinnikov
Comment:

AMF related commands formating fix

Legend:

Unmodified
Added
Removed
Modified
  • Encode/AV1

    v46 v47  
    211211By using these presets, users can easily and efficiently select the appropriate encoding settings for their specific usage scenario without the need for in-depth knowledge of the encoder's parameters and their impact on video quality and performance.
    212212The usage scenario for transcoding
     213
     214{{{
    213215ffmpeg -s 1920x1080 -pix_fmt yuv420p -i input.yuv -c:v h264_amf -usage transcoding output.mp4
     216}}}
    214217The usage scenario for lowlatency
     218{{{
    215219ffmpeg -s 1920x1080 -pix_fmt yuv420p -i input.yuv -c:v av1_amf -usage lowlatency output.mp4
    216 
     220}}}
    217221== Quality ==
    218222This parameter is used to select between video quality and speed. This parameter has a significant impact on encoding speed.
    … …  
    221225    • balanced: This preset balances the trade-off between quality and speed, making it suitable for a variety of applications that require a balance between the two, such as video conferencing and online gaming.
    222226    • speed: This preset prioritizes speed over quality, making it suitable for applications that require real-time video encoding with low latency, such as online gaming and remote desktop applications.
     227{{{
    223228ffmpeg -i input.mp4 -c:v av1_amf -quality balanced output.mp4
    224229ffmpeg -i input.mp4 -c:v av1_amf -quality quality output.mp4
    225230ffmpeg -i input.mp4 -c:v av1_amf -quality speed output.mp4
    226 
     231}}}
    227232== Enforce_hrd ==
    228233The Hypothetical Reference Decoder (HRD) helps to prevent buffer overflow and underflow, which can cause issues such as stuttering or freezing in the video playback. HRD may sacrifice a certain level of image quality. "enforce_hrd" parameter is not always necessary or appropriate for all types of scenario. It should be used selectively and with careful consideration of the specific characteristics of the video content being encoded.
     234{{{
    229235ffmpeg -i input.mp4 -c:v av1_amf -enforce_hrd true output.mp4
    230 
     236}}}
    231237== Vbaq ==
    232238VBAQ is a technique used to improve the visual quality of the encoded video. It achieves this by adapting the quantization parameters for blocks based on the visual complexity of the content. It is particularly effective for encoding video with complex visual content, such as high-motion or high-detail scenes.
    … …  
    240246    • 1080p: Input videos whose resolution is aligned to 64x16, as well as 1920x1080 video, will be coded; All other resolution videos will not be supported. Note that for resolution of 1920x1080, the output video would have a resolution of 1920x1082. Two extra lines are padded at the bottom of the frame, filled with black pixels.
    241247    • None: Videos with any resolution can be coded. However, for those videos whose resolution is not 64x16 aligned, their output resolution will be extrapolated to be 64x16 aligned and padded with black pixels. The exception is for resolution of 1080p, which will be padded to 1082p, as in the case of value “1080p”.
    242 
     248{{{
    243249ffmpeg -i input.mp4 -c:v av1_amf -align 1080p output.mp4
    244 
     250}}}
    245251== Keyframe placement ==
    246252By default, AMF AV1's keyframe interval is 250 frames, which is a balanced value for most use cases.