Opened 3 years ago

Last modified 5 months ago

#8948 open defect

NVDEC fails on file: requires (29 + threads) surfaces; thus fails on >3 threads

Reported by: ericbg Owned by: Timo R.
Priority: important Component: undetermined
Version: git-master Keywords: cuda nvdec
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: When I try to use a CUDA decoder on a specific file, I end up getting an error "Using more than 32 (42) decode surfaces might cause nvdec to fail." and then it won't use CUDA to process the file.. The number in the brackets seems to be "29 + threads"; for example, I have a 12-thread Ryzen 3600 and when I don't specify threads it says 42 (for some reason internally 'threads' is set to 13 even though I don't have that many?), when I try -threads 4 it says 33, and when I try -threads 3 it just works! This is where the error is from: https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/nvdec.c#L401.

The problem is also file-specific; after I re-enc the file, it works just fine without any fiddling.

Computer: Ryzen 3600, Nvidia 1660Ti, Windows 10 Pro N.

How to reproduce:

ffmpeg started on 2020-10-26 at 20:41:31
Report written to "ffmpeg-20201026-204131.log"
Log level: 99
Command line:
"C:\\Program Files\\ffmpeg\\bin\\ffmpeg.exe" -v 9 -loglevel 99 -hwaccel cuda -i example.mp4 out.mp4 -report
ffmpeg version 2020-10-21-git-289e964873-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev3, 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-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwol  libavutil      56. 60.100 / 56. 60.100
  libavcodec     58.111.101 / 58.111.101
  libavformat    58. 62.100 / 58. 62.100
  libavdevice    58. 11.102 / 58. 11.102
  libavfilter     7. 88.100 /  7. 88.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Splitting the commandline.
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 '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'cuda'.
Reading option '-i' ... matched as input url with argument 'example.mp4'.
Reading option 'out.mp4' ... matched as output url.
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 report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url example.mp4.
Applying option hwaccel (use HW accelerated decoding) with argument cuda.
Successfully parsed a group of options.
Opening an input file: example.mp4.
[NULL @ 000001b20ddeee40] Opening 'example.mp4' for reading
[file @ 000001b20ddefdc0] Setting default whitelist 'file,crypto,data'
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048
Probing mp3 score:1 size:2048
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'ftyp' parent:'root' sz: 32 8 191110
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'free' parent:'root' sz: 8 40 191110
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'mdat' parent:'root' sz: 189162 48 191110
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'moov' parent:'root' sz: 1908 189210 191110
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'mvhd' parent:'moov' sz: 108 8 1900
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] time scale = 1000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'trak' parent:'moov' sz: 771 116 1900
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'tkhd' parent:'trak' sz: 92 8 763
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'edts' parent:'trak' sz: 36 100 763
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'elst' parent:'edts' sz: 28 8 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] track[0].edit_count = 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] duration=1000 time=0 rate=1.000000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'mdia' parent:'trak' sz: 635 136 763
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'mdhd' parent:'mdia' sz: 32 8 627
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'hdlr' parent:'mdia' sz: 48 40 627
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] ctype=[0][0][0][0]
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stype=vide
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'minf' parent:'mdia' sz: 547 88 627
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'vmhd' parent:'minf' sz: 20 8 539
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'dinf' parent:'minf' sz: 36 28 539
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'dref' parent:'dinf' sz: 28 8 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stbl' parent:'minf' sz: 483 64 539
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stsd' parent:'stbl' sz: 159 8 475
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] size=143 4CC=avc1 codec_type=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'avcC' parent:'stsd' sz: 37 8 57
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'btrt' parent:'stsd' sz: 20 45 57
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stts' parent:'stbl' sz: 24 167 475
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] track[0].stts.entries = 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] sample_count=25, sample_duration=1200
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stss' parent:'stbl' sz: 28 191 475
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] keyframe_count = 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stsc' parent:'stbl' sz: 28 219 475
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] track[0].stsc.entries = 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stsz' parent:'stbl' sz: 120 247 475
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] sample_size = 0 sample_count = 25
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stco' parent:'stbl' sz: 116 367 475
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 0, offset 30, dts 0, size 496, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 1, offset 2ec, dts 1200, size 2289, distance 1, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 2, offset ca7, dts 2400, size 97, distance 2, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 3, offset e2b, dts 3600, size 299, distance 3, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 4, offset 1042, dts 4800, size 175, distance 4, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 5, offset 1270, dts 6000, size 79702, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 6, offset 14b13, dts 7200, size 79697, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 7, offset 28364, dts 8400, size 242, distance 1, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 8, offset 2852c, dts 9600, size 105, distance 2, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 9, offset 28718, dts 10800, size 1368, distance 3, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 10, offset 28d18, dts 12000, size 107, distance 4, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 11, offset 28e1e, dts 13200, size 106, distance 5, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 12, offset 28f21, dts 14400, size 130, distance 6, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 13, offset 290ff, dts 15600, size 167, distance 7, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 14, offset 29270, dts 16800, size 104, distance 8, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 15, offset 2938d, dts 18000, size 157, distance 9, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 16, offset 294e1, dts 19200, size 147, distance 10, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 17, offset 296df, dts 20400, size 103, distance 11, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 18, offset 297e7, dts 21600, size 155, distance 12, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 19, offset 2992f, dts 22800, size 155, distance 13, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 20, offset 29a6b, dts 24000, size 16845, distance 14, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 21, offset 2dd90, dts 25200, size 104, distance 15, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 22, offset 2de9f, dts 26400, size 106, distance 16, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 23, offset 2dfc1, dts 27600, size 104, distance 17, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 0, sample 24, offset 2e0e2, dts 28800, size 117, distance 18, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] Processing st: 0, edit list 0 - media time: 0, duration: 30000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'trak' parent:'moov' sz: 923 887 1900
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'tkhd' parent:'trak' sz: 92 8 915
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'edts' parent:'trak' sz: 36 100 915
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'elst' parent:'edts' sz: 28 8 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] track[1].edit_count = 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] duration=1024 time=0 rate=1.000000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'mdia' parent:'trak' sz: 787 136 915
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'mdhd' parent:'mdia' sz: 32 8 779
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'hdlr' parent:'mdia' sz: 42 40 779
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] ctype=[0][0][0][0]
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stype=soun
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'minf' parent:'mdia' sz: 705 82 779
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'smhd' parent:'minf' sz: 16 8 697
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'dinf' parent:'minf' sz: 36 24 697
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'dref' parent:'dinf' sz: 28 8 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stbl' parent:'minf' sz: 645 60 697
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stsd' parent:'stbl' sz: 123 8 637
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] size=107 4CC=mp4a codec_type=1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] audio channels 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] version =0, isom =1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'esds' parent:'stsd' sz: 51 8 71
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] MPEG-4 description: tag=0x03 len=34
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] MPEG-4 description: tag=0x04 len=20
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] esds object type id 0x40
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] MPEG-4 description: tag=0x05 len=2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] Specific MPEG-4 header len=2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] mp4a config channels 1 obj 2 ext obj 0 sample rate 32000 ext sample rate 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'btrt' parent:'stsd' sz: 20 59 71
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stts' parent:'stbl' sz: 24 131 637
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] track[1].stts.entries = 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] sample_count=32, sample_duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stsc' parent:'stbl' sz: 172 155 637
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] track[1].stsc.entries = 13
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stsz' parent:'stbl' sz: 148 327 637
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] sample_size = 0 sample_count = 32
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'stco' parent:'stbl' sz: 116 475 637
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'sgpd' parent:'stbl' sz: 26 591 637
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'sbgp' parent:'stbl' sz: 28 617 637
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 0, offset 220, dts 0, size 23, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 1, offset 237, dts 1024, size 181, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 2, offset bdd, dts 2048, size 202, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 3, offset d08, dts 3072, size 291, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 4, offset f56, dts 4096, size 236, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 5, offset 10f1, dts 5120, size 197, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 6, offset 11b6, dts 6144, size 186, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 7, offset 149c6, dts 7168, size 333, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 8, offset 28264, dts 8192, size 256, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 9, offset 28456, dts 9216, size 214, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 10, offset 28595, dts 10240, size 207, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 11, offset 28664, dts 11264, size 180, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 12, offset 28c70, dts 12288, size 168, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 13, offset 28d83, dts 13312, size 155, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 14, offset 28e88, dts 14336, size 153, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 15, offset 28fa3, dts 15360, size 168, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 16, offset 2904b, dts 16384, size 180, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 17, offset 291a6, dts 17408, size 202, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 18, offset 292d8, dts 18432, size 181, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 19, offset 2942a, dts 19456, size 183, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 20, offset 29574, dts 20480, size 187, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 21, offset 2962f, dts 21504, size 176, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 22, offset 29746, dts 22528, size 161, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 23, offset 29882, dts 23552, size 173, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 24, offset 299ca, dts 24576, size 161, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 25, offset 2dc38, dts 25600, size 171, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 26, offset 2dce3, dts 26624, size 173, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 27, offset 2ddf8, dts 27648, size 167, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 28, offset 2df09, dts 28672, size 184, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 29, offset 2e029, dts 29696, size 185, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 30, offset 2e157, dts 30720, size 212, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] AVIndex stream 1, sample 31, offset 2e22b, dts 31744, size 231, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] Processing st: 1, edit list 0 - media time: 0, duration: 32768
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'udta' parent:'moov' sz: 98 1810 1900
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'meta' parent:'udta' sz: 90 8 90
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'hdlr' parent:'meta' sz: 33 8 78
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] ctype=[0][0][0][0]
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stype=mdir
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'ilst' parent:'meta' sz: 45 41 78
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] type:'[169]too' parent:'ilst' sz: 37 8 37
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] on_parse_exit_offset=191110
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] Before avformat_find_stream_info() pos: 191110 bytes read:34676 seeks:1 nb_streams:2
[h264 @ 000001b20ddf0bc0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 000001b20ddf0bc0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 0, dts 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 0, dts 0
[h264 @ 000001b20ddf0bc0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 000001b20ddf0bc0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 000001b20ddf0bc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 000001b20ddf0bc0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 000001b20ddf0bc0] Format yuv420p chosen by get_format().
[h264 @ 000001b20ddf0bc0] Reinit context to 1920x1088, pix_fmt: yuv420p
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 1, dts 40000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 0, dts 0
[aac @ 000001b20ddf68c0] skip whole frame, skip left: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0: start_time: 0 duration: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1: start_time: 0 duration: 1.024
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] format: start_time: 0 duration: 1.024 (estimate from stream) bitrate=1493 kb/s
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] After avformat_find_stream_info() pos: 567 bytes read:67444 seeks:2 frames:2
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'example.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.62.100
  Duration: 00:00:01.02, start: 0.000000, bitrate: 1493 kb/s
    Stream #0:0(und), 1, 1/30000: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p, 1920x1080 (1920x1088), 0/1, 1464 kb/s, 25 fps, 25 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      handler_name    : H.264/AVC video
    Stream #0:1(und), 1, 1/32000: Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 47 kb/s (default)
    Metadata:
      handler_name    : AAC audio
