Opened 16 months ago

Last modified 8 months ago

#6509 new defect

Remuxing m3u8 to mkv, Can't write packet with unknown timestamp

Reported by: ponpon Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Thank you for the excellent command.

I have a issue in remuxing m3u8 to mkv.
I tried

ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy test.mkv
ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -fflags +genpts test.mkv
ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -copyts test.mkv
ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -copytb 1 test.mkv
ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -vsync cfr -r 24 test.mkv
ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -vsync cfr -r 24 -fflags +genpts test.mkv
ffmpeg -fflags +genpts -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy test.mkv
ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy test.mkv
ffmpeg version N-86691-gc8853568b1 Copyright (c) 2000-2017 the FFmpeg developers
  built with clang version 3.9.1 (tags/RELEASE_391/final)
  configuration: --prefix=/sw --disable-shared --enable-static --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --optflags=-Ofast --cc=clang-mp-3.9 --cxx=clang++-mp-3.9 --extra-cflags=' -march=native -I/sw/include -I/opt/local/include ' --extra-ldflags=' -L/sw/lib -L/opt/local/lib -fopenmp' --extra-ldlibflags='-L/sw/lib -L/opt/local/lib -static' --target-os=darwin --arch=x86_64 --cpu=corei7-avx --enable-avresample --enable-libfdk-aac --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libfreetype --enable-openssl --enable-gnutls --enable-gcrypt --enable-gmp --enable-librtmp --enable-libass --enable-fontconfig --enable-libfribidi --enable-libbluray --enable-libdc1394 --enable-libmodplug --enable-lzma --enable-libx264 --enable-libx265 --enable-libzimg --enable-libvidstab --enable-libsoxr --enable-libsmbclient --enable-libcdio --enable-opengl --enable-opencl --disable-vda --pkg-config-flags=' --libs --static'
  libavutil      55. 67.100 / 55. 67.100
  libavcodec     57.100.103 / 57.100.103
  libavformat    57. 75.100 / 57. 75.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 94.100 /  6. 94.100
  libavresample   3.  6.  0 /  3.  6.  0
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/en/128kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/250kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/500kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/800kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1100kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1500kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/4000kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/6000kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/10000kbit.m3u8' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/en/128kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/250kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/500kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/800kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1100kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1500kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/4000kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/6000kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/10000kbit/seq-0.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/250kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/500kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/800kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1100kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1500kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/4000kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/6000kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/10000kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/en/128kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit/seq-1.ts' for reading
[hls,applehttp @ 0x7fdb18000800] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit/seq-1.ts' for reading
Input #0, hls,applehttp, from 'https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8':
  Duration: 00:14:48.00, start: 0.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 258157
    Stream #0:0(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
    Metadata:
      variant_bitrate : 831270
      comment         : English
    Stream #0:1(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 831270
      comment         : Dubbing
    Stream #0:4: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 426x180 [SAR 7680:7739 DAR 256:109], 24 tbr, 90k tbn, 48 tbc
    Metadata:
      variant_bitrate : 258157
  Program 1 
    Metadata:
      variant_bitrate : 520929
    Stream #0:0(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
    Metadata:
      variant_bitrate : 831270
      comment         : English
    Stream #0:1(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 831270
      comment         : Dubbing
    Stream #0:5: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x272 [SAR 544:545 DAR 256:109], 24 tbr, 90k tbn, 48 tbc
    Metadata:
      variant_bitrate : 520929
  Program 2 
    Metadata:
      variant_bitrate : 831270
    Stream #0:0(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
    Metadata:
      variant_bitrate : 831270
      comment         : English
    Stream #0:1(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 831270
      comment         : Dubbing
    Stream #0:6: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x272 [SAR 544:545 DAR 256:109], 24 tbr, 90k tbn, 48 tbc
    Metadata:
      variant_bitrate : 831270
  Program 3 
    Metadata:
      variant_bitrate : 1144430
    Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default)
    Metadata:
      variant_bitrate : 10285391
      comment         : English
    Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 10285391
      comment         : Dubbing
    Stream #0:7: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x408 [SAR 544:545 DAR 256:109], 24 tbr, 90k tbn, 48 tbc
    Metadata:
      variant_bitrate : 1144430
  Program 4 
    Metadata:
      variant_bitrate : 1558322
    Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default)
    Metadata:
      variant_bitrate : 10285391
      comment         : English
    Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 10285391
      comment         : Dubbing
    Stream #0:8: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x544 [SAR 544:545 DAR 256:109], 24 tbr, 90k tbn, 48 tbc
    Metadata:
      variant_bitrate : 1558322
  Program 5 
    Metadata:
      variant_bitrate : 4149264
    Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default)
    Metadata:
      variant_bitrate : 10285391
      comment         : English
    Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 10285391
      comment         : Dubbing
    Stream #0:9: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x818 [SAR 1636:1635 DAR 256:109], 24 tbr, 90k tbn, 48 tbc
    Metadata:
      variant_bitrate : 4149264
  Program 6 
    Metadata:
      variant_bitrate : 6214307
    Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default)
    Metadata:
      variant_bitrate : 10285391
      comment         : English
    Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 10285391
      comment         : Dubbing
    Stream #0:10: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x818 [SAR 1636:1635 DAR 256:109], 24 tbr, 90k tbn, 48 tbc
    Metadata:
      variant_bitrate : 6214307
  Program 7 
    Metadata:
      variant_bitrate : 10285391
    Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default)
    Metadata:
      variant_bitrate : 10285391
      comment         : English
    Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 10285391
      comment         : Dubbing
    Stream #0:11: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 4096x1744 [SAR 1:1 DAR 256:109], 24 tbr, 90k tbn, 48 tbc
    Metadata:
      variant_bitrate : 10285391
Output #0, matroska, to 'test.mkv':
  Metadata:
    encoder         : Lavf57.75.100
    Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p, 4096x1744 [SAR 1:1 DAR 256:109], q=2-31, 24 tbr, 1k tbn, 90k tbc
    Metadata:
      variant_bitrate : 10285391
    Stream #0:1(en): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, 5.1, fltp (default)
    Metadata:
      variant_bitrate : 10285391
      comment         : English
Stream mapping:
  Stream #0:11 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x7fdb17b1ce00] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 0x7fdb17b1ce00] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
frame=   49 fps=0.0 q=-1.0 Lsize=      94kB time=00:00:01.96 bitrate= 390.4kbits/s speed=1.01e+03x    
video:13kB audio:80kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.353046%
Conversion failed!

Change History (3)

comment:1 Changed 15 months ago by bubbleguuum

Any update on this issue ? Isn't -fflags +genpts supposed to work here ?

comment:2 Changed 8 months ago by eugenesv

  • Cc eugenesvk+ffmpeg@gmail.com added

comment:3 Changed 8 months ago by eugenesv

  • Cc eugenesvk+ffmpeg@gmail.com removed
Note: See TracTickets for help on using tickets.