[FFmpeg-user] Encoding with vaapi: The same frame is outputted

hao hu superarhow at gmail.com
Thu Jul 27 04:33:19 EEST 2023


Hi Mr Xiang,
    Thank you for your reply.
    I did referred the vaapi_encode.c, however, I don't know how to view
the outputted .h264 file format. Both medial player and VLC player cannot
play it.
    Is there a way to analyze the outputted .h264 file?

2023年7月27日(木) 9:55 Xiang, Haihao <haihao.xiang-at-intel.com at ffmpeg.org>:

>
> > I am attempting to encode video using VAAPI's hardware acceleration. I
> have
> > managed to obtain NV12 format data and used the hwupload filter or
> > av_hwframe_transfer_data API to upload them to the GPU. Finally, I
> obtained
> > an H.264 format .mp4 file. However, the video appears to only have the
> > first 3-4 frames from my input data, with the following frames being
> > identical.
> >
> > My hardware setup consists of a Linux PC with an AMD Radeon graphics
> card,
> > and vainfo reports no issues (I have tested ffmpeg command line output
> > using VAAPI, and it works perfectly).
> >
> > My ffmpeg is configured with the following command line:
> > ./configure --enable-shared --enable-libvpx --enable-libvorbis
> > --enable-vaapi --enable-debug
> >
> > I have attached my source file and Makefile. Could you please help me
> > identify what I am doing wrong?
>
> You may refer to FFmpeg example below, it works fine in my side.
>
> https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/vaapi_encode.c
>
>
> Thanks
> Haihao
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list