Successfully opened the file.
Parsing a group of options: output url out.mp4.
Successfully parsed a group of options.
Opening an output file: out.mp4.
[file @ 000001b20de0f300] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
[AVHWDeviceContext @ 000001b20e7003c0] Loaded lib: nvcuda.dll
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuInit
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDeviceGetCount
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDeviceGet
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDeviceGetAttribute
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDeviceGetName
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDeviceComputeCapability
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuCtxCreate_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuCtxSetLimit
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuCtxPushCurrent_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuCtxPopCurrent_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuCtxDestroy_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuMemAlloc_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuMemAllocPitch_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuMemsetD8Async
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuMemFree_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuMemcpy2D_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuMemcpy2DAsync_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuGetErrorName
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuGetErrorString
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuCtxGetDevice
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDevicePrimaryCtxRetain
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDevicePrimaryCtxRelease
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDevicePrimaryCtxSetFlags
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDevicePrimaryCtxGetState
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDevicePrimaryCtxReset
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuStreamCreate
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuStreamQuery
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuStreamSynchronize
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuStreamDestroy_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuStreamAddCallback
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuEventCreate
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuEventDestroy_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuEventSynchronize
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuEventQuery
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuEventRecord
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuLaunchKernel
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuLinkCreate
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuLinkAddData
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuLinkComplete
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuLinkDestroy
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuModuleLoadData
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuModuleUnload
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuModuleGetFunction
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuTexObjectCreate
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuTexObjectDestroy
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuGLGetDevices_v2
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuGraphicsGLRegisterImage
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuGraphicsUnregisterResource
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuGraphicsMapResources
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuGraphicsUnmapResources
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuGraphicsSubResourceGetMappedArray
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDeviceGetUuid
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuImportExternalMemory
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDestroyExternalMemory
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuExternalMemoryGetMappedBuffer
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuExternalMemoryGetMappedMipmappedArray
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuMipmappedArrayGetLevel
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuMipmappedArrayDestroy
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuImportExternalSemaphore
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuDestroyExternalSemaphore
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuSignalExternalSemaphoresAsync
[AVHWDeviceContext @ 000001b20e7003c0] Loaded sym: cuWaitExternalSemaphoresAsync
[AVHWDeviceContext @ 000001b20e7003c0] Calling cu->cuInit(0)
[AVHWDeviceContext @ 000001b20e7003c0] Calling cu->cuDeviceGet(&hwctx->internal->cuda_device, device_idx)
[AVHWDeviceContext @ 000001b20e7003c0] Calling cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags, hwctx->internal->cuda_device)
[AVHWDeviceContext @ 000001b20e7003c0] Calling cu->cuCtxPopCurrent(&dummy)
detected 12 logical cores
[h264 @ 000001b20e2b99c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 000001b20e2b99c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e2b99c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[aac @ 000001b20e6ff4c0] skip whole frame, skip left: 0
[h264 @ 000001b20e2b99c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e2b99c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 1, dts 40000
[h264 @ 000001b20e2b99c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 1, dts 32000
[h264 @ 000001b20e2b99c0] Format cuda chosen by get_format().
[h264 @ 000001b20e2b99c0] Format cuda requires hwaccel initialisation.
[h264 @ 000001b20e2b99c0] Loaded lib: nvcuvid.dll
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidGetDecoderCaps
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidCreateDecoder
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidDestroyDecoder
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidDecodePicture
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidGetDecodeStatus
[graph_1_in_0_1 @ 000001b20e6fe540] Setting 'time_base' to value '1/32000'
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidReconfigureDecoder
[graph_1_in_0_1 @ 000001b20e6fe540] Setting 'sample_rate' to value '32000'
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidMapVideoFrame64
[graph_1_in_0_1 @ 000001b20e6fe540] Setting 'sample_fmt' to value 'fltp'
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidUnmapVideoFrame64
[graph_1_in_0_1 @ 000001b20e6fe540] Setting 'channel_layout' to value '0x4'
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidCtxLockCreate
[graph_1_in_0_1 @ 000001b20e6fe540] tb:1/32000 samplefmt:fltp samplerate:32000 chlayout:0x4
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidCtxLockDestroy
[format_out_0_1 @ 000001b20e6fe740] Setting 'sample_fmts' to value 'fltp'
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidCtxLock
[format_out_0_1 @ 000001b20e6fe740] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidCtxUnlock
[AVFilterGraph @ 000001b20e276880] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidCreateVideoSource
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidCreateVideoSourceW
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidDestroyVideoSource
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidSetVideoSourceState
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidGetVideoSourceState
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 1, dts 40000
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidGetSourceVideoFormat
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 2, dts 64000
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidGetSourceAudioFormat
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidCreateVideoParser
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidParseVideoData
[h264 @ 000001b20e2b99c0] Loaded sym: cuvidDestroyVideoParser
[h264 @ 000001b20e2b99c0] Calling decoder->cudl->cuCtxPushCurrent(decoder->cuda_ctx)
[h264 @ 000001b20e2b99c0] Calling decoder->cvdl->cuvidGetDecoderCaps(&caps)
[h264 @ 000001b20e2b99c0] NVDEC capabilities:
[h264 @ 000001b20e2b99c0] format supported: yes, max_mb_count: 65536
[h264 @ 000001b20e2b99c0] min_width: 48, max_width: 4096
[h264 @ 000001b20e2b99c0] min_height: 16, max_height: 4096
[h264 @ 000001b20e2b99c0] Calling decoder->cvdl->cuvidCreateDecoder(&decoder->decoder, params)
[h264 @ 000001b20e2b99c0] decoder->cvdl->cuvidCreateDecoder(&decoder->decoder, params) failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
[h264 @ 000001b20e2b99c0] Calling decoder->cudl->cuCtxPopCurrent(&dummy)
[h264 @ 000001b20e2b99c0] Using more than 32 (42) decode surfaces might cause nvdec to fail.
[h264 @ 000001b20e2b99c0] Try lowering the amount of threads. Using 13 right now.
[h264 @ 000001b20e2b99c0] Failed setup for format cuda: hwaccel initialisation returned error.
[h264 @ 000001b20e2b99c0] Format cuda not usable, retrying get_format() without it.
[h264 @ 000001b20e2b99c0] Format yuv420p chosen by get_format().
[h264 @ 000001b20e2b99c0] Reinit context to 1920x1088, pix_fmt: yuv420p
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20de61980] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 2, dts 80000
[h264 @ 000001b20de61980] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 2, dts 64000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 2, dts 80000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 3, dts 96000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e2ba8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[h264 @ 000001b20e2ba8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 3, dts 120000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 3, dts 96000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 3, dts 120000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 4, dts 128000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20de15b00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 4, dts 160000
[h264 @ 000001b20de15b00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 4, dts 128000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 4, dts 160000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 5, dts 160000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20de16380] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 5, dts 200000
[h264 @ 000001b20de16380] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 5, dts 160000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 5, dts 200000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 6, dts 192000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 5, dts 200000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 7, dts 224000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 6, dts 240000
[h264 @ 000001b20e7aef80] nal_unit_type: 7(SPS), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 7, dts 224000
[h264 @ 000001b20e7aef80] nal_unit_type: 8(PPS), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e7aef80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 6, dts 240000
[h264 @ 000001b20e7aef80] nal_unit_type: 5(IDR), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 8, dts 256000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e7ae680] nal_unit_type: 7(SPS), nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 7, dts 280000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 8, dts 256000
[h264 @ 000001b20e7ae680] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 000001b20e7ae680] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 000001b20e7ae680] nal_unit_type: 5(IDR), nal_ref_idc: 3
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 7, dts 280000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 9, dts 288000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e7acb00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 8, dts 320000
[h264 @ 000001b20e7acb00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 9, dts 288000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 8, dts 320000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 10, dts 320000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e7aeb00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 9, dts 360000
[h264 @ 000001b20e7aeb00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 10, dts 320000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 9, dts 360000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 11, dts 352000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 9, dts 360000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 12, dts 384000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e7af400] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 10, dts 400000
[h264 @ 000001b20e7af400] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 12, dts 384000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 10, dts 400000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 13, dts 416000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e7af8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 11, dts 440000
[h264 @ 000001b20e7af8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 13, dts 416000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 11, dts 440000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 14, dts 448000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 000001b20e7ac680] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 12, dts 480000
[h264 @ 000001b20e7ac680] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 14, dts 448000
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 12, dts 480000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 15, dts 480000
[h264 @ 000001b20e7acf80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20e7acf80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[graph 0 input from stream 0:0 @ 000001b20e6fc400] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 000001b20e6fc400] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 000001b20e6fc400] Setting 'time_base' to value '1/30000'
[graph 0 input from stream 0:0 @ 000001b20e6fc400] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 000001b20e6fc400] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 000001b20e6fc400] w:1920 h:1080 pixfmt:yuv420p tb:1/30000 fr:25/1 sar:0/1
[format @ 000001b2205ee940] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21|yuv420p10le|yuv422p10le|yuv444p10le|nv20le|gray|gray10le'
[AVFilterGraph @ 000001b20de634c0] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
[libx264 @ 000001b20de0d280] using mv_range_thread = 24
[libx264 @ 000001b20de0d280] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001b20de0d280] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000001b20de0d280] 264 - core 161 r3018 db0d417 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.62.100
    Stream #0:0(und), 0, 1/12800: Video: h264 (libx264), 1 reference frame (avc1 / 0x31637661), yuv420p, 1920x1080, 0/1, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      handler_name    : H.264/AVC video
      encoder         : Lavc58.111.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    Stream #0:1(und), 0, 1/32000: Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, fltp, delay 1024, 69 kb/s (default)
    Metadata:
      handler_name    : AAC audio
      encoder         : Lavc58.111.101 aac
Clipping frame in rate conversion by 0.000008
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 13, dts 520000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 15, dts 480000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 13, dts 520000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 16, dts 512000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 13, dts 520000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 17, dts 544000
[h264 @ 000001b20e2b99c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20e2b99c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 14, dts 560000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 17, dts 544000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 14, dts 560000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 18, dts 576000
[h264 @ 000001b20de61980] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20de61980] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 15, dts 600000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 18, dts 576000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 15, dts 600000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 19, dts 608000
[h264 @ 000001b20e2ba8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20e2ba8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 16, dts 640000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 19, dts 608000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 16, dts 640000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 20, dts 640000
[h264 @ 000001b20de15b00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20de15b00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 17, dts 680000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 20, dts 640000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 17, dts 680000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 21, dts 672000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 17, dts 680000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 22, dts 704000
[h264 @ 000001b20de16380] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20de16380] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 18, dts 720000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 22, dts 704000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 18, dts 720000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 23, dts 736000
[h264 @ 000001b20e7aef80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20e7aef80] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 19, dts 760000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 23, dts 736000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 19, dts 760000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 24, dts 768000
[h264 @ 000001b20e7ae680] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20e7ae680] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 20, dts 800000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 24, dts 768000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 20, dts 800000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 25, dts 800000
[h264 @ 000001b20e7acb00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000001b20e7acb00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 21, dts 840000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 25, dts 800000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 21, dts 840000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 26, dts 832000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 21, dts 840000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 27, dts 864000
[h264 @ 000001b20e7aeb00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20e7aeb00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 22, dts 880000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 27, dts 864000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 22, dts 880000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 28, dts 896000
[h264 @ 000001b20e7af400] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20e7af400] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 23, dts 920000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 28, dts 896000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 23, dts 920000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 29, dts 928000
[h264 @ 000001b20e7af8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20e7af8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 24, dts 960000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 29, dts 928000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 0, sample 24, dts 960000
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 30, dts 960000
[h264 @ 000001b20e7ac680] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
[h264 @ 000001b20e7ac680] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 30, dts 960000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b20ddeee40] stream 1, sample 31, dts 992000
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[out_0_0 @ 000001b2205ee840] EOF on sink link out_0_0:default.
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:1] (this is harmless if it occurs once at the start per stream)
[out_0_1 @ 000001b20e6fe640] EOF on sink link out_0_1:default.
No more output streams to write to, finishing.
[libx264 @ 000001b20de0d280] scene cut at 5 Icost:4846789 Pcost:4779942 ratio:0.0138 bias:0.0250 gop:5 (imb:7684 pmb:104)
[libx264 @ 000001b20de0d280] frame=   0 QP=1.86 NAL=3 Slice:I Poc:0   I:8160 P:0    SKIP:0    size=439 bytes
[libx264 @ 000001b20de0d280] frame=   1 QP=26.46 NAL=2 Slice:P Poc:8   I:127  P:0    SKIP:8033 size=1287 bytes
[libx264 @ 000001b20de0d280] frame=   2 QP=22.05 NAL=2 Slice:B Poc:4   I:0    P:29   SKIP:8130 size=141 bytes
[libx264 @ 000001b20de0d280] frame=   3 QP=13.00 NAL=0 Slice:B Poc:2   I:0    P:23   SKIP:8137 size=83 bytes
[libx264 @ 000001b20de0d280] frame=   4 QP=13.00 NAL=0 Slice:B Poc:6   I:0    P:7    SKIP:8153 size=79 bytes
[libx264 @ 000001b20de0d280] frame=   5 QP=13.43 NAL=2 Slice:I Poc:10  I:8160 P:0    SKIP:0    size=63511 bytes
[libx264 @ 000001b20de0d280] frame=   6 QP=16.42 NAL=2 Slice:P Poc:18  I:2724 P:292  SKIP:5144 size=2631 bytes
[libx264 @ 000001b20de0d280] frame=   7 QP=12.84 NAL=2 Slice:B Poc:14  I:77   P:2476 SKIP:5607 size=1859 bytes
[libx264 @ 000001b20de0d280] frame=   8 QP=18.86 NAL=0 Slice:B Poc:12  I:0    P:251  SKIP:7909 size=253 bytes
[libx264 @ 000001b20de0d280] frame=   9 QP=13.83 NAL=0 Slice:B Poc:16  I:2    P:2340 SKIP:5818 size=1020 bytes
[libx264 @ 000001b20de0d280] frame=  10 QP=17.11 NAL=2 Slice:P Poc:26  I:27   P:35   SKIP:8098 size=253 bytes
[libx264 @ 000001b20de0d280] frame=  11 QP=31.00 NAL=2 Slice:B Poc:22  I:17   P:89   SKIP:8054 size=177 bytes
[libx264 @ 000001b20de0d280] frame=  12 QP=33.00 NAL=0 Slice:B Poc:20  I:1    P:55   SKIP:8104 size=109 bytes
[libx264 @ 000001b20de0d280] frame=  13 QP=33.00 NAL=0 Slice:B Poc:24  I:2    P:45   SKIP:8112 size=111 bytes
[libx264 @ 000001b20de0d280] frame=  14 QP=16.14 NAL=2 Slice:P Poc:34  I:7    P:14   SKIP:8139 size=163 bytes
[libx264 @ 000001b20de0d280] frame=  15 QP=31.00 NAL=2 Slice:B Poc:30  I:8    P:69   SKIP:8083 size=149 bytes
[libx264 @ 000001b20de0d280] frame=  16 QP=33.00 NAL=0 Slice:B Poc:28  I:1    P:34   SKIP:8125 size=98 bytes
[libx264 @ 000001b20de0d280] frame=  17 QP=33.00 NAL=0 Slice:B Poc:32  I:1    P:35   SKIP:8124 size=96 bytes
[libx264 @ 000001b20de0d280] frame=  18 QP=20.82 NAL=2 Slice:P Poc:42  I:1484 P:187  SKIP:6489 size=11796 bytes
[libx264 @ 000001b20de0d280] frame=  19 QP=21.91 NAL=2 Slice:B Poc:38  I:21   P:582  SKIP:7557 size=406 bytes
[libx264 @ 000001b20de0d280] frame=  20 QP=33.00 NAL=0 Slice:B Poc:36  I:2    P:99   SKIP:8059 size=150 bytes
[libx264 @ 000001b20de0d280] frame=  21 QP=29.77 NAL=0 Slice:B Poc:40  I:3    P:691  SKIP:7466 size=532 bytes
[libx264 @ 000001b20de0d280] frame=  22 QP=17.81 NAL=2 Slice:P Poc:48  I:18   P:100  SKIP:8042 size=250 bytes
[libx264 @ 000001b20de0d280] frame=  23 QP=32.00 NAL=2 Slice:B Poc:44  I:2    P:244  SKIP:7914 size=320 bytes
[libx264 @ 000001b20de0d280] frame=  24 QP=33.00 NAL=0 Slice:B Poc:46  I:0    P:93   SKIP:8067 size=160 bytes
Not writing 'clli' atom. No content light level info.
Not writing 'mdcv' atom. Missing mastering metadata.
frame=   25 fps=0.0 q=-1.0 Lsize=      95kB time=00:00:01.02 bitrate= 759.6kbits/s speed=3.07x    
video:85kB audio:8kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.287073%
Input file #0 (example.mp4):
  Input stream #0:0 (video): 25 packets read (183077 bytes); 25 frames decoded; 
  Input stream #0:1 (audio): 32 packets read (6077 bytes); 31 frames decoded (31744 samples); 
  Total: 57 packets (189154 bytes) demuxed
