[FFmpeg-user] Properly download/trim a hls-stream which reports invalid timestamps

Reino Wijnsma rwijnsma at xs4all.nl
Thu Nov 16 15:43:55 EET 2017


Hello ffmpeg-user,

I'm trying to download a portion of
"http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000.m3u8",
a hls-stream.

Opening the url with my most recent build gives me:

ffmpeg-N-87867-g0655810-win32-static_legacy.exe -i
http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000.m3u8
ffmpeg version N-87867-g0655810-Reino Copyright (c) 2000-2017 the FFmpeg
developers
  built with gcc 7.2.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32
--cross-prefix=/cygdrive/m/ffmpeg-windows-build-helpers-master/native_build/windows/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-
--pkg-config=pkg-config --pkg-config-flags=--static
--extra-version=Reino --enable-gray --enable-version3 --disable-debug
--disable-doc --disable-htmlpages --disable-manpages --disable-podpages
--disable-schannel --disable-txtpages --disable-w32threads
--enable-avisynth --enable-avresample --enable-fontconfig
--enable-frei0r --enable-filter=frei0r --enable-gmp --enable-gnutls
--extra-libs=-lcrypt32 --enable-gpl --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --extra-cflags=-DCACA_STATIC
--enable-libfdk-aac --enable-libflite --enable-libfreetype
--enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc
--enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenmpt
--extra-libs=-lshlwapi --enable-libopus --enable-librubberband
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxavs --enable-libxml2 --enable-libxvid --enable-libzimg
--enable-libzvbi --extra-cflags='-march=pentium3' --extra-cflags=-O2
--extra-cflags='-mfpmath=sse' --extra-cflags=-msse --enable-static
--disable-shared
--prefix=/cygdrive/m/ffmpeg-windows-build-helpers-master/native_build/windows/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32
  libavutil      55. 79.100 / 55. 79.100
  libavcodec     57.108.100 / 57.108.100
  libavformat    57. 84.100 / 57. 84.100
  libavdevice    57. 11.100 / 57. 11.100
  libavfilter     6.108.100 /  6.108.100
  libavresample   3.  8.  0 /  3.  8.  0
  libswscale      4.  9.100 /  4.  9.100
  libswresample   2. 10.100 /  2. 10.100
  libpostproc    54.  8.100 / 54.  8.100
[hls,applehttp @ 04cadd40] Opening
'https://licenseservice.rtl.nl/aes/GetKey/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a'
for reading
[hls,applehttp @ 04cadd40] Opening
'crypto+http://rtl-hls-aes.akamaized.net/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000-1.ts'
for reading
[mpegts @ 04ce44c0] Invalid timestamps stream=1, pts=903600, dts=910800,
size=295
[mpegts @ 04ce44c0] Invalid timestamps stream=1, pts=910800, dts=914400,
size=633
[hls,applehttp @ 04cadd40] Invalid timestamps stream=1, pts=903600,
dts=910800, size=295
[hls,applehttp @ 04cadd40] Invalid timestamps stream=1, pts=910800,
dts=914400, size=633
[mpegts @ 04ce44c0] Invalid timestamps stream=1, pts=918000, dts=925200,
size=818
[mpegts @ 04ce44c0] Invalid timestamps stream=1, pts=925200, dts=928800,
size=851
[hls,applehttp @ 04cadd40] Invalid timestamps stream=1, pts=918000,
dts=925200, size=818
[hls,applehttp @ 04cadd40] Invalid timestamps stream=1, pts=925200,
dts=928800, size=851
[mpegts @ 04ce44c0] Invalid timestamps stream=1, pts=932400, dts=936000,
size=1833
[mpegts @ 04ce44c0] Invalid timestamps stream=1, pts=936000, dts=939600,
size=1213
[hls,applehttp @ 04cadd40] Invalid timestamps stream=1, pts=932400,
dts=936000, size=1833
[hls,applehttp @ 04cadd40] Invalid timestamps stream=1, pts=936000,
dts=939600, size=1213
[mpegts @ 04ce44c0] Invalid timestamps stream=1, pts=943200, dts=946800,
size=4471
[mpegts @ 04ce44c0] Invalid timestamps stream=1, pts=946800, dts=950400,
size=1930
[hls,applehttp @ 04cadd40] Invalid timestamps stream=1, pts=943200,
dts=946800, size=4471
[hls,applehttp @ 04cadd40] Invalid timestamps stream=1, pts=946800,
dts=950400, size=1930
[mpegts @ 04ce44c0] Invalid timestamps stream=1, pts=954000, dts=957600,
size=2546
[hls,applehttp @ 04cadd40] Invalid timestamps stream=1, pts=954000,
dts=957600, size=2546
Input #0, hls,applehttp, from
'http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000.m3u8':
  Duration: 00:51:54.00, start: 10.000000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
