Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
21286 Discussions

Using scale_qsv to change pixel format

asheimo
Beginner
15,722 Views

I am trying to transcode a video in ffmpeg and use a complete hardware pipeline and also convert the video for 8bit to 10bit. It seems that scale_qsv should be able to do this using the format option but I have yet to be able to successfully do this. I am looking for guidance as to how to move forward. 

when using -vf scale_qsv-format-p010le ffmpeg errors with the following message:

[Parsed_scale_qsv_0 @ 000001beba542980] Error synchronizing the operation: -21kbits/s speed=N/A
Error while filtering: Unknown error occurred
Failed to inject frame into filter network: Unknown error occurred
Error while processing the decoded data for stream #0:0

0 Kudos
28 Replies
asheimo
Beginner
5,171 Views

Here is the output:

 

ffmpeg version 2020-12-12-git-5148740e79-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 56. 62.100 / 56. 62.100
libavcodec 58.115.102 / 58.115.102
libavformat 58. 65.100 / 58. 65.100
libavdevice 58. 11.103 / 58. 11.103
libavfilter 7. 93.100 / 7. 93.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
[h264 @ 00000237753525c0] Reinit context to 176x144, pix_fmt: yuv420p
Input #0, h264, from './AUD_MW_E.264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), 1 reference frame, yuv420p(progressive), 176x144, 25 fps, 25 tbr, 1200k tbn, 50 tbc
Codec AVOption look_ahead (Use VBR algorithm with look ahead) specified for output file #0 (test.mkv) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[h264_mp4toannexb @ 0000023775351340] The input looks like it is Annex B already
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_qsv) -> hevc (hevc_qsv))
Press [q] to stop, [?] for help
[AVHWDeviceContext @ 00000237758d94c0] Using D3D9Ex device.
[AVHWDeviceContext @ 00000237758d8ec0] Initialize MFX session: API version is 1.34, implementation version is 1.33
[h264_qsv @ 000002377588d0c0] Decoder: output is video memory surface
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: unsupported (-3)
Error while decoding stream #0:0: Function not implemented
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfece0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 000002377588d0c0] [IMGUTILS @ 000000fad5dfecb0] Picture size 0x0 is invalid
[h264_qsv @ 000002377588d0c0] video_get_buffer: image parameters invalid
[h264_qsv @ 000002377588d0c0] get_buffer() failed
[h264_qsv @ 000002377588d0c0] Too many errors when draining, this is a bug. Stop draining and force EOF.
Error while decoding stream #0:0: Internal bug, should not have happened
[AVFilterGraph @ 00000237758c9c40] No such filter: 'vpp_qsv=w=1920:h=1080,format=yuv420p10le'
Error reinitializing filters!
Error while filtering: Invalid argument
Finishing stream 0:0 without any data written to it.
[AVFilterGraph @ 00000237758c9e40] No such filter: 'vpp_qsv=w=1920:h=1080,format=yuv420p10le'
Error configuring filter graph
[AVIOContext @ 00000237758c93c0] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0000023775358b80] Statistics: 54828 bytes read, 0 seeks
Conversion failed!

0 Kudos
asheimo
Beginner
5,169 Views

further update after fixing the command to work properly it seems we have success. the command should be:

ffmpeg -v verbose -stats -hwaccel qsv -qsv_device 1 -c:v h264_qsv -i ./AUD_MW_E.264 -map 0:0 -vf vpp_qsv=w=1920:h=1080,format=yuv420p10le -c:v hevc_qsv -b:v 6000k -look_ahead:v 1 -color_primaries:v bt709 -color_trc:v bt709 -colorspace:v bt709 -metadata:s:v title= -disposition:v default test.mkv

note the removal of the quotes from around the filter name and the adjustment to specify the proper device on windows.

 

output from ffmpeg:

ffmpeg version 2020-12-12-git-5148740e79-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 56. 62.100 / 56. 62.100
libavcodec 58.115.102 / 58.115.102
libavformat 58. 65.100 / 58. 65.100
libavdevice 58. 11.103 / 58. 11.103
libavfilter 7. 93.100 / 7. 93.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
[h264 @ 00000296e4ca2580] Reinit context to 176x144, pix_fmt: yuv420p
Input #0, h264, from './AUD_MW_E.264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), 1 reference frame, yuv420p(progressive), 176x144, 25 fps, 25 tbr, 1200k tbn, 50 tbc
Codec AVOption look_ahead (Use VBR algorithm with look ahead) specified for output file #0 (test.mkv) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[h264_mp4toannexb @ 00000296e4ca1980] The input looks like it is Annex B already
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_qsv) -> hevc (hevc_qsv))
Press [q] to stop, [?] for help
[AVHWDeviceContext @ 00000296e52b7dc0] Using D3D9Ex device.
[AVHWDeviceContext @ 00000296e52b98c0] Initialize MFX session: API version is 1.34, implementation version is 1.33
[h264_qsv @ 00000296e526ce00] Decoder: output is video memory surface
[graph 0 input from stream 0:0 @ 00000296e4ca4080] w:176 h:144 pixfmt:qsv tb:1/1200000 fr:25/1 sar:0/1
[auto_scaler_0 @ 00000296e5278340] w:iw h:ih flags:'bicubic' interl:0
[Parsed_format_1 @ 00000296e4ca3e00] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_vpp_qsv_0' and the filter 'Parsed_format_1'
[auto_scaler_1 @ 00000296e5278800] w:iw h:ih flags:'bicubic' interl:0
[format @ 00000296e5277b80] auto-inserting filter 'auto_scaler_1' between the filter 'Parsed_format_1' and the filter 'format'
[auto_scaler_0 @ 00000296e5278340] w:1920 h:1080 fmt:nv12 sar:0/1 -> w:1920 h:1080 fmt:yuv420p10le sar:0/1 flags:0x4
[auto_scaler_1 @ 00000296e5278800] w:1920 h:1080 fmt:yuv420p10le sar:0/1 -> w:1920 h:1080 fmt:p010le sar:0/1 flags:0x4
[hevc_qsv @ 00000296e4d5c000] Initialized an internal MFX session using hardware accelerated implementation
[hevc_qsv @ 00000296e4d5c000] Using the average variable bitrate (AVBR) ratecontrol method
[hevc_qsv @ 00000296e4d5c000] profile: main10; level: 40
[hevc_qsv @ 00000296e4d5c000] GopPicSize: 248; GopRefDist: 9; GopOptFlag: closed ; IdrInterval: 1
[hevc_qsv @ 00000296e4d5c000] TargetUsage: 4; RateControlMethod: VBR
[hevc_qsv @ 00000296e4d5c000] BufferSizeInKB: 1500; InitialDelayInKB: 750; TargetKbps: 6000; MaxKbps: 6000; BRCParamMultiplier: 1
[hevc_qsv @ 00000296e4d5c000] NumSlice: 1; NumRefFrame: 5
[hevc_qsv @ 00000296e4d5c000] RateDistortionOpt: unknown
[hevc_qsv @ 00000296e4d5c000] NumTileColumns: 1; NumTileRows: 1
[hevc_qsv @ 00000296e4d5c000] RecoveryPointSEI: unknown IntRefType: 0; IntRefCycleSize: 0; IntRefQPDelta: 0
[hevc_qsv @ 00000296e4d5c000] MaxFrameSize: 0; MaxSliceSize: 0;
[hevc_qsv @ 00000296e4d5c000] BitrateLimit: unknown; MBBRC: unknown; ExtBRC: OFF
[hevc_qsv @ 00000296e4d5c000] Trellis: auto
[hevc_qsv @ 00000296e4d5c000] VDENC: OFF
[hevc_qsv @ 00000296e4d5c000] RepeatPPS: OFF; NumMbPerSlice: 0; LookAheadDS: unknown
[hevc_qsv @ 00000296e4d5c000] AdaptiveI: unknown; AdaptiveB: unknown; BRefType: pyramid
[hevc_qsv @ 00000296e4d5c000] MinQPI: 12; MaxQPI: 63; MinQPP: 12; MaxQPP: 63; MinQPB: 12; MaxQPB: 63
[hevc_qsv @ 00000296e4d5c000] GPB: ON
[hevc_qsv @ 00000296e4d5c000] FrameRateExtD: 1; FrameRateExtN: 25
Output #0, matroska, to 'test.mkv':
Metadata:
encoder : Lavf58.65.100
Stream #0:0: Video: hevc, 1 reference frame, p010le(tv, bt709, progressive), 1920x1080 (0x0), q=2-31, 6000 kb/s, 25 fps, 1k tbn (default)
Metadata:
encoder : Lavc58.115.102 hevc_qsv
Side data:
cpb: bitrate max/min/avg: 0/0/6000000 buffer size: 0 vbv_delay: N/A
frame= 2 fps=0.0 q=0.0 size= 1kB time=00:00:00.00 bitrate=N/A speed= 0x frame= 31 fps= 25 q=-0.0 size= 1kB time=00:00:00.84 bitrate= 7.0kbits/s speed=0.689x frame= 62 fps= 36 q=-0.0 size= 1kB time=00:00:02.08 bitrate= 2.8kbits/s speed=1.21x frame= 94 fps= 42 q=-0.0 size= 1kB time=00:00:03.36 bitrate= 1.7kbits/s speed= 1.5x [h264_qsv @ 00000296e526ce00] A decode call did not consume any data: expect more data at input (-10)
Last message repeated 2 times
No more output streams to write to, finishing.
frame= 100 fps= 39 q=-0.0 Lsize= 2407kB time=00:00:04.08 bitrate=4831.9kbits/s speed=1.61x
video:2406kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.067147%
Input file #0 (./AUD_MW_E.264):
Input stream #0:0 (video): 100 packets read (54828 bytes); 100 frames decoded;
Total: 100 packets (54828 bytes) demuxed
Output file #0 (test.mkv):
Output stream #0:0 (video): 100 frames encoded; 100 packets muxed (2463243 bytes);
Total: 100 packets (2463243 bytes) muxed
[AVIOContext @ 00000296e4d5d140] Statistics: 2 seeks, 11 writeouts
[AVIOContext @ 00000296e4ca8b00] Statistics: 54828 bytes read, 0 seeks