Output file #0 (out.mp4):
  Output stream #0:0 (video): 25 frames encoded; 25 packets muxed (86763 bytes); 
  Output stream #0:1 (audio): 31 frames encoded (31744 samples); 32 packets muxed (8293 bytes); 
  Total: 57 packets (95056 bytes) muxed
56 frames successfully decoded, 0 decoding errors
[AVHWDeviceContext @ 000001b20e7003c0] Calling cu->cuCtxDestroy(hwctx->cuda_ctx)
[AVIOContext @ 000001b20e2b6d00] Statistics: 2 seeks, 4 writeouts
[libx264 @ 000001b20de0d280] frame I:2     Avg QP: 7.64  size: 31975
[libx264 @ 000001b20de0d280] frame P:6     Avg QP:19.13  size:  2730
[libx264 @ 000001b20de0d280] frame B:17    Avg QP:25.72  size:   338
[libx264 @ 000001b20de0d280] consecutive B-frames:  8.0%  0.0% 12.0% 80.0%
[libx264 @ 000001b20de0d280] mb I  I16..4: 78.5% 13.2%  8.4%
[libx264 @ 000001b20de0d280] mb P  I16..4:  1.9%  6.2%  0.8%  P16..4:  1.1%  0.1%  0.1%  0.0%  0.0%    skip:89.8%
[libx264 @ 000001b20de0d280] mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  2.2%  0.0%  0.0%  direct: 3.0%  skip:94.7%  L0:50.3% L1:49.7% BI: 0.0%
[libx264 @ 000001b20de0d280] 8x8 transform intra:25.2% inter:49.8%
[libx264 @ 000001b20de0d280] coded y,uvDC,uvAC intra: 7.5% 1.4% 0.6% inter: 0.1% 2.3% 0.0%
[libx264 @ 000001b20de0d280] i16 v,h,dc,p: 92%  7%  1%  0%
[libx264 @ 000001b20de0d280] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42%  5% 50%  0%  0%  0%  0%  0%  1%
[libx264 @ 000001b20de0d280] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50% 17% 13%  3%  3%  4%  3%  4%  3%
[libx264 @ 000001b20de0d280] i8c dc,h,v,p: 93%  5%  2%  0%
[libx264 @ 000001b20de0d280] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001b20de0d280] ref P L0: 86.6%  7.8%  5.6%
[libx264 @ 000001b20de0d280] ref B L0: 87.9% 11.9%  0.3%
[libx264 @ 000001b20de0d280] ref B L1: 97.2%  2.8%
[libx264 @ 000001b20de0d280] kb/s:688.58
[aac @ 000001b20de0ed40] Qavg: 31871.598
[AVIOContext @ 000001b20ddf8040] Statistics: 225738 bytes read, 2 seeks

