Changes between Version 6 and Version 7 of Hardware/VAAPI
- Timestamp:
- Apr 11, 2018, 6:20:20 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hardware/VAAPI
v6 v7 101 101 ffmpeg -init_hw_device vaapi=foo:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device foo -i input.mp4 -filter_hw_device foo -vf 'format=nv12|vaapi,hwupload' -c:v h264_vaapi output.mp4 102 102 }}} 103 This works because the decoder will output either `vaapi` surfaces (if the hwaccel is usable) or software frames (if it isn't). In the first case, it matches the `vaapi` format and `hwupload` does nothing (it passes through hardware frames unchanged). I mthe second case, it matches the `nv12` format and converts whatever the input is to that, then uploads. Performance will likely vary by a large amount depending which path is chosen, though.103 This works because the decoder will output either `vaapi` surfaces (if the hwaccel is usable) or software frames (if it isn't). In the first case, it matches the `vaapi` format and `hwupload` does nothing (it passes through hardware frames unchanged). In the second case, it matches the `nv12` format and converts whatever the input is to that, then uploads. Performance will likely vary by a large amount depending which path is chosen, though. 104 104 105 105 The supported encoders are:
