[FFmpeg-trac] #7839(avcodec:new): QVBR breaks mpeg2_qsv
FFmpeg
trac at avcodec.org
Mon Apr 15 10:37:12 EEST 2019
#7839: QVBR breaks mpeg2_qsv
-------------------------------------+-------------------------------------
Reporter: atorp | Owner:
Type: defect | Status: new
Priority: important | Component: avcodec
Version: git-master | Resolution:
Keywords: qsv | Blocked By:
regression |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by atorp):
Replying to [comment:1 cehoyos]:
> Please provide the command line you tested together with the complete,
uncut console output to make this a valid ticket.
Hi,
I already put the relevant info the initial ticket: What executable works,
what fails, and the
'''complete''' command line.
Anyway, I answer to your recall:
- With "ffmpeg-20190125-260f196-win64-static-zeranoe.exe" and using one of
the test files:
{{{
C:\ffmpeg\ffmpeg-zeranoe> .\ffmpeg.exe -y -loglevel debug -hwaccel qsv -i
"Day-Flight.mpg" -c:v mpeg2_qsv test_qvbr.mp4
ffmpeg version N-93022-g260f1960e7 Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 8.2.1 (GCC) 20181201
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
fontconfig --enable-gnutls --enable-iconv --enabl
e-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amr
wb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-
libsnappy --enable-libsoxr --enable-libtheora --enab
le-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxml2 --
enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc -
-enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --e
nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt
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
libpostproc 55. 4.100 / 55. 4.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
accelerated decoding) with argument 'qsv'.
Reading option '-i' ... matched as input url with argument 'Day-
Flight.mpg'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'mpeg2_qsv'.
Reading option 'test_qvbr.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url Day-Flight.mpg.
Applying option hwaccel (use HW accelerated decoding) with argument qsv.
Successfully parsed a group of options.
Opening an input file: Day-Flight.mpg.
[NULL @ 000001c07a8fa800] Opening 'Day-Flight.mpg' for reading
[file @ 000001c07a8fb840] Setting default whitelist 'file,crypto'
[mpegts @ 000001c07a8fa800] Format mpegts probed with size=2048 and
score=50
[mpegts @ 000001c07a8fa800] stream=0 stream_type=1b pid=1e1 prog_reg_desc=
[mpegts @ 000001c07a8fa800] stream=1 stream_type=6 pid=1f1 prog_reg_desc=
[mpegts @ 000001c07a8fa800] Before avformat_find_stream_info() pos: 0
bytes read:32768 seeks:0 nb_streams:2
[mpegts @ 000001c07a8fa800] parser not found for codec klv, packets or
times may be invalid.
[AVBSFContext @ 000001c07a948280] nal_unit_type: 9(AUD), nal_ref_idc: 0
[AVBSFContext @ 000001c07a948280] nal_unit_type: 7(SPS), nal_ref_idc: 3
[AVBSFContext @ 000001c07a948280] nal_unit_type: 8(PPS), nal_ref_idc: 3
[AVBSFContext @ 000001c07a948280] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 000001c07a8fb940] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a8fb940] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 000001c07a8fb940] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 000001c07a8fb940] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 000001c07a8fb940] Format yuv420p chosen by get_format().
[h264 @ 000001c07a8fb940] Reinit context to 1280x720, pix_fmt: yuv420p
[h264 @ 000001c07a8fb940] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a8fb940] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
[h264 @ 000001c07a8fb940] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a8fb940] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
[h264 @ 000001c07a8fb940] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a8fb940] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
[h264 @ 000001c07a8fb940] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a8fb940] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
[h264 @ 000001c07a8fb940] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a8fb940] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
[h264 @ 000001c07a8fb940] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a8fb940] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
[mpegts @ 000001c07a8fa800] max_analyze_duration 5000000 reached at
5000000 microseconds st:0
[mpegts @ 000001c07a8fa800] Setting avg frame rate based on r frame rate
[mpegts @ 000001c07a8fa800] start time for stream 1 is not set in
estimate_timings_from_pts
[mpegts @ 000001c07a8fa800] After avformat_find_stream_info() pos: 0 bytes
read:2936976 seeks:2 frames:302
Input #0, mpegts, from 'Day-Flight.mpg':
Duration: 00:03:14.88, start: 10.000000, bitrate: 4187 kb/s
Program 1
Stream #0:0[0x1e1], 302, 1/90000: Video: h264 (Main), 1 reference
frame ([27][0][0][0] / 0x001B), yuv420p(progressiv
e, left), 1280x720, 0/1, 60 fps, 60 tbr, 90k tbn, 180k tbc
Stream #0:1[0x1f1], 0, 1/90000: Data: klv (KLVA / 0x41564C4B), 0/1
Successfully opened the file.
Parsing a group of options: output url test_qvbr.mp4.
Applying option c:v (codec name) with argument mpeg2_qsv.
Successfully parsed a group of options.
Opening an output file: test_qvbr.mp4.
[file @ 000001c07a8fda00] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 4 logical cores
[h264 @ 000001c07a8ff1c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 000001c07a8ff1c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (mpeg2_qsv))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[NULL @ 000001c07a8fb940] nal_unit_type: 7(SPS), nal_ref_idc: 3
[NULL @ 000001c07a8fb940] nal_unit_type: 8(PPS), nal_ref_idc: 3
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[h264 @ 000001c07a8ff1c0] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a8ff1c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 000001c07a8ff1c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 000001c07a8ff1c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h-264 @ 000001c07a8ff1c0] Format yuv420p chosen by get_format().
[h264 @ 000001c07a8ff1c0] Reinit context to 1280x720, pix_fmt: yuv420p
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[h264 @ 000001c07a965f40] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a965f40] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[h264 @ 000001c07a9666c0] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a9666c0] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
cur_dts is invalid (this is harmless if it occurs once at the start per
stream)
[h264 @ 000001c07a938180] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a938180] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
[h264 @ 000001c07a938900] nal_unit_type: 9(AUD), nal_ref_idc: 0
[h264 @ 000001c07a938900] nal_unit_type: 1(Coded slice of a non-IDR
picture), nal_ref_idc: 2
[graph 0 input from stream 0:0 @ 000001c07ae94f00] Setting 'video_size' to
value '1280x720'
[graph 0 input from stream 0:0 @ 000001c07ae94f00] Setting 'pix_fmt' to
value '0'
[graph 0 input from stream 0:0 @ 000001c07ae94f00] Setting 'time_base' to
value '1/90000'
[graph 0 input from stream 0:0 @ 000001c07ae94f00] Setting 'pixel_aspect'
to value '0/1'
[graph 0 input from stream 0:0 @ 000001c07ae94f00] Setting 'sws_param' to
value 'flags=2'
[graph 0 input from stream 0:0 @ 000001c07ae94f00] Setting 'frame_rate' to
value '60/1'
[graph 0 input from stream 0:0 @ 000001c07ae94f00] w:1280 h:720
pixfmt:yuv420p tb:1/90000 fr:60/1 sar:0/1 sws_param:flag
s=2
[format @ 000001c07a902e00] Setting 'pix_fmts' to value 'nv12|qsv'
[auto_scaler_0 @ 000001c07b19cc00] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 000001c07b19cc00] w:iw h:ih flags:'bicubic' interl:0
[format @ 000001c07a902e00] auto-inserting filter 'auto_scaler_0' between
the filter 'Parsed_null_0' and the filter 'for
mat'
[AVFilterGraph @ 000001c07b3ee2c0] query_formats: 4 queried, 2 merged, 1
already done, 0 delayed
[auto_scaler_0 @ 000001c07b19cc00] w:1280 h:720 fmt:yuv420p sar:0/1 ->
w:1280 h:720 fmt:nv12 sar:0/1 flags:0x4
[mpeg2_qsv @ 000001c07a8fcd00] Initialized an internal MFX session using
hardware accelerated implementation
[mpeg2_qsv @ 000001c07a8fcd00] Using the average variable bitrate (AVBR)
ratecontrol method
[mpeg2_qsv @ 000001c07a8fcd00] Error initializing the encoder: invalid
video parameters (-15)
Error initializing output stream 0:0 -- Error while opening encoder for
output stream #0:0 - maybe incorrect parameters
such as bit_rate, rate, width or height
[AVIOContext @ 000001c07a8fdac0] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 000001c07a903a80] Statistics: 3035280 bytes read, 2 seeks
Conversion failed!
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7839#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list