Audio is way out of sync. Video freezes. Kindly look at the log (attached due to webmail size limit) and tell me what I did wrong. Note: Previous snipping did not snip the chapters. Ignore that for now.
Thank you, Mark.
ffmpeg started on 2023-09-29 at 14:01:18 Report written to "ffmpeg-20230929-140118.log" Log level: 48 Command line: "C:\\CMD & tiny apps\\ffmpeg\\ffmpeg.exe" -report -i "c:\\1.mkv" -bsf:v "setts=time_base=1/90000:pts=N*90000*1001/24000:dts=N*90000*1001/24000" -bsf:a "setts=time_base=1/90000:pts=N*48000*1001/24000:dts=N*48000*1001/24000" -map 0 -codec copy -sn -dn "c:\\foo.mp4" ffmpeg version 2023-08-10-git-d9d5695390-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-libaribcaption --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-libharfbuzz --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-lib libavutil 58. 16.101 / 58. 16.101 libavcodec 60. 23.100 / 60. 23.100 libavformat 60. 10.100 / 60. 10.100 libavdevice 60. 2.101 / 60. 2.101 libavfilter 9. 10.100 / 9. 10.100 libswscale 7. 3.100 / 7. 3.100 libswresample 4. 11.100 / 4. 11.100 libpostproc 57. 2.100 / 57. 2.100 Splitting the commandline. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Reading option '-i' ... matched as output url with argument 'c:\1.mkv'. Reading option '-bsf:v' ... matched as option 'bsf' (A comma-separated list of bitstream filters) with argument 'setts=time_base=1/90000:pts=N*90000*1001/24000:dts=N*90000*1001/24000'. Reading option '-bsf:a' ... matched as option 'bsf' (A comma-separated list of bitstream filters) with argument 'setts=time_base=1/90000:pts=N*48000*1001/24000:dts=N*48000*1001/24000'. Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'. Reading option '-codec' ... matched as option 'codec' (codec name) with argument 'copy'. Reading option '-sn' ... matched as option 'sn' (disable subtitle) with argument '1'. Reading option '-dn' ... matched as option 'dn' (disable data) with argument '1'. Reading option 'c:\foo.mp4' ... matched as output url. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Successfully parsed a group of options. Parsing a group of options: input url c:\1.mkv. Successfully parsed a group of options. Opening an input file: c:\1.mkv. [AVFormatContext @ 0000000000558180] Opening 'c:\1.mkv' for reading [file @ 0000000000558800] Setting default whitelist 'file,crypto,data' [matroska,webm @ 0000000000558180] Format matroska,webm probed with size=2048 and score=100 st:0 removing common factor 1000000 from timebase st:1 removing common factor 1000000 from timebase [matroska,webm @ 0000000000558180] Before avformat_find_stream_info() pos: 5322 bytes read:32768 seeks:0 nb_streams:2 [hevc @ 000000000055edc0] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0 [hevc @ 000000000055edc0] Decoding VPS [hevc @ 000000000055edc0] Main profile bitstream [hevc @ 000000000055edc0] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0 [hevc @ 000000000055edc0] Decoding SPS [hevc @ 000000000055edc0] Main profile bitstream [hevc @ 000000000055edc0] Decoding VUI [hevc @ 000000000055edc0] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0 [hevc @ 000000000055edc0] Decoding PPS [hevc @ 000000000055edc0] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0 [hevc @ 000000000055edc0] Decoding SEI For transform of length 32, inverse, mdct_float, flags: [aligned, out_of_place], found 2 matches: 1: mdct_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: 96 2: mdct_naive_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: -130976 For transform of length 16, inverse, fft_float, flags: [aligned, inplace, preshuf], found 3 matches: 1: fft16_ns_float_avx - type: fft_float, len: 16, factor: 2, flags: [aligned, inplace, out_of_place, preshuf], prio: 480 2: fft_pfa_ns_float_c - type: fft_float, len: [6, ∞], factors[2]: [7, 5, 3, 2, any], flags: [unaligned, inplace, out_of_place, preshuf], prio: 112 3: fft16_ns_float_c - type: fft_float, len: 16, factor: 2, flags: [unaligned, inplace, out_of_place, preshuf], prio: 96 Transform tree: mdct_inv_float_c - type: mdct_float, len: 32, factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only] fft16_ns_float_avx - type: fft_float, len: 16, factor: 2, flags: [aligned, inplace, out_of_place, preshuf] For transform of length 64, inverse, mdct_float, flags: [aligned, out_of_place], found 2 matches: 1: mdct_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: 96 2: mdct_naive_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: -130976 For transform of length 32, inverse, fft_float, flags: [aligned, inplace, preshuf], found 3 matches: 1: fft32_ns_float_avx - type: fft_float, len: 32, factor: 2, flags: [aligned, inplace, out_of_place, preshuf], prio: 480 2: fft_pfa_ns_float_c - type: fft_float, len: [6, ∞], factors[2]: [7, 5, 3, 2, any], flags: [unaligned, inplace, out_of_place, preshuf], prio: 112 3: fft32_ns_float_c - type: fft_float, len: 32, factor: 2, flags: [unaligned, inplace, out_of_place, preshuf], prio: 96 Transform tree: mdct_inv_float_c - type: mdct_float, len: 64, factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only] fft32_ns_float_avx - type: fft_float, len: 32, factor: 2, flags: [aligned, inplace, out_of_place, preshuf] [matroska,webm @ 0000000000558180] first_dts 0 not matching first dts NOPTS (pts 0, duration 41) in the queue [matroska,webm @ 0000000000558180] All info found [matroska,webm @ 0000000000558180] After avformat_find_stream_info() pos: 7342 bytes read:32768 seeks:0 frames:5 Input #0, matroska,webm, from 'c:\1.mkv': Metadata: COMPATIBLE_BRANDS: isomiso2mp41 MAJOR_BRAND : isom MINOR_VERSION : 512 ENCODER : Lavf60.10.100 Duration: 01:33:12.63, start: 0.000000, bitrate: 15084 kb/s Chapters: Chapter #0:0: start 0.000000, end 483.692000 Metadata: title : Chapter 1 Chapter #0:1: start 483.692000, end 824.407000 Metadata: title : Chapter 2 Chapter #0:2: start 824.407000, end 1217.508000 Metadata: title : Chapter 3 Chapter #0:3: start 1217.508000, end 1419.919000 Metadata: title : Chapter 4 Chapter #0:4: start 1419.919000, end 1690.814000 Metadata: title : Chapter 5 Chapter #0:5: start 1690.814000, end 2208.998000 Metadata: title : Chapter 6 Chapter #0:6: start 2208.998000, end 2559.182000 Metadata: title : Chapter 7 Chapter #0:7: start 2559.182000, end 3068.941000 Metadata: title : Chapter 8 Chapter #0:8: start 3068.941000, end 3325.656000 Metadata: title : Chapter 9 Chapter #0:9: start 3325.656000, end 3786.533000 Metadata: title : Chapter 10 Chapter #0:10: start 3786.533000, end 4270.016000 Metadata: title : Chapter 11 Chapter #0:11: start 4270.016000, end 4581.577000 Metadata: title : Chapter 12 Chapter #0:12: start 4581.577000, end 5110.188000 Metadata: title : Chapter 13 Chapter #0:13: start 5110.188000, end 5395.765000 Metadata: title : Chapter 14 Chapter #0:14: start 5395.765000, end 5590.835000 Metadata: title : Chapter 15 Chapter #0:15: start 5590.835000, end 5772.725000 Metadata: title : Chapter 16 Chapter #0:16: start 5772.725000, end 6220.172000 Metadata: title : Chapter 17 Chapter #0:17: start 6220.172000, end 6713.707000 Metadata: title : Chapter 18 Chapter #0:18: start 6713.707000, end 7248.533000 Metadata: title : Chapter 19 Chapter #0:19: start 7248.533000, end 7410.778000 Metadata: title : Chapter 20 Chapter #0:20: start 7410.778000, end 7801.377000 Metadata: title : Chapter 21 Chapter #0:21: start 7801.377000, end 8073.941000 Metadata: title : Chapter 22 Chapter #0:22: start 8073.941000, end 8573.065000 Metadata: title : Chapter 23 Chapter #0:23: start 8573.065000, end 9194.102000 Metadata: title : Chapter 24 Chapter #0:24: start 9194.102000, end 9565.431000 Metadata: title : Chapter 25 Chapter #0:25: start 9565.431000, end 9794.201000 Metadata: title : Chapter 26 Chapter #0:26: start 9794.201000, end 10291.740000 Metadata: title : Chapter 27 Chapter #0:27: start 10291.740000, end 10471.962000 Metadata: title : Chapter 28 Chapter #0:28: start 10471.962000, end 10880.036000 Metadata: title : Chapter 29 Chapter #0:29: start 10880.036000, end 11317.515000 Metadata: title : Chapter 30 Chapter #0:30: start 11317.515000, end 11440.971000 Metadata: title : Chapter 31 Chapter #0:31: start 11440.971000, end 11845.334000 Metadata: title : Chapter 32 Chapter #0:32: start 11845.334000, end 12473.461000 Metadata: title : Chapter 33 Chapter #0:33: start 12473.461000, end 12748.569000 Metadata: title : Chapter 34 Chapter #0:34: start 12748.569000, end 12957.403000 Metadata: title : Chapter 35 Chapter #0:35: start 12957.403000, end 13495.565000 Metadata: title : Chapter 36 Chapter #0:36: start 13495.565000, end 13903.598000 Metadata: title : Chapter 37 Chapter #0:37: start 13903.598000, end 14084.153000 Metadata: title : Chapter 38 Chapter #0:38: start 14084.153000, end 14684.879000 Metadata: title : Chapter 39 Chapter #0:39: start 14684.879000, end 14866.685000 Metadata: title : Chapter 40 Chapter #0:40: start 14866.685000, end 15364.307000 Metadata: title : Chapter 41 Chapter #0:41: start 15364.307000, end 16316.342000 Metadata: title : Chapter 42 Chapter #0:42: start 16316.342000, end 16534.685000 Metadata: title : Chapter 43 Chapter #0:43: start 16534.685000, end 16793.860000 Metadata: title : Chapter 44 Chapter #0:44: start 16793.860000, end 17223.623000 Metadata: title : Chapter 45 Chapter #0:45: start 17223.623000, end 17339.322000 Metadata: title : Chapter 46 Chapter #0:46: start 17339.322000, end 17687.670000 Metadata: title : Chapter 47 Chapter #0:47: start 17687.670000, end 17936.961000 Metadata: title : Chapter 48 Chapter #0:48: start 17936.961000, end 18127.443000 Metadata: title : Chapter 49 Chapter #0:49: start 18127.443000, end 18606.963000 Metadata: title : Chapter 50 Chapter #0:50: start 18606.963000, end 18951.057000 Metadata: title : Chapter 51 Chapter #0:51: start 18951.057000, end 19125.732000 Metadata: title : Chapter 52 Chapter #0:52: start 19125.732000, end 19306.412000 Metadata: title : Chapter 53 Stream #0:0, 4, 1/1000: Video: hevc (Main), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default) Metadata: HANDLER_NAME : VideoHandler VENDOR_ID : [0][0][0][0] DURATION : 01:33:12.629000000 Stream #0:1(swe), 1, 1/1000: Audio: dts (DTS), 48000 Hz, mono, fltp, 768 kb/s (default) Metadata: HANDLER_NAME : Mono VENDOR_ID : [0][0][0][0] DURATION : 01:33:12.544000000 Successfully opened the file. Parsing a group of options: output url c:\foo.mp4. Applying option bsf:v (A comma-separated list of bitstream filters) with argument setts=time_base=1/90000:pts=N*90000*1001/24000:dts=N*90000*1001/24000. Applying option bsf:a (A comma-separated list of bitstream filters) with argument setts=time_base=1/90000:pts=N*48000*1001/24000:dts=N*48000*1001/24000. Applying option map (set input stream mapping) with argument 0. Applying option codec (codec name) with argument copy. Applying option sn (disable subtitle) with argument 1. Applying option dn (disable data) with argument 1. Successfully parsed a group of options. Opening an output file: c:\foo.mp4. [out#0/mp4 @ 0000000000397540] Adding streams from explicit maps... [vost#0:0/copy @ 00000000005b0080] Created video stream from input stream 0:0 [setts_bsf @ 00000000005b2080] Setting 'time_base' to value '1/90000' [setts_bsf @ 00000000005b2080] Setting 'pts' to value 'N*90000*1001/24000' [setts_bsf @ 00000000005b2080] Setting 'dts' to value 'N*90000*1001/24000' [aost#0:1/copy @ 00000000005b2a80] Created audio stream from input stream 0:1 [setts_bsf @ 00000000005b3a80] Setting 'time_base' to value '1/90000' [setts_bsf @ 00000000005b3a80] Setting 'pts' to value 'N*48000*1001/24000' [setts_bsf @ 00000000005b3a80] Setting 'dts' to value 'N*48000*1001/24000' [file @ 00000000005ae440] Setting default whitelist 'file,crypto,data' [mp4 @ 00000000029a1c80] track 1: codec frame size is not set Output #0, mp4, to 'c:\foo.mp4': Metadata: COMPATIBLE_BRANDS: isomiso2mp41 MAJOR_BRAND : isom MINOR_VERSION : 512 encoder : Lavf60.10.100 Chapters: Chapter #0:0: start 0.000000, end 483.692000 Metadata: title : Chapter 1 Chapter #0:1: start 483.692000, end 824.407000 Metadata: title : Chapter 2 Chapter #0:2: start 824.407000, end 1217.508000 Metadata: title : Chapter 3 Chapter #0:3: start 1217.508000, end 1419.919000 Metadata: title : Chapter 4 Chapter #0:4: start 1419.919000, end 1690.814000 Metadata: title : Chapter 5 Chapter #0:5: start 1690.814000, end 2208.998000 Metadata: title : Chapter 6 Chapter #0:6: start 2208.998000, end 2559.182000 Metadata: title : Chapter 7 Chapter #0:7: start 2559.182000, end 3068.941000 Metadata: title : Chapter 8 Chapter #0:8: start 3068.941000, end 3325.656000 Metadata: title : Chapter 9 Chapter #0:9: start 3325.656000, end 3786.533000 Metadata: title : Chapter 10 Chapter #0:10: start 3786.533000, end 4270.016000 Metadata: title : Chapter 11 Chapter #0:11: start 4270.016000, end 4581.577000 Metadata: title : Chapter 12 Chapter #0:12: start 4581.577000, end 5110.188000 Metadata: title : Chapter 13 Chapter #0:13: start 5110.188000, end 5395.765000 Metadata: title : Chapter 14 Chapter #0:14: start 5395.765000, end 5590.835000 Metadata: title : Chapter 15 Chapter #0:15: start 5590.835000, end 5772.725000 Metadata: title : Chapter 16 Chapter #0:16: start 5772.725000, end 6220.172000 Metadata: title : Chapter 17 Chapter #0:17: start 6220.172000, end 6713.707000 Metadata: title : Chapter 18 Chapter #0:18: start 6713.707000, end 7248.533000 Metadata: title : Chapter 19 Chapter #0:19: start 7248.533000, end 7410.778000 Metadata: title : Chapter 20 Chapter #0:20: start 7410.778000, end 7801.377000 Metadata: title : Chapter 21 Chapter #0:21: start 7801.377000, end 8073.941000 Metadata: title : Chapter 22 Chapter #0:22: start 8073.941000, end 8573.065000 Metadata: title : Chapter 23 Chapter #0:23: start 8573.065000, end 9194.102000 Metadata: title : Chapter 24 Chapter #0:24: start 9194.102000, end 9565.431000 Metadata: title : Chapter 25 Chapter #0:25: start 9565.431000, end 9794.201000 Metadata: title : Chapter 26 Chapter #0:26: start 9794.201000, end 10291.740000 Metadata: title : Chapter 27 Chapter #0:27: start 10291.740000, end 10471.962000 Metadata: title : Chapter 28 Chapter #0:28: start 10471.962000, end 10880.036000 Metadata: title : Chapter 29 Chapter #0:29: start 10880.036000, end 11317.515000 Metadata: title : Chapter 30 Chapter #0:30: start 11317.515000, end 11440.971000 Metadata: title : Chapter 31 Chapter #0:31: start 11440.971000, end 11845.334000 Metadata: title : Chapter 32 Chapter #0:32: start 11845.334000, end 12473.461000 Metadata: title : Chapter 33 Chapter #0:33: start 12473.461000, end 12748.569000 Metadata: title : Chapter 34 Chapter #0:34: start 12748.569000, end 12957.403000 Metadata: title : Chapter 35 Chapter #0:35: start 12957.403000, end 13495.565000 Metadata: title : Chapter 36 Chapter #0:36: start 13495.565000, end 13903.598000 Metadata: title : Chapter 37 Chapter #0:37: start 13903.598000, end 14084.153000 Metadata: title : Chapter 38 Chapter #0:38: start 14084.153000, end 14684.879000 Metadata: title : Chapter 39 Chapter #0:39: start 14684.879000, end 14866.685000 Metadata: title : Chapter 40 Chapter #0:40: start 14866.685000, end 15364.307000 Metadata: title : Chapter 41 Chapter #0:41: start 15364.307000, end 16316.342000 Metadata: title : Chapter 42 Chapter #0:42: start 16316.342000, end 16534.685000 Metadata: title : Chapter 43 Chapter #0:43: start 16534.685000, end 16793.860000 Metadata: title : Chapter 44 Chapter #0:44: start 16793.860000, end 17223.623000 Metadata: title : Chapter 45 Chapter #0:45: start 17223.623000, end 17339.322000 Metadata: title : Chapter 46 Chapter #0:46: start 17339.322000, end 17687.670000 Metadata: title : Chapter 47 Chapter #0:47: start 17687.670000, end 17936.961000 Metadata: title : Chapter 48 Chapter #0:48: start 17936.961000, end 18127.443000 Metadata: title : Chapter 49 Chapter #0:49: start 18127.443000, end 18606.963000 Metadata: title : Chapter 50 Chapter #0:50: start 18606.963000, end 18951.057000 Metadata: title : Chapter 51 Chapter #0:51: start 18951.057000, end 19125.732000 Metadata: title : Chapter 52 Chapter #0:52: start 19125.732000, end 19306.412000 Metadata: title : Chapter 53 Stream #0:0, 0, 1/90000: Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn (default) Metadata: HANDLER_NAME : VideoHandler VENDOR_ID : [0][0][0][0] DURATION : 01:33:12.629000000 Stream #0:1(swe), 0, 1/48000: Audio: dts (DTS) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 768 kb/s (default) Metadata: HANDLER_NAME : Mono VENDOR_ID : [0][0][0][0] DURATION : 01:33:12.544000000 Successfully opened the file. Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 0 fps=0.0 q=-1.0 size= 0kB time=-00:00:00.08 bitrate= -0.0kbits/s speed=N/A [mp4 @ 00000000029a1c80] Delay between the first packet and last packet in the muxing queue is 10010000 > 10000000: forcing output //*****THIS LINE APPEARED 523971 TIMES***** frame= 3400 fps=0.0 q=-1.0 size= 139265kB time=00:02:21.77 bitrate=8047.3kbits/s speed= 283x //*****THE ENTIRE SEQUENCE CONTAINED 472 ENTRIES***** frame=133363 fps=546 q=-1.0 size=10252289kB time=01:32:42.34 bitrate=15099.2kbits/s speed=22.8x [in#0/matroska,webm @ 0000000000558040] EOF while reading input [in#0/matroska,webm @ 0000000000558040] Terminating demuxer thread No more output streams to write to, finishing. [out#0/mp4 @ 0000000000397540] All streams finished [out#0/mp4 @ 0000000000397540] Terminating muxer thread [AVIOContext @ 00000000029e2040] Statistics: 10544110661 bytes written, 30 seeks, 40244 writeouts [out#0/mp4 @ 0000000000397540] Output file #0 (c:\foo.mp4): [out#0/mp4 @ 0000000000397540] Output stream #0:0 (video): 134089 packets muxed (10003712867 bytes); [out#0/mp4 @ 0000000000397540] Output stream #0:1 (audio): 524297 packets muxed (536880128 bytes); [out#0/mp4 @ 0000000000397540] Total: 658386 packets (10540592995 bytes) muxed [out#0/mp4 @ 0000000000397540] video:9769251kB audio:524297kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 0.033372% frame=134089 fps=548 q=-1.0 Lsize=10296983kB time=01:33:12.54 bitrate=15083.1kbits/s speed=22.9x [in#0/matroska,webm @ 0000000000558040] Input file #0 (c:\1.mkv): [in#0/matroska,webm @ 0000000000558040] Input stream #0:0 (video): 134089 packets read (10003712867 bytes); [in#0/matroska,webm @ 0000000000558040] Input stream #0:1 (audio): 524297 packets read (536880128 bytes); [in#0/matroska,webm @ 0000000000558040] Total: 658386 packets (10540592995 bytes) demuxed [AVIOContext @ 0000000000558c40] Statistics: 10545377546 bytes read, 0 seeks
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".