Opened 4 weeks ago

Last modified 5 days ago

#7701 new defect

[Parsed_deinterlace_qsv_2 Error during deinterlacing: -16

Reported by: kwsk Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: qsv
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -y -i input.ts -vf hwupload=extra_hw_frames=64,format=qsv,deinterlace_qsv -vcodec h264_qsv -b:v 3200k -acodec copy -mbd rd -copyinkf -bufsize 3000k -maxrate 3200k -loglevel debug -f mpegts output.ts
ffmpeg version 4.1
built on ...

[Parsed_deinterlace_qsv_2 @ 0x258e140] Error during deinterlacing: -16
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
[AVIOContext @ 0x25189c0] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 0x24ea9c0] Statistics: 10277008 bytes read, 3 seeks
Conversion failed!

upload.ffmpeg.org is dead

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (5)

comment:1 Changed 4 weeks ago by cehoyos

  • Keywords qsv added

To make this a valid ticket, please test current FFmpeg git head and provide the command line you tested together with the complete, uncut console output.

comment:2 follow-up: Changed 4 weeks ago by kwsk

Same error with latest git version
How Can I upload sample file?

$./ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -loglevel debug -y -i input.ts -vf hwupload=extra_hw_frames=64,format=qsv,deinterlace_qsv -vcodec h264_qsv -b:v 3200k -acodec copy -mbd rd -copyinkf -bufsize 3000k -maxrate 3200k -f mpegts output.ts

ffmpeg version N-93028-gd8ebfd1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
  configuration: --enable-libmfx
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 44.100 / 58. 44.100
  libavformat    58. 26.100 / 58. 26.100
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
Splitting the commandline.
Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'qsv=hw'.
Reading option '-filter_hw_device' ... matched as option 'filter_hw_device' (set hardware device used when filtering) with argument 'hw'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-i' ... matched as input url with argument 'input.ts'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'hwupload=extra_hw_frames=64,format=qsv,deinterlace_qsv'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264_qsv'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '3200k'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
Reading option '-mbd' ... matched as AVOption 'mbd' with argument 'rd'.
Reading option '-copyinkf' ... matched as option 'copyinkf' (copy initial non-keyframes) with argument '1'.
Reading option '-bufsize' ... matched as AVOption 'bufsize' with argument '3000k'.
Reading option '-maxrate' ... matched as AVOption 'maxrate' with argument '3200k'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'.
Reading option 'output.ts' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option init_hw_device (initialise hardware device) with argument qsv=hw.
[AVHWDeviceContext @ 0x3b7e740] Opened VA display via DRM device /dev/dri/renderD128.
[AVHWDeviceContext @ 0x3b7e740] libva: VA-API version 1.1.0
[AVHWDeviceContext @ 0x3b7e740] libva: va_getDriverName() returns 0
[AVHWDeviceContext @ 0x3b7e740] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x3b7e740] libva: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
[AVHWDeviceContext @ 0x3b7e740] libva: Found init function __vaDriverInit_1_1
[AVHWDeviceContext @ 0x3b7e740] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x3b7e740] Initialised VAAPI connection: version 1.1
[AVHWDeviceContext @ 0x3b7e740] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x3b7e740] Format 0x42475241 -> argb.
[AVHWDeviceContext @ 0x3b7e740] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x3b7e740] Format 0x52474241 -> abgr.
[AVHWDeviceContext @ 0x3b7e740] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x3b7e740] Format 0x42475258 -> 0rgb.
[AVHWDeviceContext @ 0x3b7e740] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x3b7e740] Format 0x52474258 -> 0bgr.
    Last message repeated 1 times