Attachments (2)

example.mp4 (186.6 KB ) - added by ericbg 3 years ago.
A video with which this fails.
ffmpeg-20201026-204131.log (57.4 KB ) - added by ericbg 3 years ago.
The full logfile.

Download all attachments as: .zip

Change History (13)

by ericbg, 3 years ago

Attachment: example.mp4 added

A video with which this fails.

by ericbg, 3 years ago

Attachment: ffmpeg-20201026-204131.log added

The full logfile.

comment:1 by Balling, 3 years ago

Status: newopen

This thingy has 11 Ref Frames in CABAC, while the maximum is 4 (and not standard 5), allowed by the avc standards for 5 profile. I mean... You can have more. In profile 6.1 AVC...

Last edited 3 years ago by Balling (previous) (diff)

in reply to:  1 comment:2 by Balling, 3 years ago

Replying to Balling:

This thingy has 11 Ref Frames in CABAC, while the maximum is 4 (and not standard 5), allowed by the avc standards for 5 profile. I mean... You can have more. In profile 6.1 AVC...

Oopsie, disregard that, for 1920×1080 maximum of 72.3 fps with up to 13 refs are supported for profile 5. See wikipedia for AVC.

Last edited 3 years ago by Balling (previous) (diff)

comment:3 by Balling, 3 years ago

