[FFmpeg-devel] [PATCH 1/5] lavc : yami : add libyami decoder/encoder

Mark Thompson sw at jkqxz.net
Tue Aug 16 21:33:51 EEST 2016


On 16/08/16 09:51, Jun Zhao wrote:
> 
> barry at barry:~/Source/video/yami/ffmpeg_libyami$ ./ffmpeg -y -vaapi_device /dev/dri/card0 -hwaccel vaapi -hwaccel_output_format vaapi -i ../ffmpeg_yami_testcase/skyfall2-trailer.mp4 -an -vf 'format=nv12|vaapi,hwupload' -c:v h264_vaapi -profile 77 -level:v 40  -b 4000k  output_vaapi_transcode.mp4
> ...
> barry at barry:~/Source/video/yami/ffmpeg_libyami$ mediainfo output_vaapi_transcode.mp4 
> File size                                : 69.8 MiB
> ...
> barry at barry:~/Source/video/yami/ffmpeg_libyami$ ./ffmpeg -y -c:v libyami_h264 -i ../ffmpeg_yami_testcase/skyfall2-trailer.mp4 -c:v libyami_h264 output_yami_transcode.mp4 
> ...
> barry at barry:~/Source/video/yami/ffmpeg_libyami$ mediainfo output_yami_transcode.mp4 
> File size                                : 74.2 MiB

I'm assuming you are trying to show them with identical options?  Since the hardware is the same, you really should be able to get those two encodes to produce pretty much identical results.

Here I think the significant difference is probably that h264_vaapi is using 2 B-frames by default, but there might be more subtle differences to remove as well.

- Mark



More information about the ffmpeg-devel mailing list