Opened 21 months ago

#10311 new defect

libsvtav1 mjpeg image conversion with errors the process does not terminate and remains pending

Reported by: Matteo Secchi Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: libsvtav1 mjpeg
Cc: Matteo Secchi Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: libsvtav1 mjpeg image conversion with errors the process does not terminate and remains pending

How to reproduce:

% .\ffmpeg.exe -hwaccel auto -v 9 -loglevel 99 -stats -i .\P8200411_exclude.JPG -c:v libsvtav1 .\out.avif -y -report

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

ffmpeg version

ffmpeg version 2023-04-03-git-6941788d24-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, 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-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --ena  libavutil      58.  5.100 / 58.  5.100
  libavcodec     60.  9.100 / 60.  9.100
  libavformat    60.  4.101 / 60.  4.101
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  5.100 /  9.  5.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100

full output

ffmpeg started on 2023-04-04 at 15:06:49
Report written to "ffmpeg-20230404-150649.log"
Log level: 99
Command line:
"C:\\prg\\ffmpeg\\ffmpeg.exe" -hwaccel auto -v 9 -loglevel 99 -stats -i ".\\P8200411_exclude.JPG" -c:v libsvtav1 ".\\out.avif" -y -report
ffmpeg version 2023-04-03-git-6941788d24-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, 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-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --ena  libavutil      58.  5.100 / 58.  5.100
  libavcodec     60.  9.100 / 60.  9.100
  libavformat    60.  4.101 / 60.  4.101
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  5.100 /  9.  5.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
Splitting the commandline.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'auto'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-stats' ... matched as option 'stats' (print progress report during encoding) with argument '1'.
Reading option '-i' ... matched as input url with argument '.\P8200411_exclude.JPG'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libsvtav1'.
Reading option '.\out.avif' ... matched as output url.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
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 9.
Applying option loglevel (set logging level) with argument 99.
Applying option stats (print progress report during encoding) with argument 1.
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 url .\P8200411_exclude.JPG.
Applying option hwaccel (use HW accelerated decoding) with argument auto.
Successfully parsed a group of options.
Opening an input file: .\P8200411_exclude.JPG.
[NULL @ 000002bee8a06940] Opening '.\P8200411_exclude.JPG' for reading
[file @ 000002bee8a06d80] Setting default whitelist 'file,crypto,data'
Probing image2 score:50 size:2048
Probing jpeg_pipe score:7 size:2048
[image2 @ 000002bee8a06940] Format image2 probed with size=2048 and score=50
[image2 @ 000002bee8a06940] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:1
[mjpeg @ 000002bee8a17b40] marker=d8 avail_size_in_buf=4034397
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=e1 avail_size_in_buf=4034395
[mjpeg @ 000002bee8a17b40] marker parser used 16065 bytes (128520 bits)
[mjpeg @ 000002bee8a17b40] marker=db avail_size_in_buf=4018327
[mjpeg @ 000002bee8a17b40] index=0
[mjpeg @ 000002bee8a17b40] qscale[0]: 0
[mjpeg @ 000002bee8a17b40] index=1
[mjpeg @ 000002bee8a17b40] qscale[1]: 0
[mjpeg @ 000002bee8a17b40] marker parser used 132 bytes (1056 bits)
[mjpeg @ 000002bee8a17b40] marker=c0 avail_size_in_buf=4018193
[mjpeg @ 000002bee8a17b40] Changing bps from 0 to 8
[mjpeg @ 000002bee8a17b40] sof0: picture: 4608x3456
[mjpeg @ 000002bee8a17b40] component 0 2:1 id: 1 quant:0
[mjpeg @ 000002bee8a17b40] component 1 1:1 id: 2 quant:1
[mjpeg @ 000002bee8a17b40] component 2 1:1 id: 3 quant:1
[mjpeg @ 000002bee8a17b40] pix fmt id 21111100
[mjpeg @ 000002bee8a17b40] Format yuvj422p chosen by get_format().
[mjpeg @ 000002bee8a17b40] marker parser used 17 bytes (136 bits)
[mjpeg @ 000002bee8a17b40] marker=c4 avail_size_in_buf=4018174
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] escaping removed 1043867 bytes
[mjpeg @ 000002bee8a17b40] marker=da avail_size_in_buf=4017754
[mjpeg @ 000002bee8a17b40] marker parser used 2973887 bytes (23791096 bits)
[mjpeg @ 000002bee8a17b40] marker=df avail_size_in_buf=1037557
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=df avail_size_in_buf=1037137
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=f4 avail_size_in_buf=1037120
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=dd avail_size_in_buf=1036888
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=eb avail_size_in_buf=1036886
[mjpeg @ 000002bee8a17b40] marker parser used 39187 bytes (313496 bits)
[mjpeg @ 000002bee8a17b40] marker=d8 avail_size_in_buf=997663
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=e5 avail_size_in_buf=997328
[mjpeg @ 000002bee8a17b40] marker parser used 59443 bytes (475544 bits)
[mjpeg @ 000002bee8a17b40] marker=dd avail_size_in_buf=937767
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=fa avail_size_in_buf=937609
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=dc avail_size_in_buf=937485
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=ed avail_size_in_buf=937000
[mjpeg @ 000002bee8a17b40] marker parser used 29813 bytes (238504 bits)
[mjpeg @ 000002bee8a17b40] marker=ee avail_size_in_buf=906492
[mjpeg @ 000002bee8a17b40] marker parser used 54320 bytes (434560 bits)
[mjpeg @ 000002bee8a17b40] marker=cd avail_size_in_buf=852046
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=ef avail_size_in_buf=852015
[mjpeg @ 000002bee8a17b40] marker parser used 60472 bytes (483776 bits)
[mjpeg @ 000002bee8a17b40] marker=dc avail_size_in_buf=791272
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=e3 avail_size_in_buf=790891
[mjpeg @ 000002bee8a17b40] marker parser used 61397 bytes (491176 bits)
[mjpeg @ 000002bee8a17b40] marker=c8 avail_size_in_buf=726295
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=e5 avail_size_in_buf=726185
[mjpeg @ 000002bee8a17b40] marker parser used 56549 bytes (452392 bits)
[mjpeg @ 000002bee8a17b40] marker=c9 avail_size_in_buf=669441
[mjpeg @ 000002bee8a17b40] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a17b40] marker=f7 avail_size_in_buf=669107
[mjpeg @ 000002bee8a17b40] bits 63 is invalid
[image2 @ 000002bee8a06940] stream 0: start_time: 0 duration: 0.04
[image2 @ 000002bee8a06940] format: start_time: 0 duration: 0.04 (estimate from stream) bitrate=806879 kb/s
[image2 @ 000002bee8a06940] After avformat_find_stream_info() pos: 4034399 bytes read:4034399 seeks:0 frames:1
Input #0, image2, from '.\P8200411_exclude.JPG':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 806879 kb/s
  Stream #0:0, 1, 1/25: Video: mjpeg (JPEG LS), 1 reference frame, yuvj422p(pc, bt470bg/unknown/unknown, center), 4608x3456, 0/1, lossless, 25 fps, 25 tbr, 25 tbn
