turkbad.blogg.se

H264_qsv
H264_qsv













h264_qsv

The documentation is really poor, I can't find any other example for QSV decoding.Code: Encoder h264_qsv : I don't know if the initial warning message cause the problem or not. Link1 Link2 and the ffmpeg.exe source: Link3 I use the following examples for QSV decoding, but can't figure out what is my problem: When I use the command line ffmpeg with h264_qsv decoding it works perfect and the decode process is in the GPU. The following errors occured and the avcodec_receive_frame always returns AVERROR(EAGAIN) because more data required to decode header: int resultCode = FFmpegVideoPInvoke.CreateVideoDecoder(FFmpegVideoCodecId.H264, EHwAccel.NO_ACCEL, out decoderPtr) īut when I try to use QSV hardware accerelation with change the line to: int resultCode = FFmpegVideoPInvoke.CreateVideoDecoder(FFmpegVideoCodecId.H264, EHwAccel.QSV, out decoderPtr) When I run the decode with NO_ACCEL the ffmpeg decodes a valid 1920x1080 frame in the CPU with no error. In the example I have a valid h264 IFrame with SPS and PPS data. configure -prefix=./FFmpegHelper -pkg-config-flags=-static -pkg-config=pkg-config -disable-pthreads -disable-os2threads -disable-alsa -disable-appkit -disable-avfoundation -disable-bzlib -disable-coreimage -disable-iconv -disable-libxcb -disable-libxcb-shm -disable-libxcb-xfixes -disable-libxcb-shape -disable-lzma -disable-sndio -disable-sdl2 -disable-xlib -disable-zlib -disable-amf -disable-audiotoolbox -disable-cuda -disable-cuvid -disable-v4l2-m2m -disable-vaapi -disable-vdpau -disable-videotoolbox -enable-d3d11va -enable-dxva2 -disable-nvdec -disable-nvenc -enable-decoder=h264,aac,mp3 -enable-encoder=aac,libmp3lame -enable-parser=h264,aac,mp3 -enable-demuxer=flv,mov,mpegts,h264,aac,mp3,live_flv -enable-muxer=flv,mov,mpegts -enable-protocol=file,rtmp,pipe,hls -enable-filters -disable-doc -disable-ffprobe -enable-w32threads -enable-gpl -disable-static -enable-shared -enable-libx264 -enable-libx265 -enable-libmfx The ffmpeg version is: release/5.1 and the build flags are (example contains ffmpeg built library). I have a small sample project to decode one h264 frame with ffmpeg QSV hw:















H264_qsv