At least one output file must be specified

Lots of "Invalid timestamps"-errors.

------------------------------------------------------------------------
For my most recent build I had to revert
https://github.com/FFmpeg/FFmpeg/commit/9f20cc5c84589afe96499fd7259eb821e31217a0
(as explained here <https://trac.ffmpeg.org/ticket/6733>). Otherwise
FFmpeg wouldn't start reading at 'xxx-1.ts':

ffmpeg-N-87255-gcbe181c-win32-static_legacy.exe -i
http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000.m3u8
ffmpeg version N-87255-gcbe181c-Reino Copyright (c) 2000-2017 the FFmpeg
developers
  built with gcc 7.2.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32
--cross-prefix=/cygdrive/m/ffmpeg-windows-build-helpers-master/native_build/windows/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-
--pkg-config=pkg-config --pkg-config-flags=--static
--extra-version=Reino --enable-gray --enable-version3 --disable-debug
--disable-doc --disable-htmlpages --disable-manpages --disable-podpages
--disable-schannel --disable-txtpages --disable-w32threads
--enable-avisynth --enable-avresample --enable-fontconfig
--enable-frei0r --enable-filter=frei0r --enable-gmp --enable-gnutls
--extra-libs=-lcrypt32 --enable-gpl --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --extra-cflags=-DCACA_STATIC
--enable-libfdk-aac --enable-libflite --enable-libfreetype
--enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc
--enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenmpt
--extra-libs=-lshlwapi --enable-libopus --enable-librubberband
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxavs --enable-libxvid --enable-libzimg --enable-libzvbi
--extra-cflags='-march=pentium3' --extra-cflags=-O2
--extra-cflags='-mfpmath=sse' --extra-cflags=-msse --enable-static
--disable-shared
--prefix=/cygdrive/m/ffmpeg-windows-build-helpers-master/native_build/windows/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32
  libavutil      55. 74.100 / 55. 74.100
  libavcodec     57.105.100 / 57.105.100
  libavformat    57. 82.100 / 57. 82.100
  libavdevice    57.  8.100 / 57.  8.100
  libavfilter     6.105.100 /  6.105.100
  libavresample   3.  6.  0 /  3.  6.  0
  libswscale      4.  7.103 /  4.  7.103
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
[hls,applehttp @ 04c5dd40] Opening
'https://licenseservice.rtl.nl/aes/GetKey/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a'
for reading
[hls,applehttp @ 04c5dd40] Opening
'crypto+http://rtl-hls-aes.akamaized.net/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000*-305.ts*'
for reading
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274503600,
dts=274510800, size=4796
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274510800,
dts=274514400, size=4085
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274503600,
dts=274510800, size=4796
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274510800,
dts=274514400, size=4085
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274518000,
dts=274521600, size=9173
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274518000,
dts=274521600, size=9173
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274528800,
dts=274536000, size=5434
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274536000,
dts=274539600, size=5909
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274528800,
dts=274536000, size=5434
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274536000,
dts=274539600, size=5909
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274543200,
dts=274546800, size=5643
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274543200,
dts=274546800, size=5643
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274550400,
dts=274557600, size=4573
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274557600,
dts=274561200, size=3099
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274550400,
dts=274557600, size=4573
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274557600,
dts=274561200, size=3099
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274564800,
dts=274572000, size=3245
[mpegts @ 04c939c0] Invalid timestamps stream=1, pts=274572000,
dts=274575600, size=5766
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274564800,
dts=274572000, size=3245
[hls,applehttp @ 04c5dd40] Invalid timestamps stream=1, pts=274572000,
dts=274575600, size=5766
Input #0, hls,applehttp, from
'http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000.m3u8':
  *Duration: N/A, start: 3050.000000, bitrate: N/A*
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
At least one output file must be specified
------------------------------------------------------------------------

I didn't care much about these errors when I wanted to download the
entire hls-stream, but now that I want to download a ±30sec segment,
things become a bit nasty:

ffmpeg-N-87867-g0655810-win32-static_legacy.exe -hide_banner -ss 2000 -i
"http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000.m3u8"
-ss 14 -t 30 -c copy "output.ts"
[hls,applehttp @ 04cae100] Opening
'https://licenseservice.rtl.nl/aes/GetKey/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a'
for reading
[hls,applehttp @ 04cae100] Opening
'crypto+http://rtl-hls-aes.akamaized.net/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000-1.ts'
for reading
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=903600, dts=910800,
size=295
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=910800, dts=914400,
size=633
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=903600,
dts=910800, size=295
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=910800,
dts=914400, size=633
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=918000, dts=925200,
size=818
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=925200, dts=928800,
size=851
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=918000,
dts=925200, size=818
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=925200,
dts=928800, size=851
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=932400, dts=936000,
size=1833
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=936000, dts=939600,
size=1213
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=932400,
dts=936000, size=1833
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=936000,
dts=939600, size=1213
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=943200, dts=946800,
size=4471
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=946800, dts=950400,
size=1930
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=943200,
dts=946800, size=4471
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=946800,
dts=950400, size=1930
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=954000, dts=957600,
size=2546
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=954000,
dts=957600, size=2546
Input #0, hls,applehttp, from
'http://manifest.us.rtl.nl/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000.m3u8':
  Duration: 00:51:54.00, start: 10.000000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
Output #0, mpegts, to 'output.ts':
  Metadata:
    encoder         : Lavf57.84.100
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 04cae100] Opening
'crypto+http://rtl-hls-aes.akamaized.net/10/v166/aes/adaptive/components/videorecorder/38/389438/389439/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ssm/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a.ism/0bf68d1e-97f6-3c3e-9498-e1a3ffa8a13a-audio_eng=125437-video=3877000-200.ts'
for reading
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=180003600,
dts=180007200, size=28270
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=180007200,
dts=180010800, size=23798
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=180003600,
dts=180007200, size=28270
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=180007200,
dts=180010800, size=23798
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=180014400,
dts=180018000, size=28204
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=180018000,
dts=180021600, size=24761
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=180014400,
dts=180018000, size=28204
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=180018000,
dts=180021600, size=24761
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=180032400,
dts=180039600, size=6423
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=180039600,
dts=180043200, size=2701
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=180032400,
dts=180039600, size=6423
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=180039600,
dts=180043200, size=2701
[...]
[mpegts @ 05615460] Invalid DTS: 2674800 PTS: 2667600 in output stream
0:0, replacing by guess
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=184834800,
dts=184838400, size=11475
[mpegts @ 05615460] Invalid DTS: 2678400 PTS: 2674800 in output stream
0:0, replacing by guess
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=184842000,
dts=184849200, size=12284
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=184849200,
dts=184852800, size=14628
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=184842000,
dts=184849200, size=12284
[mpegts @ 05615460] Invalid DTS: 2689200 PTS: 2682000 in output stream
0:0, replacing by guess
[hls,applehttp @ 04cae100] Invalid timestamps stream=1, pts=184849200,
dts=184852800, size=14628
[mpegts @ 05615460] Invalid DTS: 2692800 PTS: 2689200 in output stream
0:0, replacing by guess
[mpegts @ 04ce4880] Invalid timestamps stream=1, pts=184863600,
dts=184870800, size=12841
frame=  701 fps= 52 q=-1.0 Lsize=   16156kB time=00:00:29.98
bitrate=4413.2kbits/s speed=2.22x
video:14429kB audio:469kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 8.444264%

MediaInfo also reports a significant delay:

General
ID                                       : 1 (0x1)
Complete name                            :
D:\Storage\Media\Binaries\output.ts
Format                                   : MPEG-TS
File size                                : 15.8 MiB
Duration                                 : 28s 0ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 4 690 Kbps

Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High at L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Format settings, GOP                     : M=4, N=50
Codec ID                                 : 27
Duration                                 : *28s 40ms*
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive

Audio
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format version                           : Version 4
Format profile                           : LC
Muxing mode                              : ADTS
Codec ID                                 : 15
Duration                                 : *29s 866ms*
Bit rate mode                            : Variable
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : *-1s 984ms*

Menu
ID                                       : 4096 (0x1000)
Menu ID                                  : 1 (0x1)
Duration                                 : 28s 0ms
List                                     : 256 (0x100) (AVC) / 257
(0x101) (AAC)
Service name                             : Service01
Service provider                         : FFmpeg
Service type                             : digital television

I don't know much about DTS and PTS timestamps. Can anyone tell me how I
can fix these errors, how I can synchronize the audio- and video-stream
/ fix the delay, and thus how I can properly download this segment?

-- Reino


More information about the ffmpeg-user mailing list