Successfully opened the file.
Parsing a group of options: output url .\out.avif.
Applying option c:v (codec name) with argument libsvtav1.
Successfully parsed a group of options.
Opening an output file: .\out.avif.
[file @ 000002bee8a11780] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
[AVHWDeviceContext @ 000002bee89ee000] Cannot load nvcuda.dll
[AVHWDeviceContext @ 000002bee89ee000] Could not dynamically load CUDA
Device creation failed: -1.
Auto hwaccel disabled: no device found.
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> av1 (libsvtav1))
Press [q] to stop, [?] for help
[vost#0:0/libsvtav1 @ 000002bee8a10300] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[in#0/image2 @ 000002bee8a04a00] EOF while reading input
[in#0/image2 @ 000002bee8a04a00] Terminating demuxer thread
[mjpeg @ 000002bee8a18200] marker=d8 avail_size_in_buf=4034397
[mjpeg @ 000002bee8a18200] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a18200] marker=e1 avail_size_in_buf=4034395
[mjpeg @ 000002bee8a18200] marker parser used 16065 bytes (128520 bits)
[mjpeg @ 000002bee8a18200] marker=db avail_size_in_buf=4018327
[mjpeg @ 000002bee8a18200] index=0
[mjpeg @ 000002bee8a18200] qscale[0]: 0
[mjpeg @ 000002bee8a18200] index=1
[mjpeg @ 000002bee8a18200] qscale[1]: 0
[mjpeg @ 000002bee8a18200] marker parser used 132 bytes (1056 bits)
[mjpeg @ 000002bee8a18200] marker=c0 avail_size_in_buf=4018193
[mjpeg @ 000002bee8a18200] sof0: picture: 4608x3456
[mjpeg @ 000002bee8a18200] component 0 2:1 id: 1 quant:0
[mjpeg @ 000002bee8a18200] component 1 1:1 id: 2 quant:1
[mjpeg @ 000002bee8a18200] component 2 1:1 id: 3 quant:1
[mjpeg @ 000002bee8a18200] pix fmt id 21111100
[mjpeg @ 000002bee8a18200] Format yuvj422p chosen by get_format().
[mjpeg @ 000002bee8a18200] marker parser used 17 bytes (136 bits)
[mjpeg @ 000002bee8a18200] marker=c4 avail_size_in_buf=4018174
[mjpeg @ 000002bee8a18200] class=0 index=0 nb_codes=12
[mjpeg @ 000002bee8a18200] class=1 index=0 nb_codes=162
[mjpeg @ 000002bee8a18200] class=0 index=1 nb_codes=12
[mjpeg @ 000002bee8a18200] class=1 index=1 nb_codes=162
[mjpeg @ 000002bee8a18200] marker parser used 418 bytes (3344 bits)
[mjpeg @ 000002bee8a18200] escaping removed 1043867 bytes
[mjpeg @ 000002bee8a18200] marker=da avail_size_in_buf=4017754
[mjpeg @ 000002bee8a18200] component: 1
[mjpeg @ 000002bee8a18200] component: 2
[mjpeg @ 000002bee8a18200] component: 3
[mjpeg @ 000002bee8a18200] error count: 64
[mjpeg @ 000002bee8a18200] error y=332 x=221
[mjpeg @ 000002bee8a18200] marker parser used 2960096 bytes (23680761 bits)
[mjpeg @ 000002bee8a18200] marker=df avail_size_in_buf=1037557
[mjpeg @ 000002bee8a18200] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a18200] marker=df avail_size_in_buf=1037137
[mjpeg @ 000002bee8a18200] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a18200] marker=f4 avail_size_in_buf=1037120
[mjpeg @ 000002bee8a18200] marker parser used 0 bytes (0 bits)
[mjpeg @ 000002bee8a18200] marker=dd avail_size_in_buf=1036888
Error while decoding stream #0:0: Invalid data found when processing input
[vost#0:0/libsvtav1 @ 000002bee8a10300] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[vost#0:0/libsvtav1 @ 000002bee8a10300] cur_dts is invalid [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
detected 8 logical cores
[graph 0 input from stream 0:0 @ 000002bee8a683c0] Setting 'video_size' to value '4608x3456'
[graph 0 input from stream 0:0 @ 000002bee8a683c0] Setting 'pix_fmt' to value '13'
[graph 0 input from stream 0:0 @ 000002bee8a683c0] Setting 'time_base' to value '1/25'
[graph 0 input from stream 0:0 @ 000002bee8a683c0] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 000002bee8a683c0] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 000002bee8a683c0] w:4608 h:3456 pixfmt:yuvj422p tb:1/25 fr:25/1 sar:0/1
[format @ 000002bee8a6bd40] Setting 'pix_fmts' to value 'yuv420p|yuv420p10le'
[auto_scale_0 @ 000002bee8a6cfc0] w:iw h:ih flags:'' interl:0
[format @ 000002bee8a6bd40] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 000002bee8a19e40] query_formats: 4 queried, 3 merged, 1 already done, 0 delayed
[auto_scale_0 @ 000002bee8a6cfc0] picking yuv420p out of 2 ref:yuvj422p alpha:0
[swscaler @ 000002bee8a7b2c0] deprecated pixel format used, make sure you did set range correctly
[auto_scale_0 @ 000002bee8a6cfc0] w:4608 h:3456 fmt:yuvj422p sar:0/1 -> w:4608 h:3456 fmt:yuv420p sar:0/1 flags:0x00000004
[out_0_0 @ 000002bee8a6bb80] EOF on sink link out_0_0:default.
Output #0, avif, to '.\out.avif':
  Metadata:
    encoder         : Lavf60.4.101
  Stream #0:0, 0, 1/12800: Video: av1, 1 reference frame (av01 / 0x31307661), yuv420p, 4608x3456 (0x0), 0/1, q=2-31, 25 fps, 12800 tbn (default)
    Metadata:
      encoder         : Lavc60.9.100 libsvtav1
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
No more output streams to write to, finishing.

It is written ... "No more output streams to write to, finishing." ... but the process remains pending and does not continue!

Change History (0)

Note: See TracTickets for help on using tickets.