[AVHWDeviceContext @ 0x3b7e740] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x3b7e740] Format 0x3132564e -> unknown.
[AVHWDeviceContext @ 0x3b7e740] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x3b7e740] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x3b7e740] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x3b7e740] Format 0x56555949 -> yuv420p.
[AVHWDeviceContext @ 0x3b7e740] Format 0x48323234 -> yuv422p.
[AVHWDeviceContext @ 0x3b7e740] Format 0x56323234 -> yuv440p.
[AVHWDeviceContext @ 0x3b7e740] Format 0x30303859 -> gray.
[AVHWDeviceContext @ 0x3b7e740] Format 0x50313134 -> yuv411p.
[AVHWDeviceContext @ 0x3b7e740] Format 0x33434d49 -> unknown.
[AVHWDeviceContext @ 0x3b7e740] Format 0x50343434 -> yuv444p.
[AVHWDeviceContext @ 0x3b7e740] Format 0x50424752 -> unknown.
[AVHWDeviceContext @ 0x3b7e740] Format 0x50524742 -> unknown.
[AVHWDeviceContext @ 0x3b7e740] Format 0x38303250 -> unknown.
[AVHWDeviceContext @ 0x3b7e740] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x3b7e740] VAAPI driver: Intel iHD driver - 16.9.00183.
[AVHWDeviceContext @ 0x3b7e740] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x3b7e340] Initialize MFX session: API version is 1.27, implementation version is 1.27
[AVHWDeviceContext @ 0x3b7e340] MFX compile/runtime API: 1.27/1.27
Applying option filter_hw_device (set hardware device used when filtering) with argument hw.
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url input.ts.
Successfully parsed a group of options.
Opening an input file: input.ts.
[NULL @ 0x3bd2d00] Opening 'pipe:' for reading
[pipe @ 0x3bd3680] Setting default whitelist 'crypto'
[mpegts @ 0x3bd2d00] Format mpegts probed with size=2048 and score=50
[mpegts @ 0x3bd2d00] stream=0 stream_type=2 pid=340 prog_reg_desc=
[mpegts @ 0x3bd2d00] stream=1 stream_type=f pid=341 prog_reg_desc=
[mpegts @ 0x3bd2d00] stream=2 stream_type=6 pid=345 prog_reg_desc=
[mpegts @ 0x3bd2d00] stream=3 stream_type=6 pid=146 prog_reg_desc=
[mpegts @ 0x3bd2d00] stream=4 stream_type=d pid=350 prog_reg_desc=
[mpegts @ 0x3bd2d00] stream=5 stream_type=d pid=351 prog_reg_desc=
[mpegts @ 0x3bd2d00] Before avformat_find_stream_info() pos: 0 bytes read:273352 seeks:0 nb_streams:6
[mpegts @ 0x3bd2d00] parser not found for codec none, packets or times may be invalid.
    Last message repeated 1 times
[mpegts @ 0x3bd2d00] probing stream 1 pp:2500
[mpegts @ 0x3bd2d00] probing stream 1 pp:2499
[mpegts @ 0x3bd2d00] probing stream 1 pp:2498
[mpegts @ 0x3bd2d00] probing stream 1 pp:2497
[mpegts @ 0x3bd2d00] probing stream 1 pp:2496
[mpegts @ 0x3bd2d00] probing stream 1 pp:2495
[mpegts @ 0x3bd2d00] Probe with size=4320, packets=6 detected aac with score=25
[mpegts @ 0x3bd2d00] probed stream 1
[aac @ 0x3bd9280] This stream seems to incorrectly report its last channel as LFE[5], mapping to LFE[0]
[mpeg2video @ 0x3bd80c0] Invalid frame dimensions 0x0.
    Last message repeated 3 times
[mpegts @ 0x3bd2d00] probing stream 3 pp:2500
[mpegts @ 0x3bd2d00] probing stream 3 pp:2499
[mpegts @ 0x3bd2d00] probing stream 3 pp:2498
[mpegts @ 0x3bd2d00] probed stream 3
[mpegts @ 0x3bd2d00] parser not found for codec bin_data, packets or times may be invalid.
[mpeg2video @ 0x3bd80c0] Invalid frame dimensions 0x0.
    Last message repeated 6 times
[mpeg2video @ 0x3bd80c0] Format yuv420p chosen by get_format().
[mpegts @ 0x3bd2d00] Probe buffer size limit of 5000000 bytes reached
[mpegts @ 0x3bd2d00] rfps: 23.833333 0.017268
[mpegts @ 0x3bd2d00] rfps: 23.916667 0.011373
[mpegts @ 0x3bd2d00] rfps: 24.000000 0.010112
[mpegts @ 0x3bd2d00] rfps: 24.083333 0.013486
[mpegts @ 0x3bd2d00] rfps: 36.000000 0.010553
[mpegts @ 0x3bd2d00] rfps: 60.000000 0.001202
[mpegts @ 0x3bd2d00] rfps: 120.000000 0.004807
[mpegts @ 0x3bd2d00] rfps: 240.000000 0.019227
[mpegts @ 0x3bd2d00] rfps: 23.976024 0.010000
    Last message repeated 1 times
[mpegts @ 0x3bd2d00] rfps: 59.940060 0.000000
    Last message repeated 1 times