So this is almost certainly a bug. This video https://forum.doom9.org/showthread.php?p=1939909#post1939909 with 16 reference on 4K High@L5.1 frames and 120 fps will need -threads 10 to print

Using more than 32 (33) decode surfaces might cause nvdec to fail.

So something is very strange here. And yeah, it may be due to .264 4K at Level 5.1 only supports up to 5 ref frames, so something is wrong here.

Last edited 3 years ago by Balling (previous) (diff)

comment:4 by Balling, 3 years ago

Summary: CUDA decoder fails on certain files.NVDEC fails on file: requires (29 + threads) surfaces; thus fails on >3 threads

A mechanism to reduce amount of auto threads should be introduced so that this does not happen. This happens due to amount of reference frames in CABAC. I also found a very nice 16 CABAC frames example that was long time ago used for testing (Samsung.Demo.Oceanic.Life-1080p30fpsRef16-40Mbps.mkv needs -threads 10 to fail too): https://www.mmnt.net/db/0/0/helpedia.com/pub/multimedia/testvideos/x264/2011%20-%2002%20-%20H.264%20CPU%20DXVA%20codec%20comparison%20-%20Core2Duo%20vs%20UVD%202.2

Also see https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210810023754.2905-1-ameer.jalil6@gmail.com/

I also found the original Blu-ray AVC (just 4 frames) sample.

