1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

doc/encoders: minor mediafoundation encoders updates

This commit is contained in:
GyanD
2025-11-15 08:26:46 +00:00
committed by Gyan Doshi
parent 4e556b0c0c
commit f283750ba8

View File

@@ -3413,9 +3413,8 @@ Maximum quantization parameter for B frame.
@section MediaFoundation @section MediaFoundation
This provides wrappers to encoders (both audio and video) in the The following wrappers for encoders in the MediaFoundation framework are
MediaFoundation framework. It supports both software and hardware encoders available:
through the following codecs:
@itemize @itemize
@item h264_mf @item h264_mf
@@ -3423,15 +3422,17 @@ through the following codecs:
@item av1_mf @item av1_mf
@end itemize @end itemize
These support both software and hardware encoding.
Video encoders can take input in either of nv12 or yuv420p form Video encoders can take input in either of nv12 or yuv420p form
(some encoders support both, some support only either - in practice, (some encoders support both, some support only either - in practice,
nv12 is the safer choice, especially among HW encoders). nv12 is the safer choice, especially among HW encoders).
Hardware-accelerated encoding is supported via D3D11, including hardware Hardware-accelerated encoding requires D3D11, including hardware
scaling capabilities through the scale_d3d11 filter. scaling capabilities through the scale_d3d11 filter.
To list all available options for the MediaFoundation encoders, use: To list all available options for the MediaFoundation encoders, use:
@command{ffmpeg -h encoder=h264_mf} @command{ffmpeg -h encoder=<encoder>} e.g. @command{ffmpeg -h encoder=h264_mf}
@subsection Options @subsection Options
@@ -3498,14 +3499,9 @@ Hardware-accelerated decoding with hardware encoding:
ffmpeg -hwaccel d3d11va -i input.mp4 -c:v h264_mf -hw_encoding 1 output.mp4 ffmpeg -hwaccel d3d11va -i input.mp4 -c:v h264_mf -hw_encoding 1 output.mp4
@end example @end example
Hardware-accelerated decoding and encoding with scaling: Hardware-accelerated decoding, HW scaling and encoding with quality setting:
@example @example
ffmpeg -hwaccel d3d11va -hwaccel_output_format d3d11 -i input.mp4 -c:v h264_mf -hw_encoding 1 -vf scale_d3d11=1920:1080 output.mp4 ffmpeg -hwaccel d3d11va -hwaccel_output_format d3d11 -i input.mp4 -vf scale_d3d11=1920:1080 -c:v hevc_mf -hw_encoding 1 -quality 80 output.mp4
@end example
Hardware decoding and encoding with quality setting:
@example
ffmpeg -hwaccel d3d11va -hwaccel_output_format d3d11 -i input.mp4 -c:v hevc_mf -hw_encoding 1 -quality 80 output.mp4
@end example @end example
@section Microsoft RLE @section Microsoft RLE