[mpegts @ 0x3bd2d00] Could not find codec parameters for stream 4 (Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x3bd2d00] Could not find codec parameters for stream 5 (Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x3bd2d00] After avformat_find_stream_info() pos: 5461588 bytes read:5465160 seeks:0 frames:150
Input #0, mpegts, from 'pipe:':
  Duration: N/A, start: 62387.117189, bitrate: N/A
  Program 193 
    Stream #0:0[0x340], 49, 1/90000: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, bt709, progressive, left), 1920x1080 [SAR 1:1 DAR 16:9], 0/1, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x341], 99, 1/90000: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 384 kb/s
    Stream #0:2[0x345], 0, 1/90000: Data: bin_data ([6][0][0][0] / 0x0006), 0/1
    Stream #0:3[0x146], 2, 1/90000: Data: bin_data ([6][0][0][0] / 0x0006), 0/1
    Stream #0:4[0x350], 0, 1/90000: Unknown: none ([13][0][0][0] / 0x000D)
    Stream #0:5[0x351], 0, 1/90000: Unknown: none ([13][0][0][0] / 0x000D)
Successfully opened the file.
Parsing a group of options: output url output.ts.
Applying option vf (set video filters) with argument hwupload=extra_hw_frames=64,format=qsv,deinterlace_qsv.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264_qsv.
Applying option b:v (video bitrate (please use -b:v)) with argument 3200k.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument copy.
Applying option copyinkf (copy initial non-keyframes) with argument 1.
Applying option f (force format) with argument mpegts.
Successfully parsed a group of options.
Opening an output file: output.ts.
[file @ 0x3bdd3c0] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 4 logical cores
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (copy)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 6 times
[mpeg2video @ 0x3c06e40] Format yuv420p chosen by get_format().
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 3 times
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[mpeg2video @ 0x3c06e40] Skipping P slice due to !sync
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 2 times
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 3 times
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 2 times
[mpeg2video @ 0x3c06e40] Skipping P slice due to !sync
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 3 times
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 2 times
[mpeg2video @ 0x3c06e40] Skipping P slice due to !sync
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 2 times
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 3 times
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 4 times
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 4 times
[mpeg2video @ 0x3c06e40] Skipping B slice due to open GOP
    Last message repeated 67 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[Parsed_hwupload_0 @ 0x3c6a440] Setting 'extra_hw_frames' to value '64'
[Parsed_format_1 @ 0x3c05080] Setting 'pix_fmts' to value 'qsv'
[graph 0 input from stream 0:0 @ 0x3c20500] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0x3c20500] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 0x3c20500] Setting 'time_base' to value '1/90000'
[graph 0 input from stream 0:0 @ 0x3c20500] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x3c20500] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x3c20500] Setting 'frame_rate' to value '30000/1001'
[graph 0 input from stream 0:0 @ 0x3c20500] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:1/1 sws_param:flags=2
[format @ 0x3c20400] Setting 'pix_fmts' to value 'nv12|p010le|qsv'
[auto_scaler_0 @ 0x3c20bc0] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 0x3c20bc0] w:iw h:ih flags:'bicubic' interl:0
[Parsed_hwupload_0 @ 0x3c6a440] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_hwupload_0'
[AVFilterGraph @ 0x3c6e9c0] query_formats: 6 queried, 4 merged, 1 already done, 0 delayed
[auto_scaler_0 @ 0x3c20bc0] picking nv12 out of 4 ref:yuv420p alpha:0
[auto_scaler_0 @ 0x3c20bc0] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1920 h:1080 fmt:nv12 sar:1/1 flags:0x4
[hwupload @ 0x3c6a540] Surface format is nv12.
[AVHWDeviceContext @ 0x3c20680] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x3c20680] Format 0x42475241 -> argb.
[AVHWDeviceContext @ 0x3c20680] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x3c20680] Format 0x52474241 -> abgr.
[AVHWDeviceContext @ 0x3c20680] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x3c20680] Format 0x42475258 -> 0rgb.
[AVHWDeviceContext @ 0x3c20680] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x3c20680] Format 0x52474258 -> 0bgr.
    Last message repeated 1 times
