Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VOD] mpegts and hls Packet corrupt (stream) #132

Open
superbonaci opened this issue Oct 2, 2023 · 12 comments
Open

[VOD] mpegts and hls Packet corrupt (stream) #132

superbonaci opened this issue Oct 2, 2023 · 12 comments

Comments

@superbonaci
Copy link

Download this video always has the same errors:

$ TMPDIR=/TMP twitch-dl download "https://www.twitch.tv/videos/694444624" --overwrite --auth-token $OAUTH -q source -o SURPRISE_twitch-dl.mp4
Looking up video...
Found: Highlight: [FR/EN] SURPRISE by vlouue
Output: SURPRISE_twitch-dl.mp4
Fetching access token...
Fetching playlists...
Fetching playlist...

Downloading 204 VODs using 5 workers to /TMP/twitch-dl/---_vlouue_---_---/chunked
Downloaded 203/204 VODs 99% of ~1.9GB at 14.2MB/s ETA 00:00

Joining files...
ffmpeg -i /TMP/twitch-dl/---_vlouue_---_---/chunked/playlist_downloaded.m3u8 -c copy -metadata artist=vlouue -metadata title=Highlight: [FR/EN] SURPRISE -metadata encoded_by=twitch-dl -stats -loglevel warning file:SURPRISE_twitch-dl.mp4 -y
[mpegts @ 0x159e05a20] Packet corrupt (stream = 2, dts = 61793910).trate=  -0.0kbits/s speed=N/A
[hls @ 0x159e057b0] Packet corrupt (stream = 2, dts = 61790940).
/TMP/twitch-dl/---_vlouue_---_---/chunked/playlist_downloaded.m3u8: corrupt input packet in stream 2
[mpegts @ 0x159e05a20] Packet corrupt (stream = 2, dts = 283646970).=6155.7kbits/s speed= 217x
[hls @ 0x159e057b0] Packet corrupt (stream = 2, dts = 283643910).
/TMP/twitch-dl/---_vlouue_---_---/chunked/playlist_downloaded.m3u8: corrupt input packet in stream 2
frame=76046 fps=5642 q=-1.0 Lsize= 1907358kB time=00:42:15.02 bitrate=6163.7kbits/s speed= 188x

Deleting temporary files...

Downloaded: SURPRISE_twitch-dl.mp4

Any idea about this error? It really a bad source/stream or is twitch-dl/ffmpeg issue?

@superbonaci
Copy link
Author

It happens with many other videos, playing with mplayer can help find the issue:

$ mplayer clip.mp4
MPlayer 1.5-14.0.0 (C) 2000-2022 MPlayer Team
Can't init Apple Remote.

