[FFmpeg-trac] #5924(undetermined:new): QSV regresion

FFmpeg trac at avcodec.org
Thu Nov 3 08:34:35 EET 2016


#5924: QSV regresion
-------------------------------------+-------------------------------------
             Reporter:  laurfb       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:
              Version:  git-master   |  undetermined
             Keywords:  qsv          |               Resolution:
  regression                         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by laurfb):

 '''Console output without look_ahead:'''

 ffmpeg -i pal_avi_dv.avi -c:v h264_qsv -b:v 2M -v debug -y out_qsv.mp4
 -report
 ffmpeg version N-82215-g3932ccc Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 6.2.0 (Rev2, Built by MSYS2 project)
   configuration:  --enable-avisynth --enable-gmp --enable-libmp3lame
 --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265
 --disable-w32threads --enable-decklink --enable-fontconfig --enable-
 libbs2b --enable-libfreetype --enable-libfribidi --enable-libmfx --enable-
 libsoxr --enable-libspeex --enable-libtwolame --enable-libvidstab
 --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzimg
 --enable-nvenc --enable-opengl --enable-libfdk-aac --enable-libebur128
 --enable-gpl --enable-version3 --enable-nonfree --disable-debug
   libavutil      55. 35.100 / 55. 35.100
   libavcodec     57. 66.100 / 57. 66.100
   libavformat    57. 57.100 / 57. 57.100
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 66.100 /  6. 66.100
   libswscale      4.  3.100 /  4.  3.100
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 Splitting the commandline.
 Reading option '-i' ... matched as input file with argument
 'pal_avi_dv.avi'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'h264_qsv'.
 Reading option '-b:v' ... matched as option 'b' (video bitrate (please use
 -b:v)) with argument '2M'.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument 'debug'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option 'out_qsv.mp4' ... matched as output file.
 Reading option '-report' ... matched as option 'report' (generate a
 report) with argument '1'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument debug.
 Applying option y (overwrite output files) with argument 1.
 Applying option report (generate a report) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input file pal_avi_dv.avi.
 Successfully parsed a group of options.
 Opening an input file: pal_avi_dv.avi.
 [file @ 00000000004aac20] Setting default whitelist 'file,crypto'
 [avi @ 00000000005ba880] Format avi probed with size=2048 and score=100
 [avi @ 00000000004b2f00] use odml:1
 [avi @ 00000000005ba880] Before avformat_find_stream_info() pos: 10006
 bytes read:181192 seeks:6 nb_streams:2
 [avi @ 00000000005ba880] parser not found for codec dvvideo, packets or
 times may be invalid.
 [avi @ 00000000005ba880] parser not found for codec pcm_s16le, packets or
 times may be invalid.
 [avi @ 00000000005ba880] parser not found for codec dvvideo, packets or
 times may be invalid.
 [avi @ 00000000005ba880] parser not found for codec pcm_s16le, packets or
 times may be invalid.
 [avi @ 00000000005ba880] All info found
 [avi @ 00000000005ba880] After avformat_find_stream_info() pos: 158118
 bytes read:357968 seeks:6 frames:2
 Input #0, avi, from 'pal_avi_dv.avi':
   Metadata:
     encoder         : Lavf57.36.100
   Duration: 00:00:45.52, start: 0.000000, bitrate: 34952 kb/s
     Stream #0:0, 1, 1/25: Video: dvvideo, 1 reference frame (dvsd /
 0x64737664), yuv420p(topleft), 720x576 [SAR 16:15 DAR 4:3], 0/1, 28825
 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
     Stream #0:1, 1, 1/192000: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 192000 Hz, stereo, s16, 6144 kb/s
 Successfully opened the file.
 Parsing a group of options: output file out_qsv.mp4.
 Applying option c:v (codec name) with argument h264_qsv.
 Applying option b:v (video bitrate (please use -b:v)) with argument 2M.
 Successfully parsed a group of options.
 Opening an output file: out_qsv.mp4.
 [file @ 0000000002973d20] Setting default whitelist 'file,crypto'
 Successfully opened the file.
 detected 4 logical cores
 [graph 0 input from stream 0:0 @ 00000000028b9f20] Setting 'video_size' to
 value '720x576'
 [graph 0 input from stream 0:0 @ 00000000028b9f20] Setting 'pix_fmt' to
 value '0'
 [graph 0 input from stream 0:0 @ 00000000028b9f20] Setting 'time_base' to
 value '1/25'
 [graph 0 input from stream 0:0 @ 00000000028b9f20] Setting 'pixel_aspect'
 to value '16/15'
 [graph 0 input from stream 0:0 @ 00000000028b9f20] Setting 'sws_param' to
 value 'flags=2'
 [graph 0 input from stream 0:0 @ 00000000028b9f20] Setting 'frame_rate' to
 value '25/1'
 [graph 0 input from stream 0:0 @ 00000000028b9f20] w:720 h:576
 pixfmt:yuv420p tb:1/25 fr:25/1 sar:16/15 sws_param:flags=2
 [format @ 00000000028bdac0] compat: called with args=[nv12|qsv]
 [format @ 00000000028bdac0] Setting 'pix_fmts' to value 'nv12|qsv'
 [auto-inserted scaler 0 @ 00000000028bde60] Setting 'flags' to value
 'bicubic'
 [auto-inserted scaler 0 @ 00000000028bde60] w:iw h:ih flags:'bicubic'
 interl:0
 [format @ 00000000028bdac0] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_null_0' and the filter 'format'
 [AVFilterGraph @ 00000000004aa8a0] query_formats: 4 queried, 2 merged, 1
 already done, 0 delayed
 [auto-inserted scaler 0 @ 00000000028bde60] w:720 h:576 fmt:yuv420p
 sar:16/15 -> w:720 h:576 fmt:nv12 sar:16/15 flags:0x4
 [graph 1 input from stream 0:1 @ 00000000028df420] Setting 'time_base' to
 value '1/192000'
 [graph 1 input from stream 0:1 @ 00000000028df420] Setting 'sample_rate'
 to value '192000'
 [graph 1 input from stream 0:1 @ 00000000028df420] Setting 'sample_fmt' to
 value 's16'
 [graph 1 input from stream 0:1 @ 00000000028df420] Setting
 'channel_layout' to value '0x3'
 [graph 1 input from stream 0:1 @ 00000000028df420] tb:1/192000
 samplefmt:s16 samplerate:192000 chlayout:0x3
 [audio format for output stream 0:1 @ 00000000028df5c0] Setting
 'sample_fmts' to value 'fltp'
 [audio format for output stream 0:1 @ 00000000028df5c0] Setting
 'sample_rates' to value
 '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
 [audio format for output stream 0:1 @ 00000000028df5c0] auto-inserting
 filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and
 the filter 'audio format for output stream 0:1'
 [AVFilterGraph @ 00000000028d58a0] query_formats: 4 queried, 6 merged, 3
 already done, 0 delayed
 [auto-inserted resampler 0 @ 00000000028df6a0] [SWR @ 00000000004f0040]
 Using fltp internally between filters
 [auto-inserted resampler 0 @ 00000000028df6a0] ch:2 chl:stereo fmt:s16
 r:192000Hz -> ch:2 chl:stereo fmt:fltp r:96000Hz
 [h264_qsv @ 00000000028e7880] Initialized an internal MFX session using
 hardware accelerated implementation
 [h264_qsv @ 00000000028e7880] Using the VBR with lookahead (LA)
 ratecontrol method
 [h264_qsv @ 00000000028e7880] Selected ratecontrol mode is not supported
 by the QSV runtime. Choose a different mode.
 Stream mapping:
   Stream #0:0 -> #0:0 (dvvideo (native) -> h264 (h264_qsv))
   Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
 Error while opening encoder for output stream #0:0 - maybe incorrect
 parameters such as bit_rate, rate, width or height
 [AVIOContext @ 0000000002973e20] Statistics: 0 seeks, 0 writeouts
 [AVIOContext @ 00000000004b2de0] Statistics: 357968 bytes read, 6 seeks


 '''Console output with look_ahead'''

 ffmpeg -i pal_avi_dv.avi -c:v h264_qsv -b:v 2M -look_ahead 0 -v debug -y
 out_qsv.mp4 -report
 ffmpeg version N-82215-g3932ccc Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 6.2.0 (Rev2, Built by MSYS2 project)
   configuration:  --enable-avisynth --enable-gmp --enable-libmp3lame
 --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265
 --disable-w32threads --enable-decklink --enable-fontconfig --enable-
 libbs2b --enable-libfreetype --enable-libfribidi --enable-libmfx --enable-
 libsoxr --enable-libspeex --enable-libtwolame --enable-libvidstab
 --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzimg
 --enable-nvenc --enable-opengl --enable-libfdk-aac --enable-libebur128
 --enable-gpl --enable-version3 --enable-nonfree --disable-debug
   libavutil      55. 35.100 / 55. 35.100
   libavcodec     57. 66.100 / 57. 66.100
   libavformat    57. 57.100 / 57. 57.100
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 66.100 /  6. 66.100
   libswscale      4.  3.100 /  4.  3.100
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 Splitting the commandline.
 Reading option '-i' ... matched as input file with argument
 'pal_avi_dv.avi'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'h264_qsv'.
 Reading option '-b:v' ... matched as option 'b' (video bitrate (please use
 -b:v)) with argument '2M'.
 Reading option '-look_ahead' ... matched as AVOption 'look_ahead' with
 argument '0'.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument 'debug'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option 'out_qsv.mp4' ... matched as output file.
 Reading option '-report' ... matched as option 'report' (generate a
 report) with argument '1'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument debug.
 Applying option y (overwrite output files) with argument 1.
 Applying option report (generate a report) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input file pal_avi_dv.avi.
 Successfully parsed a group of options.
 Opening an input file: pal_avi_dv.avi.
 [file @ 000000000043ab60] Setting default whitelist 'file,crypto'
 [avi @ 000000000011a980] Format avi probed with size=2048 and score=100
 [avi @ 0000000000442e00] use odml:1
 [avi @ 000000000011a980] Before avformat_find_stream_info() pos: 10006
 bytes read:181192 seeks:6 nb_streams:2
 [avi @ 000000000011a980] parser not found for codec dvvideo, packets or
 times may be invalid.
 [avi @ 000000000011a980] parser not found for codec pcm_s16le, packets or
 times may be invalid.
 [avi @ 000000000011a980] parser not found for codec dvvideo, packets or
 times may be invalid.
 [avi @ 000000000011a980] parser not found for codec pcm_s16le, packets or
 times may be invalid.
 [avi @ 000000000011a980] All info found
 [avi @ 000000000011a980] After avformat_find_stream_info() pos: 158118
 bytes read:357968 seeks:6 frames:2
 Input #0, avi, from 'pal_avi_dv.avi':
   Metadata:
     encoder         : Lavf57.36.100
   Duration: 00:00:45.52, start: 0.000000, bitrate: 34952 kb/s
     Stream #0:0, 1, 1/25: Video: dvvideo, 1 reference frame (dvsd /
 0x64737664), yuv420p(topleft), 720x576 [SAR 16:15 DAR 4:3], 0/1, 28825
 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
     Stream #0:1, 1, 1/192000: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 192000 Hz, stereo, s16, 6144 kb/s
 Successfully opened the file.
 Parsing a group of options: output file out_qsv.mp4.
 Applying option c:v (codec name) with argument h264_qsv.
 Applying option b:v (video bitrate (please use -b:v)) with argument 2M.
 Successfully parsed a group of options.
 Opening an output file: out_qsv.mp4.
 [file @ 00000000029e3b20] Setting default whitelist 'file,crypto'
 Successfully opened the file.
 detected 4 logical cores
 [graph 0 input from stream 0:0 @ 0000000002929720] Setting 'video_size' to
 value '720x576'
 [graph 0 input from stream 0:0 @ 0000000002929720] Setting 'pix_fmt' to
 value '0'
 [graph 0 input from stream 0:0 @ 0000000002929720] Setting 'time_base' to
 value '1/25'
 [graph 0 input from stream 0:0 @ 0000000002929720] Setting 'pixel_aspect'
 to value '16/15'
 [graph 0 input from stream 0:0 @ 0000000002929720] Setting 'sws_param' to
 value 'flags=2'
 [graph 0 input from stream 0:0 @ 0000000002929720] Setting 'frame_rate' to
 value '25/1'
 [graph 0 input from stream 0:0 @ 0000000002929720] w:720 h:576
 pixfmt:yuv420p tb:1/25 fr:25/1 sar:16/15 sws_param:flags=2
 [format @ 000000000292bba0] compat: called with args=[nv12|qsv]
 [format @ 000000000292bba0] Setting 'pix_fmts' to value 'nv12|qsv'
 [auto-inserted scaler 0 @ 000000000292c040] Setting 'flags' to value
 'bicubic'
 [auto-inserted scaler 0 @ 000000000292c040] w:iw h:ih flags:'bicubic'
 interl:0
 [format @ 000000000292bba0] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_null_0' and the filter 'format'
 [AVFilterGraph @ 000000000043a8c0] query_formats: 4 queried, 2 merged, 1
 already done, 0 delayed
 [auto-inserted scaler 0 @ 000000000292c040] w:720 h:576 fmt:yuv420p
 sar:16/15 -> w:720 h:576 fmt:nv12 sar:16/15 flags:0x4
 [graph 1 input from stream 0:1 @ 000000000294f5c0] Setting 'time_base' to
 value '1/192000'
 [graph 1 input from stream 0:1 @ 000000000294f5c0] Setting 'sample_rate'
 to value '192000'
 [graph 1 input from stream 0:1 @ 000000000294f5c0] Setting 'sample_fmt' to
 value 's16'
 [graph 1 input from stream 0:1 @ 000000000294f5c0] Setting
 'channel_layout' to value '0x3'
 [graph 1 input from stream 0:1 @ 000000000294f5c0] tb:1/192000
 samplefmt:s16 samplerate:192000 chlayout:0x3
 [audio format for output stream 0:1 @ 000000000294f760] Setting
 'sample_fmts' to value 'fltp'
 [audio format for output stream 0:1 @ 000000000294f760] Setting
 'sample_rates' to value
 '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
 [audio format for output stream 0:1 @ 000000000294f760] auto-inserting
 filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and
 the filter 'audio format for output stream 0:1'
 [AVFilterGraph @ 000000000292bfa0] query_formats: 4 queried, 6 merged, 3
 already done, 0 delayed
 [auto-inserted resampler 0 @ 000000000294f820] [SWR @ 0000000000480080]
 Using fltp internally between filters
 [auto-inserted resampler 0 @ 000000000294f820] ch:2 chl:stereo fmt:s16
 r:192000Hz -> ch:2 chl:stereo fmt:fltp r:96000Hz
 [h264_qsv @ 0000000002957ae0] Initialized an internal MFX session using
 hardware accelerated implementation
 [h264_qsv @ 0000000002957ae0] Using the average variable bitrate (AVBR)
 ratecontrol method
 [h264_qsv @ 0000000002957ae0] Error initializing the encoder
 Stream mapping:
   Stream #0:0 -> #0:0 (dvvideo (native) -> h264 (h264_qsv))
   Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
 Error while opening encoder for output stream #0:0 - maybe incorrect
 parameters such as bit_rate, rate, width or height
 [AVIOContext @ 00000000029e3c20] Statistics: 0 seeks, 0 writeouts
 [AVIOContext @ 0000000000442ce0] Statistics: 357968 bytes read, 6 seeks


 regards,
 laur

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5924#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list