[AVHWDeviceContext @ 0x3c20680] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x3c20680] Format 0x3132564e -> unknown.
[AVHWDeviceContext @ 0x3c20680] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x3c20680] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x3c20680] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x3c20680] Format 0x56555949 -> yuv420p.
[AVHWDeviceContext @ 0x3c20680] Format 0x48323234 -> yuv422p.
[AVHWDeviceContext @ 0x3c20680] Format 0x56323234 -> yuv440p.
[AVHWDeviceContext @ 0x3c20680] Format 0x30303859 -> gray.
[AVHWDeviceContext @ 0x3c20680] Format 0x50313134 -> yuv411p.
[AVHWDeviceContext @ 0x3c20680] Format 0x33434d49 -> unknown.
[AVHWDeviceContext @ 0x3c20680] Format 0x50343434 -> yuv444p.
[AVHWDeviceContext @ 0x3c20680] Format 0x50424752 -> unknown.
[AVHWDeviceContext @ 0x3c20680] Format 0x50524742 -> unknown.
[AVHWDeviceContext @ 0x3c20680] Format 0x38303250 -> unknown.
[AVHWDeviceContext @ 0x3c20680] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x3c20680] VAAPI driver: Intel iHD driver - 16.9.00183.
[AVHWDeviceContext @ 0x3c20680] Driver not found in known nonstandard list, using standard behaviour.
[AVHWFramesContext @ 0x3c03a40] Created surface 0.
[AVHWFramesContext @ 0x3c03a40] Direct mapping possible.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x1.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x2.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x3.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x4.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x5.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x6.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x7.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x8.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x9.
[AVHWFramesContext @ 0x3c03a40] Created surface 0xa.
[AVHWFramesContext @ 0x3c03a40] Created surface 0xb.
[AVHWFramesContext @ 0x3c03a40] Created surface 0xc.
[AVHWFramesContext @ 0x3c03a40] Created surface 0xd.
[AVHWFramesContext @ 0x3c03a40] Created surface 0xe.
[AVHWFramesContext @ 0x3c03a40] Created surface 0xf.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x10.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x11.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x12.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x13.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x14.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x15.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x16.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x17.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x18.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x19.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x1a.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x1b.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x1c.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x1d.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x1e.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x1f.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x20.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x21.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x22.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x23.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x24.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x25.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x26.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x27.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x28.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x29.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x2a.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x2b.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x2c.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x2d.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x2e.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x2f.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x30.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x31.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x32.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x33.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x34.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x35.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x36.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x37.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x38.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x39.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x3a.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x3b.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x3c.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x3d.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x3e.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x3f.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x40.
[AVHWFramesContext @ 0x3c03a40] Created surface 0x41.
[Parsed_deinterlace_qsv_2 @ 0x3fd6b40] Error during deinterlacing: -16
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
[AVIOContext @ 0x3c69100] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0x3bd3980] Statistics: 5465160 bytes read, 0 seeks
Conversion failed!
write: Broken pipe

SIGPIPE received. cleaning up...
Recorded 2sec
Last edited 4 weeks ago by kwsk (previous) (diff)

comment:3 in reply to: ↑ 2 ; follow-up: Changed 3 weeks ago by cehoyos

Replying to kwsk:

How Can I upload sample file?

Use https://streams.videolan.org/upload/ or a file hoster of your choice.

comment:4 in reply to: ↑ 3 Changed 3 weeks ago by kwsk

Replying to cehoyos:

Replying to kwsk:

How Can I upload sample file?

Use https://streams.videolan.org/upload/ or a file hoster of your choice.

I uploaded videolan.org with Trac Ticket #7701

comment:5 Changed 5 days ago by fulinjie

I think this is a mismatch between Info.PicStruct? set in ffmpeg and CheckInputPicStruct? in MSDK;
In FFmpeg, TFF and BFF will be ignored if the input file in progressive;
https://github.com/FFmpeg/FFmpeg/blob/9e1e5213933dfed529f0cecac7304236a786177e/libavfilter/vf_deinterlace_qsv.c#L419

In MSDK, CheckInputPicStruct? will return MFX_ERR_UNDEFINED_BEHAVIOR if the given cases are not matched:
https://github.com/Intel-Media-SDK/MediaSDK/blob/b49b03b37b21f89575aa8dd956531928492a9835/_studio/mfx_lib/vpp/src/mfx_vpp_utils.cpp#L151

Some frames in the input sample have the PicStruct? of "Progressive | TFF | repeated", which will be set to:
MFX_PICSTRUCT_PROGRESSIVE | MFX_PICSTRUCT_FIELD_REPEATED
And it can not pass the CheckInputPicStruct?.

Same situation occurs in MfxHwH264Encode::CheckRunTimePicStruct? when calling h264_qsv encode:
https://github.com/Intel-Media-SDK/MediaSDK/blob/b49b03b37b21f89575aa8dd956531928492a9835/_studio/mfx_lib/shared/src/mfx_h264_enc_common_hw.cpp#L6880

Try this patch to fix the deinterlace issue:
https://github.com/intel-media-ci/ffmpeg/pull/21

Note: See TracTickets for help on using tickets.