Playing clip.mp4.
libavformat version 59.17.102 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10565fe40]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1920x1080  24bpp  60.000 fps  5695.8 kbps (695.3 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.21.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf60.3.100
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 152.5 kbit/5.40% (ratio: 19068->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [coreaudio] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [gl_nosw] 1920x1080 => 1920x1080 Planar YV12
A:   5.0 V:   5.0 A-V:  0.008 ct:  0.011   0/  0 20%  7%  0.3% 16 0
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl_nosw] 1920x1080 => 1920x1080 Planar YV12
A:  79.4 V:  79.4 A-V:  0.010 ct: -0.014   0/  0 24% 10%  0.7% 0 0
No bind found for key 'MOUSE_BTN0'.
A:1795.3 V:1795.1 A-V:  0.128 ct: -0.021   0/  0 23% 10%  0.4% 132 0


           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A:1943.0 V:1796.2 A-V:146.817 ct:  0.087   0/  0 23% 10%  0.3% 186 0
[h264 @ 0x1056a2b28]error while decoding MB 118 44, bytestream -6
[h264 @ 0x1056a2b28]concealing 2811 DC, 2811 AC, 2811 MV errors in P frame
A:1943.4 V:1943.0 A-V:  0.382 ct:  0.092   0/  0  1%  0%  0.0% 190 0
Timing looks severely broken, resetting
A:1945.9 V:1944.5 A-V:  1.400 ct:  0.244   0/  0  1%  0%  0.0% 222 0
  =====  PAUSE  =====

Exiting... (Quit)

@superbonaci
Copy link
Author

Some errors can happen due to MacOS generating ._ files:

$ twitch-dl ...
Downloading video SURPRISE:
Looking up video...
Found: Highlight: [FR/EN] SURPRISE by vlouue
Output: SURPRISE.mkv
Fetching access token...
Fetching playlists...
Fetching playlist...

Downloading 204 VODs using 5 workers to /TMP/twitch-dl/---_vlouue_---_---/chunked
Downloaded 178/204 VODs 87% of ~1.9GB

Joining files...
ffmpeg -i /TMP/twitch-dl/---_vlouue_---_---/chunked/playlist_downloaded.m3u8 -c copy -metadata artist=vlouue -metadata title=Highlight: [FR/EN] SURPRISE -metadata encoded_by=twitch-dl -stats -loglevel warning file:SURPRISE.mkv -y
[mpegts @ 0x131e04d00] Packet corrupt (stream = 2, dts = 61793910).trate=  -0.0kbits/s speed=N/A
[hls @ 0x131e04890] Packet corrupt (stream = 2, dts = 61790940).
/TMP/twitch-dl/---_vlouue_---_---/chunked/playlist_downloaded.m3u8: corrupt input packet in stream 2
[mpegts @ 0x131e04d00] Packet corrupt (stream = 2, dts = 283646970).=6148.9kbits/s speed= 152x
[hls @ 0x131e04890] Packet corrupt (stream = 2, dts = 283643910).
/TMP/twitch-dl/---_vlouue_---_---/chunked/playlist_downloaded.m3u8: corrupt input packet in stream 2
frame=76046 fps=3899 q=-1.0 Lsize= 1905639kB time=00:42:15.02 bitrate=6158.1kbits/s speed= 130x

Deleting temporary files...
Traceback (most recent call last):
  File "/Users/vlouue/.local/bin/twitch-dl", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/vlouue/.local/pipx/venvs/twitch-dl/lib/python3.11/site-packages/twitchdl/console.py", line 321, in main
    args.func(args)
  File "/Users/vlouue/.local/pipx/venvs/twitch-dl/lib/python3.11/site-packages/twitchdl/commands/download.py", line 170, in download
    download_one(video_id, args)
  File "/Users/vlouue/.local/pipx/venvs/twitch-dl/lib/python3.11/site-packages/twitchdl/commands/download.py", line 176, in download_one
    return _download_video(video_id, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/vlouue/.local/pipx/venvs/twitch-dl/lib/python3.11/site-packages/twitchdl/commands/download.py", line 344, in _download_video
    shutil.rmtree(target_dir)
  File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/shutil.py", line 732, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/shutil.py", line 683, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/shutil.py", line 681, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: '._playlist_downloaded.m3u8'

@superbonaci
Copy link
Author

mplayer clip

$ mplayer -noquiet -speed 100 -ao null -vo null clip.mp4
MPlayer 1.5-14.0.0 (C) 2000-2022 MPlayer Team
Can't init Apple Remote.

Playing clip.mp4.
libavformat version 59.17.102 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x100ce7e40]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1920x1080  24bpp  60.000 fps  5695.8 kbps (695.3 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.21.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf60.3.100
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 152.5 kbit/5.40% (ratio: 19068->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [null] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 1920x1080 => 1920x1080 Planar YV12
A:   6.9 V:   6.9 A-V: -0.003 ct:  0.010   0/  0 56%  0%  1.1% 0 0 4.35x
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 1920x1080 => 1920x1080 Planar YV12
A:  28.5 V:  28.5 A-V:  0.007 ct:  0.010   0/  0 59%  0%  1.1% 7 0 4.35x


MPlayer interrupted by signal 2 in module: decode video
A:  28.5 V:  28.5 A-V: -0.001 ct:  0.010   0/  0 59%  0%  1.1% 7 0 4.35x

Exiting... (Quit)

@superbonaci
Copy link
Author

more logs

$ mplayer -noquiet -speed 100 -ao null -vo null clip.mp4
MPlayer 1.5-14.0.0 (C) 2000-2022 MPlayer Team
Can't init Apple Remote.

Playing clip.mp4.
libavformat version 59.17.102 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x101b13e40]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1920x1080  24bpp  60.000 fps  5695.8 kbps (695.3 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.21.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf60.3.100
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 152.5 kbit/5.40% (ratio: 19068->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [null] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 1920x1080 => 1920x1080 Planar YV12
A:   6.9 V:   6.9 A-V:  0.002 ct:  0.010   0/  0 56%  0%  0.9% 0 0 4.35x
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 1920x1080 => 1920x1080 Planar YV12
A: 589.3 V: 589.4 A-V: -0.001 ct: -0.012   0/  0 ??% ??% ??,?% 4 0 4.35x
[h264 @ 0x101b56b28]error while decoding MB 79 25, bytestream -56
[h264 @ 0x101b56b28]concealing 5130 DC, 5130 AC, 5130 MV errors in I frame
A: 811.1 V: 601.0 A-V:210.102 ct:  0.100   0/  0 ??% ??% ??,?% 1 0 4.35x
Timing looks severely broken, resetting
A: 923.4 V: 923.4 A-V:  0.004 ct: -0.027   0/  0 75%  0%  1.4% 8 0 4.35x


MPlayer interrupted by signal 2 in module: decode video
A: 923.4 V: 923.5 A-V: -0.005 ct: -0.027   0/  0 75%  0%  1.4% 8 0 4.35x

Exiting... (Quit)

@superbonaci
Copy link
Author

more logs

$ mplayer -noquiet -speed 100 -ao null -vo null clip.mp4
MPlayer 1.5-14.0.0 (C) 2000-2022 MPlayer Team
Can't init Apple Remote.

Playing clip.mp4.
libavformat version 59.17.102 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x101ab3e40]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1920x1080  24bpp  60.000 fps  5695.8 kbps (695.3 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.21.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf60.3.100
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 152.5 kbit/5.40% (ratio: 19068->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [null] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 1920x1080 => 1920x1080 Planar YV12
A:   3.0 V:   3.0 A-V: -0.001 ct:  0.010   0/  0 59%  0%  1.0% 0 0 4.35x
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 1920x1080 => 1920x1080 Planar YV12
A: 837.3 V: 837.3 A-V: -0.004 ct: -0.031   0/  0 71%  0%  1.3% 6 0 4.35x


MPlayer interrupted by signal 2 in module: sleep_timer
A: 837.3 V: 837.3 A-V:  0.001 ct: -0.031   0/  0 71%  0%  1.3% 6 0 4.35x

Exiting... (Quit)

@superbonaci
Copy link
Author

superbonaci commented Oct 2, 2023

more logs

$ mpv clip.mp4
 (+) Video --vid=1 (*) (h264 1920x1080 56.974fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
AO: [coreaudio] 44100Hz stereo 2ch floatp
VO: [libmpv] 1920x1080 yuv420p
AV: 00:00:00 / 01:57:55 (0%) A-V:  0.000
VO: [libmpv] 1920x1080 yuv420p
AV: 00:10:00 / 01:57:55 (8%) A-V:  0.000
Invalid audio PTS: 600.988934 -> 810.967007
Reset playback due to audio timestamp reset.
[ffmpeg/video] h264: co located POCs unavailable
[ffmpeg/video] h264: error while decoding MB 79 25, bytestream -56
AV: 00:10:00 / 01:57:55 (8%) A-V:  0.000

Exiting... (Quit)

@superbonaci
Copy link
Author

convert mkv downloaded with twitch-dl to mp4 (no re encoding)

$ ffmpeg -y -i clip1.mkv -c:a copy -c:v copy clip1.mp4
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Input #0, matroska,webm, from 'clip1.mkv':
  Metadata:
    ENCODED_BY      : twitch-dl
    ENCODER         : Lavf60.3.100
  Duration: 01:49:18.04, start: 0.000000, bitrate: 6166 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt470bg/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 1k tbn
    Metadata:
      VARIANT_BITRATE : 0
      DURATION        : 01:49:17.136000000
  Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp
    Metadata:
      VARIANT_BITRATE : 0
      DURATION        : 01:49:18.037000000
Output #0, mp4, to 'clip1.mp4':
  Metadata:
    ENCODED_BY      : twitch-dl
    encoder         : Lavf60.3.100
  Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt470bg/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 60 fps, 60 tbr, 16k tbn
    Metadata:
      VARIANT_BITRATE : 0
      DURATION        : 01:49:17.136000000
  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp
    Metadata:
      VARIANT_BITRATE : 0
      DURATION        : 01:49:18.037000000
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104800832, current: 104800560; changing to 104800833. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104801904, current: 104801632; changing to 104801905. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104802960, current: 104802704; changing to 104802961. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104804032, current: 104803760; changing to 104804033. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104805104, current: 104804832; changing to 104805105. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104806160, current: 104805904; changing to 104806161. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104807232, current: 104806960; changing to 104807233. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104808304, current: 104808032; changing to 104808305. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104809360, current: 104809104; changing to 104809361. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104810432, current: 104810160; changing to 104810433. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104811504, current: 104811232; changing to 104811505. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104812560, current: 104812304; changing to 104812561. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104813632, current: 104813360; changing to 104813633. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104814704, current: 104814432; changing to 104814705. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104815760, current: 104815504; changing to 104815761. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104816832, current: 104816560; changing to 104816833. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104817904, current: 104817632; changing to 104817905. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104818960, current: 104818704; changing to 104818961. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104820032, current: 104819760; changing to 104820033. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104821104, current: 104820832; changing to 104821105. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104822160, current: 104821904; changing to 104822161. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104823232, current: 104822960; changing to 104823233. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104824304, current: 104824032; changing to 104824305. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104825360, current: 104825104; changing to 104825361. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104826432, current: 104826160; changing to 104826433. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104827504, current: 104827232; changing to 104827505. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104828560, current: 104828304; changing to 104828561. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104829632, current: 104829360; changing to 104829633. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104830704, current: 104830432; changing to 104830705. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104831760, current: 104831504; changing to 104831761. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104832832, current: 104832560; changing to 104832833. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104833904, current: 104833632; changing to 104833905. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104834960, current: 104834704; changing to 104834961. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104836032, current: 104835760; changing to 104836033. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104837104, current: 104836832; changing to 104837105. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104838160, current: 104837904; changing to 104838161. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104839232, current: 104838960; changing to 104839233. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104840304, current: 104840032; changing to 104840305. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104841360, current: 104841104; changing to 104841361. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104842432, current: 104842160; changing to 104842433. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104843504, current: 104843232; changing to 104843505. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104844560, current: 104844304; changing to 104844561. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104845632, current: 104845360; changing to 104845633. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104846704, current: 104846432; changing to 104846705. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104847760, current: 104847504; changing to 104847761. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104848832, current: 104848560; changing to 104848833. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104849904, current: 104849632; changing to 104849905. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104850960, current: 104850704; changing to 104850961. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104852032, current: 104851760; changing to 104852033. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104853104, current: 104852832; changing to 104853105. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104854160, current: 104853904; changing to 104854161. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104855232, current: 104854960; changing to 104855233. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104856304, current: 104856032; changing to 104856305. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104857360, current: 104857104; changing to 104857361. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104858432, current: 104858160; changing to 104858433. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104859504, current: 104859232; changing to 104859505. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104860560, current: 104860304; changing to 104860561. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104861632, current: 104861360; changing to 104861633. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104862704, current: 104862432; changing to 104862705. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104863760, current: 104863504; changing to 104863761. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104864832, current: 104864560; changing to 104864833. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104865904, current: 104865632; changing to 104865905. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104866960, current: 104866704; changing to 104866961. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104868032, current: 104867760; changing to 104868033. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104869104, current: 104868832; changing to 104869105. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104870160, current: 104869904; changing to 104870161. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104871232, current: 104870960; changing to 104871233. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104872304, current: 104872032; changing to 104872305. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104873360, current: 104873104; changing to 104873361. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104874432, current: 104874160; changing to 104874433. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104875504, current: 104875232; changing to 104875505. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104876560, current: 104876304; changing to 104876561. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104877632, current: 104877360; changing to 104877633. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104878704, current: 104878432; changing to 104878705. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104879760, current: 104879504; changing to 104879761. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104880832, current: 104880560; changing to 104880833. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104881904, current: 104881632; changing to 104881905. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104882960, current: 104882704; changing to 104882961. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104884032, current: 104883760; changing to 104884033. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104885104, current: 104884832; changing to 104885105. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104886160, current: 104885904; changing to 104886161. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104887232, current: 104886960; changing to 104887233. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104888304, current: 104888032; changing to 104888305. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104889360, current: 104889104; changing to 104889361. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104890432, current: 104890160; changing to 104890433. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104891504, current: 104891232; changing to 104891505. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104892560, current: 104892304; changing to 104892561. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104893632, current: 104893360; changing to 104893633. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104894704, current: 104894432; changing to 104894705. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104895760, current: 104895504; changing to 104895761. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104896832, current: 104896560; changing to 104896833. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104897904, current: 104897632; changing to 104897905. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104898960, current: 104898704; changing to 104898961. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104900032, current: 104899760; changing to 104900033. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104901104, current: 104900832; changing to 104901105. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104902160, current: 104901904; changing to 104902161. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104903232, current: 104902960; changing to 104903233. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104904304, current: 104904032; changing to 104904305. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104905360, current: 104905104; changing to 104905361. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104906432, current: 104906160; changing to 104906433. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104907232, current: 104906960; changing to 104907233. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104908304, current: 104908032; changing to 104908305. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104909360, current: 104909104; changing to 104909361. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104910432, current: 104910160; changing to 104910433. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104911504, current: 104911232; changing to 104911505. This may result in incorrect timestamps in the output file.
[mp4 @ 0x14560f8a0] Non-monotonous DTS in output stream 0:0; previous: 104912560, current: 104912304; changing to 104912561. This may result in incorrect timestamps in the output file.
frame=393425 fps=5165 q=-1.0 Lsize= 4945734kB time=01:49:18.01 bitrate=6178.0kbits/s speed=86.1x
video:4803331kB audio:128610kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.279675%

@superbonaci
Copy link
Author

Joing manually

$ ffmpeg -i /TMP/twitch-dl/---_vlouue_---_---/chunked/playlist_downloaded.m3u8 -c copy -metadata artist='vlouue' -metadata title='Highlight: [FR/EN] SURPRISE' -metadata encoded_by='twitch-dl' -stats -loglevel warning file:out.mkv -y
[mpegts @ 0x13d605a20] Packet corrupt (stream = 2, dts = 61793910).trate=  -0.0kbits/s speed=N/A
[hls @ 0x13d6057b0] Packet corrupt (stream = 2, dts = 61790940).
/TMP/twitch-dl/---_vlouue_---_---/chunked/playlist_downloaded.m3u8: corrupt input packet in stream 2
[mpegts @ 0x13d605a20] Packet corrupt (stream = 2, dts = 283646970).=6148.7kbits/s speed= 232x
[hls @ 0x13d6057b0] Packet corrupt (stream = 2, dts = 283643910).
/TMP/twitch-dl/---_vlouue_---_---/chunked/playlist_downloaded.m3u8: corrupt input packet in stream 2
frame=76046 fps=6418 q=-1.0 Lsize= 1905639kB time=00:42:15.02 bitrate=6158.1kbits/s speed= 214x

@superbonaci
Copy link
Author

ffmpeg conversion

Input #0, matroska,webm, from 'in.mkv':
  Metadata:
    ENCODED_BY      : twitch-dl
    ENCODER         : Lavf60.3.100
  Duration: 01:57:55.03, start: 0.000000, bitrate: 6164 kb/s
  Stream #0:0: Video: h264 (Main), yuv420p(tv, unknown/bt470bg/unknown, progressive), 1920x1080, 60 fps, 60 tbr, 1k tbn
    Metadata:
      VARIANT_BITRATE : 0
      DURATION        : 01:57:54.885000000
  Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp
    Metadata:
      VARIANT_BITRATE : 0
      DURATION        : 01:57:55.032000000
Output #0, mp4, to 'in.mp4':
  Metadata:
    ENCODED_BY      : twitch-dl
    encoder         : Lavf60.3.100
  Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, unknown/bt470bg/unknown, progressive), 1920x1080, q=2-31, 60 fps, 60 tbr, 16k tbn
    Metadata:
      VARIANT_BITRATE : 0
      DURATION        : 01:57:54.885000000
  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp
    Metadata:
      VARIANT_BITRATE : 0
      DURATION        : 01:57:55.032000000
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[matroska,webm @ 0x134e058e0] 0x00 at pos 461424825 (0x1b80c8b9) invalid as first byte of an EBML number
[matroska,webm @ 0x134e058e0] 0x00 at pos 1383087420 (0x52703d3c) invalid as first byte of an EBML number
frame=403085 fps=5911 q=-1.0 Lsize= 5065964kB time=01:57:55.00 bitrate=5865.8kbits/s speed= 104x
video:4919089kB audio:131745kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.299535%

@superbonaci
Copy link
Author

VLC Debug Log (3.0.18 Vetinari)

main debug: VLC media player - 3.0.18 Vetinari
main debug: Copyright © 1996-2022 the VideoLAN team
main debug: revision 3.0.18-0-ge9eceaed4d
main debug: configured with /Users/d-fu/vlc-3.0/extras/package/macosx/../../../configure  '--prefix=/Users/d-fu/vlc-3.0/build-arm64/vlc_install_dir' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-osx-notifications' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-realrtsp' '--enable-libass' '--enable-macosx-avfoundation' '--disable-skins2' '--disable-xcb' '--disable-caca' '--disable-pulse' '--disable-sdl-image' '--disable-vnc' '--build=x86_64-apple-darwin19' '--host=aarch64-apple-darwin19' '--with-macosx-version-min=10.7' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' '--with-breakpad=https://mac.crashes.videolan.org' 'build_alias=x86_64-apple-darwin19' 'host_alias=aarch64-apple-darwin19' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-g -arch arm64' 'LDFLAGS=-arch arm64' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-g -arch arm64' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-g -arch arm64'
videotoolbox debug: new SPS parsed: 0
videotoolbox debug: new PPS parsed: 0
mp4 debug: elst (0) gives 1211196ms (movie)-> 1211229ms (track)
mp4 debug: track[Id 0x1] using Sync Sample Box (stss)
mp4 debug: stss gives 60070 --> 60058 (sample number)
mp4 debug: seeking with 230ms preroll (use input-fast-seek to avoid)
mp4 debug: elst (1) gives 1210966ms (movie)-> 1210955ms (track)
main debug: Buffering 0%
main debug: Buffering 21%
main debug: Buffering 41%
main debug: end of audio preroll
main debug: Buffering 61%
main debug: Buffering 81%
main debug: Stream buffering done (1271 ms in 7 ms)
main debug: Received first picture
main debug: end of video preroll
main debug: Decoder wait done in 33 ms
main debug: picture might be displayed late (missing 3 ms)
mp4 debug: elst (0) gives 1782871ms (movie)-> 1782905ms (track)
mp4 debug: track[Id 0x1] using Sync Sample Box (stss)
mp4 debug: stss gives 94372 --> 94258 (sample number)
mp4 debug: seeking with 1905ms preroll (use input-fast-seek to avoid)
mp4 debug: elst (1) gives 1780966ms (movie)-> 1780955ms (track)
main debug: Buffering 0%
main debug: Buffering 9%
main debug: Buffering 17%
main debug: Buffering 26%
main debug: Buffering 34%
main debug: Buffering 43%
main debug: Buffering 51%
main debug: Buffering 60%
main debug: Buffering 69%
main debug: Buffering 77%
main debug: Buffering 86%
main debug: Buffering 94%
main debug: Stream buffering done (3018 ms in 4 ms)
main debug: Received first picture
main debug: end of audio preroll
main debug: auto hiding mouse cursor
main debug: end of video preroll
main debug: Decoder wait done in 173 ms
main debug: auto hiding mouse cursor
videotoolbox warning: vt session error: 'kVTVideoDecoderBadDataErr'

@superbonaci
Copy link
Author

superbonaci commented Oct 2, 2023

VLC Debug Log (4.0.0-dev Otto Chriek)

main debug: VLC media player - 4.0.0-dev Otto Chriek
main debug: Copyright © 1996-2023 the VideoLAN team
main debug: revision 4.0.0-dev-25856-geaf149b7f8
main debug: configured with /Users/videolanci/builds/x7XUHK5B/0/videolan/vlc/extras/package/macosx/../../../configure  '--prefix=/' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-osx-notifications' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-libass' '--enable-macosx-avfoundation' '--disable-skins2' '--disable-xcb' '--disable-caca' '--disable-pulse' '--disable-vnc' '--without-x' '--build=aarch64-apple-darwin19' '--host=aarch64-apple-darwin19' '--with-macosx-version-min=10.11' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' 'build_alias=aarch64-apple-darwin19' 'host_alias=aarch64-apple-darwin19' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-g -arch arm64 -Werror=incompatible-function-pointer-types -Werror=incompatible-pointer-types -Werror=missing-field-initializers' 'LDFLAGS=-arch arm64' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-g -arch arm64 -Werror=incompatible-function-pointer-types -Werror=missing-field-initializers' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-g -arch arm64 -Werror=incompatible-function-pointer-types'
main debug: control type=2
main debug: ES_OUT_RESET_PCR called
main warning: original picture size is undefined
main warning: original picture size is undefined
mp4 debug: elst (0) gives 1481005ms (movie)-> 1481039ms (track)
mp4 debug: track[Id 0x1] using Sync Sample Box (stss)
mp4 debug: stss gives 76259 --> 76258 (sample number)
mp4 debug: track[Id 0x1] sync point found sample 76258(-1)
mp4 debug: seeking with 39ms alignment to 1481005747
mp4 debug: elst (1) gives 1480966ms (movie)-> 1480955ms (track)
mp4 debug: track[Id 0x2] preroll offset: -1 samples
main debug: control type=2
main debug: ES_OUT_RESET_PCR called
mp4 debug: elst (0) gives 1481005ms (movie)-> 1481039ms (track)
mp4 debug: track[Id 0x1] using Sync Sample Box (stss)
mp4 debug: stss gives 76259 --> 76258 (sample number)
mp4 debug: track[Id 0x1] sync point found sample 76258(-1)
mp4 debug: seeking with 39ms alignment to 1481005747
mp4 debug: elst (1) gives 1480966ms (movie)-> 1480955ms (track)
mp4 debug: track[Id 0x2] preroll offset: -1 samples
main debug: Buffering 0%
main debug: Buffering 25%
main debug: Buffering 50%
main debug: Buffering 75%
main debug: Buffering 100%
main debug: Stream buffering done (1500 ms in 5 ms)
main debug: end of video preroll
main debug: Received first picture
main error: buffer deadlock prevented
main debug: Decoder wait done in 40 ms
decoder warning: vt session error: 'kVTVideoDecoderBadDataErr'
decoder warning: restarting vt session (dec callback failed)
decoder warning: forcing output chroma (kCVPixelFormatType): 420v
decoder debug: session accepted first frame 1942999001
decoder debug: output chroma (kCVPixelFormatType): 420v
main debug: control type=0
main warning: original picture size is undefined
main debug: toggling resume
main debug: toggling resume
iokit_inhibit debug: Releasing previous IOPMAssertion
iokit_inhibit debug: Removed previous inhibition

@superbonaci
Copy link
Author

superbonaci commented Oct 3, 2023

mpv detects the error at 29:56 and jumps to 32:22

$ mpv clip.mp4
 (+) Video --vid=1 (*) (h264 1920x1080 56.974fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
AO: [coreaudio] 44100Hz stereo 2ch floatp
VO: [libmpv] 1920x1080 yuv420p
AV: 00:00:00 / 01:57:55 (0%) A-V:  0.000
VO: [libmpv] 1920x1080 yuv420p
AV: 00:09:49 / 01:57:55 (8%) A-V:  0.000
[ffmpeg/video] h264: error while decoding MB 79 25, bytestream -56
AV: 00:29:56 / 01:57:55 (25%) A-V:  0.000
Invalid audio PTS: 1796.259342 -> 1942.986009
Reset playback due to audio timestamp reset.
[ffmpeg/video] h264: co located POCs unavailable
(Paused) AV: 00:32:23 / 01:57:55 (27%) A-V:  0.000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant