[FFmpeg-trac] #10856(undetermined:new): Regression: VA-API + QSV transcoding fail, with large number of errors
FFmpeg
trac at avcodec.org
Mon Feb 12 13:18:16 EET 2024
#10856: Regression: VA-API + QSV transcoding fail, with large number of errors
-------------------------------------+-------------------------------------
Reporter: eero-t | Owner: (none)
Type: defect | Status: new
Priority: important | Component:
| undetermined
Version: git-master | Resolution:
Keywords: regression | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by eero-t):
Before the problematic commit(s), output looked like this:
{{{
ffmpeg version N-113425-gac06190a5a Copyright (c) 2000-2024 the FFmpeg
developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration: --prefix=/opt/install/Nightly_3469 --enable-libmfx
--enable-vaapi --enable-sdl2 --disable-libx265 --disable-libx264
--disable-libvpx --enable-libvorbis --enable-libopus --disable-libmp3lame
--disable-libass --disable-sndio --enable-libfreetype --enable-gpl
--disable-doc
libavutil 58. 36.101 / 58. 36.101
libavcodec 60. 38.100 / 60. 38.100
libavformat 60. 20.100 / 60. 20.100
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 17.100 / 9. 17.100
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 13.100 / 4. 13.100
libpostproc 57. 4.100 / 57. 4.100
-vsync is deprecated. Use -fps_mode
[AVHWDeviceContext @ 0x55c971633dc0] libva: VA-API version 1.21.0
[AVHWDeviceContext @ 0x55c971633dc0] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x55c971633dc0] libva: Trying to open
/opt/install/Nightly_3469/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x55c971633dc0] libva: Found init function
__vaDriverInit_1_21
[AVHWDeviceContext @ 0x55c971633dc0] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x55c971633dc0] Initialised VAAPI connection: version
1.21
[AVHWDeviceContext @ 0x55c971633dc0] VAAPI driver: Intel iHD driver for
Intel(R) Gen Graphics - 24.1.2 (eab411768).
[AVHWDeviceContext @ 0x55c971633dc0] Driver not found in known nonstandard
list, using standard behaviour.
[AVHWDeviceContext @ 0x55c9716338c0] Use Intel(R) Media SDK to create MFX
session, API version is 1.35, the required implementation version is 1.3
[AVHWDeviceContext @ 0x55c9716338c0] Initialize MFX session:
implementation version is 1.35
[h264 @ 0x55c97171b9c0] Reinit context to 1280x720, pix_fmt: yuv420p
[h264 @ 0x55c97171a340] max_analyze_duration 500000 reached at 520000
microseconds st:0
Input #0, h264, from 'input/1280x720p_29.97_10mb_h264_cabac.264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(tv, bt709,
progressive, left), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 59.94 tbr, 1200k
tbn
[out#0/h264 @ 0x55c97171fc40] No explicit maps, mapping streams
automatically...
[vost#0:0/h264_qsv @ 0x55c9717202c0] Created video stream from input
stream 0:0
[h264_mp4toannexb @ 0x55c9718180c0] The input looks like it is Annex B
already
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_qsv) -> h264 (h264_qsv))
[vost#0:0/h264_qsv @ 0x55c9717202c0] Starting thread...
[vf#0:0 @ 0x55c97173ac00] Starting thread...
[vist#0:0/h264 @ 0x55c97171fe80] Starting thread...
[in#0/h264 @ 0x55c97171a180] Starting thread...
Press [q] to stop, [?] for help
[AVHWDeviceContext @ 0x7fda54002840] VAAPI driver: Intel iHD driver for
Intel(R) Gen Graphics - 24.1.2 (eab411768).
[AVHWDeviceContext @ 0x7fda54002840] Driver not found in known nonstandard
list, using standard behaviour.
[h264_qsv @ 0x55c97173c080] Decoder: output is video memory surface
[h264_qsv @ 0x55c97173c080] Use Intel(R) Media SDK to create MFX session,
the required implementation version is 1.35
[AVHWDeviceContext @ 0x7fda54007440] VAAPI driver: Intel iHD driver for
Intel(R) Gen Graphics - 24.1.2 (eab411768).
[AVHWDeviceContext @ 0x7fda54007440] Driver not found in known nonstandard
list, using standard behaviour.
[h264_qsv @ 0x55c97173c080] Decoder: output is video memory surface
[h264_qsv @ 0x55c97173c080] Use Intel(R) Media SDK to create MFX session,
the required implementation version is 1.35
[graph 0 input from stream 0:0 @ 0x7fda4c003340] w:1280 h:720 pixfmt:qsv
tb:1/1200000 fr:30000/1001 sar:1/1 csp:bt709 range:tv
[h264_qsv @ 0x55c971721900] Using input frames context (format qsv) with
h264_qsv encoder.
[h264_qsv @ 0x55c971721900] Encoder: input is video memory surface
[h264_qsv @ 0x55c971721900] Use Intel(R) Media SDK to create MFX session,
the required implementation version is 1.35
[h264_qsv @ 0x55c971721900] Using the variable bitrate (VBR) ratecontrol
method
[h264_qsv @ 0x55c971721900] MFMode:2
[h264_qsv @ 0x55c971721900] profile: avc high; level: 32
[h264_qsv @ 0x55c971721900] GopPicSize: 256; GopRefDist: 3; GopOptFlag:
closed; IdrInterval: 0
[h264_qsv @ 0x55c971721900] TargetUsage: 4; RateControlMethod: VBR
[h264_qsv @ 0x55c971721900] BufferSizeInKB: 750; InitialDelayInKB: 375;
TargetKbps: 2000; MaxKbps: 3000; BRCParamMultiplier: 1
[h264_qsv @ 0x55c971721900] NumSlice: 1; NumRefFrame: 2
[h264_qsv @ 0x55c971721900] RateDistortionOpt: OFF
[h264_qsv @ 0x55c971721900] RecoveryPointSEI: OFF
[h264_qsv @ 0x55c971721900] VDENC: OFF
[h264_qsv @ 0x55c971721900] Entropy coding: CABAC; MaxDecFrameBuffering: 2
[h264_qsv @ 0x55c971721900] NalHrdConformance: ON; SingleSeiNalUnit: ON;
VuiVclHrdParameters: OFF VuiNalHrdParameters: ON
[h264_qsv @ 0x55c971721900] FrameRateExtD: 1001; FrameRateExtN: 30000
[h264_qsv @ 0x55c971721900] IntRefType: 0; IntRefCycleSize: 0;
IntRefQPDelta: 0
[h264_qsv @ 0x55c971721900] MaxFrameSize: 353280; MaxSliceSize: 0
[h264_qsv @ 0x55c971721900] BitrateLimit: ON; MBBRC: OFF; ExtBRC: OFF
[h264_qsv @ 0x55c971721900] Trellis: auto
[h264_qsv @ 0x55c971721900] RepeatPPS: OFF; NumMbPerSlice: 0; LookAheadDS:
2x
[h264_qsv @ 0x55c971721900] AdaptiveI: OFF; AdaptiveB: OFF; BRefType:off
[h264_qsv @ 0x55c971721900] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0;
MinQPB: 0; MaxQPB: 0
[h264_qsv @ 0x55c971721900] DisableDeblockingIdc: 0
[h264_qsv @ 0x55c971721900] SkipFrame: no_skip
[h264_qsv @ 0x55c971721900] PRefType: default
[h264_qsv @ 0x55c971721900] TransformSkip: unknown
[h264_qsv @ 0x55c971721900] IntRefCycleDist: 0
[h264_qsv @ 0x55c971721900] LowDelayBRC: OFF
[h264_qsv @ 0x55c971721900] MaxFrameSizeI: 0; MaxFrameSizeP: 0
[h264_qsv @ 0x55c971721900] ScenarioInfo: 0
Output #0, h264, to 'output/0027_HD20_1.0.h264':
Metadata:
encoder : Lavf60.20.100
Stream #0:0: Video: h264, 1 reference frame, qsv(tv, bt709, progressive,
left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 2000 kb/s, 29.97 fps,
29.97 tbn
Metadata:
encoder : Lavc60.38.100 h264_qsv
Side data:
cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay:
N/A
[out#0/h264 @ 0x55c97171fc40] Starting thread...
frame= 236 fps=0.0 q=20.0 size= 1792kB time=00:00:07.80
bitrate=1880.2kbits/s speed=15.6x
frame= 506 fps=506 q=26.0 size= 3840kB time=00:00:16.81
bitrate=1870.6kbits/s speed=16.8x
frame= 775 fps=517 q=31.0 size= 6144kB time=00:00:25.79
bitrate=1951.4kbits/s speed=17.2x
frame= 1036 fps=518 q=33.0 size= 8192kB time=00:00:34.50
bitrate=1945.1kbits/s speed=17.2x
frame= 1301 fps=520 q=32.0 size= 10496kB time=00:00:43.34
bitrate=1983.8kbits/s speed=17.3x
frame= 1553 fps=518 q=30.0 size= 12544kB time=00:00:51.75
bitrate=1985.6kbits/s speed=17.2x
frame= 1807 fps=516 q=35.0 size= 14592kB time=00:01:00.22
bitrate=1984.8kbits/s speed=17.2x
frame= 2056 fps=514 q=34.0 size= 16640kB time=00:01:08.53
bitrate=1989.0kbits/s speed=17.1x
frame= 2331 fps=518 q=28.0 size= 18688kB time=00:01:17.71
bitrate=1970.0kbits/s speed=17.3x
[vf#0:0 @ 0x55c97173ac00] All consumers returned EOF
[vf#0:0 @ 0x55c97173ac00] Terminating thread with return code 0 (success)
[vist#0:0/h264 @ 0x55c97171fe80] Decoder returned EOF, finishing
[vist#0:0/h264 @ 0x55c97171fe80] Terminating thread with return code 0
(success)
[vist#0:0/h264 @ 0x55c97171fe80] All consumers of this stream are done
[in#0/h264 @ 0x55c97171a180] All consumers are done
[in#0/h264 @ 0x55c97171a180] Terminating thread with return code 0
(success)
[vost#0:0/h264_qsv @ 0x55c9717202c0] Encoder thread received EOF
[vost#0:0/h264_qsv @ 0x55c9717202c0] Terminating thread with return code 0
(success)
[out#0/h264 @ 0x55c97171fc40] All streams finished
[out#0/h264 @ 0x55c97171fc40] Terminating thread with return code 0
(success)
[AVIOContext @ 0x55c971736500] Statistics: 19927719 bytes written, 0
seeks, 77 writeouts
[out#0/h264 @ 0x55c97171fc40] Output file #0 (output/0027_HD20_1.0.h264):
[out#0/h264 @ 0x55c97171fc40] Output stream #0:0 (video): 2400 frames
encoded; 2400 packets muxed (19927719 bytes);
[out#0/h264 @ 0x55c97171fc40] Total: 2400 packets (19927719 bytes) muxed
[out#0/h264 @ 0x55c97171fc40] video:19461kB audio:0kB subtitle:0kB other
streams:0kB global headers:0kB muxing overhead: 0.000000%
frame= 2400 fps=519 q=30.0 Lsize= 19461kB time=00:01:20.01
bitrate=1992.4kbits/s speed=17.3x
[in#0/h264 @ 0x55c97171a180] Input file #0
(input/1280x720p_29.97_10mb_h264_cabac.264):
[in#0/h264 @ 0x55c97171a180] Input stream #0:0 (video): 2410 packets
read (60235271 bytes); 2402 frames decoded; 0 decode errors;
[in#0/h264 @ 0x55c97171a180] Total: 2410 packets (60235271 bytes)
demuxed
[AVIOContext @ 0x55c971723100] Statistics: 60260352 bytes read, 0 seeks
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10856#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list