intel / intel-vaapi-driver

VA-API user mode driver for Intel GEN Graphics family
https://01.org/linuxmedia
Other
303 stars 126 forks source link

h264 encoder returns empty packets #417

Open YijinLiu opened 5 years ago

YijinLiu commented 5 years ago

Hi,

I have met this bizarre problem. I used ffmpeg with h264_vaapi encoder to transcode a video file on a i7-5557U CPU. It only works alternatively, i.e. it works on 1st, 3rd, 5th times. Other times, it returns empty packets. I compared two run's logs, nothing special from ffmpeg or libva.

I used ffmpeg 4.0.2 and libva/intel-vaapi-driver 2.2.0 on Linux 3.18.36. Here is the command I used: ffmpeg -loglevel 48 -vaapi_device /dev/dri/renderD128 -i test-video.mkv -an -vf 'format=nv12,hwupload' -c:v h264_vaapi test.mkv (You could download the test video here. I don't think it's related to this video though.)

More info:

I am not sure it's CPU or the kernel. I'll do more test when I could get my hands on other machines.

YijinLiu commented 5 years ago

Update: Cannot repro it with