0 Kudos
asheimo
Beginner
5,167 Views

when trying with an actual video I still get errors:

ffmpeg -v error -stats -hwaccel qsv -qsv_device 1 -c:v h264_qsv -i "movie.mkv" -map 0:0 -vf vpp_qsv=w=1920:h=1080,format=yuv420p10le -c:v hevc_qsv -b:v 4000k -maxrate:v 12000k -look_ahead:v 1 -color_primaries:v bt709 -color_trc:v bt709 -colorspace:v bt709 -metadata:s:v title= -disposition:v default -map 0:1 -c:a:0 ac3 -b:a:0 640k -metadata:s:a:0 title= -disposition:a:0 default -sn -metadata:g title= -default_mode passthrough "output.mkv"
[swscaler @ 000001739f896200] qsv is not supported as input pixel format
Error while filtering: Invalid argument
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0

does this mean that the only way this works is an exported h264 stream?

0 Kudos
asheimo
Beginner
5,159 Views

does Intel support 10bit AVC?

0 Kudos
Victor_G_Intel
Employee
5,156 Views

Hello asheimo,

 

Thank you for posting on the Intel® communities.


To answer your question and analyze your outcome we will require further research, we will update this thread as soon as possible.

 

Regards,

 

Victor G.

Intel Technical Support Technician  


0 Kudos
Victor_G_Intel
Employee
5,126 Views

Hello asheimo,


Thank you for posting on the Intel® communities.


Based on our research and your outcome we need to request further information from you to continue with the assistance, and you can find one of your questions answered down below.


Could you please check the following command line and attach the full log to your next response?


ffmpeg -v verbose -stats -hwaccel qsv -qsv_device /dev/dri/renderD128 -c:v h264_qsv -i ./AUD_MW_E.264 -f null -

 

ffmpeg -v verbose -stats -hwaccel qsv -qsv_device /dev/dri/renderD128 -c:v h264_qsv -i ./AUD_MW_E.264 -map 0:0 -vf 'vpp_qsv=w=1920:h=1080,format=yuv420p10le' -c:v hevc_qsv -b:v 6000k -look_ahead:v 1 -color_primaries:v bt709 -color_trc:v bt709 -colorspace:v bt709 -metadata:s:v title= -disposition:v default test.mkv


In regard to your questions:


- Does Intel support 10bit AVC?


We have never support 10bit avc decoder and encoder; nonetheless, your pipeline does not need a 10bits avc clip, vpp_qsv

converted 8 bits to 10 bits.


- Does this mean that the only way this works is an exported h264 stream?


Can you please elaborate on what an exported h264 stream is?


I look forward to hearing from you.


Regards,


Victor G. 

Intel Technical Support Technician 



0 Kudos
Victor_G_Intel
Employee
5,123 Views

Hello asheimo,


Were you able to check the previous post?  


Please let me know if you need further assistance.  


Best regards,


Victor G. 

Intel Technical Support Technician


0 Kudos
Victor_G_Intel
Employee
5,082 Views

Hello asheimo,


We have not heard back from you.


If you need any additional information, please submit a new question as this thread will no longer be monitored.


Victor G. 

Intel Technical Support Technician


0 Kudos
Reply