Last edited 3 years ago by Balling (previous) (diff)

comment:5 by Balling, 3 years ago

Ah, yes, totally forgot. "-c:v h264_cuvid -i example.mp4" decoder does not fail so cuvid decoders are not affected (md5 is 2de8cc99de33435df9914700d5bbcba6). Oh and also annex B does not help.

Last edited 15 months ago by Balling (previous) (diff)

comment:6 by Balling, 3 years ago

There is now a RFC patch here that sets threads to 1: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210929170134.29381-1-timo@rothenpieler.org/

I do not agree since 1) qsv needs two threads or it will fail 2) threads do affect the speed, that part is false since h264 decoder is USED TO PARSE STUFF (do threads used for h264 affect hwaccel?) 3) There is a simpler patch above (did not check) https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210810023754.2905-1-ameer.jalil6@gmail.com/

comment:7 by Balling, 22 months ago

Owner: set to Timo R.

Are you going to fix this?

comment:8 by Balling, 15 months ago

Priority: normalimportant

it says to lower threads but it still fails. It does not try to lower the amount of threads.

Why cannot that be automatic???

[h264 @ 000002ab2312dcc0] Try lowering the amount of threads. Using 4 right now.

So now:

[h264 @ 00000244c19223c0] decoder->cvdl->cuvidCreateDecoder(&decoder->decoder, params) failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
[h264 @ 00000244c19223c0] Using more than 32 (34) decode surfaces might cause nvdec to fail.
[h264 @ 00000244c19223c0] Try lowering the amount of threads. Using 5 right now.
[h264 @ 00000244c19223c0] Failed setup for format cuda: hwaccel initialisation returned error.
Last edited 15 months ago by Balling (previous) (diff)

comment:10 by Balling, 10 months ago

Last edited 10 months ago by Balling (previous) (diff)

comment:11 by Balling, 5 months ago

Keywords: cuda nvdec added
Note: See TracTickets for help on using tickets.