[FFmpeg-trac] #10054(ffplay:new): ffplay 404 when trying to play dash stream

FFmpeg trac at avcodec.org
Sat Nov 19 16:56:58 EET 2022


#10054: ffplay 404 when trying to play dash stream
-------------------------------------+-------------------------------------
             Reporter:  TheRadziu    |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  ffplay
              Version:  git-master   |               Resolution:
             Keywords:  ffplay,      |               Blocked By:
  time offset,                       |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by TheRadziu:

Old description:

> ffplay seems to grab wrong time, resulting in 404ing the segment
> fragments
> {{{
> ffplay -cenc_decryption_key "37353562353634663138383330633664" -i
> "https://live001.cda.pl/enc111/kapitanbomba/kapitanbomba.mpd" -loglevel
> debug
> ffplay version 2022-11-03-git-5ccd4d3060-essentials_build-www.gyan.dev
> Copyright (c) 2003-2022 the FFmpeg developers
>   built with gcc 12.1.0 (Rev2, 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-zlib --enable-libsrt --enable-libssh --enable-
> libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264
> --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg
> --enable-libvpx --enable-mediafoundation --enable-libass --enable-
> libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf
> --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-
> ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2
> --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-
> amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc
> --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-
> libspeex --enable-libvorbis --enable-librubberband
>   libavutil      57. 40.100 / 57. 40.100
>   libavcodec     59. 51.101 / 59. 51.101
>   libavformat    59. 34.101 / 59. 34.101
>   libavdevice    59.  8.101 / 59.  8.101
>   libavfilter     8. 49.101 /  8. 49.101
>   libswscale      6.  8.112 /  6.  8.112
>   libswresample   4.  9.100 /  4.  9.100
>   libpostproc    56.  7.100 / 56.  7.100
> Initialized direct3d renderer.
> [NULL @ 000001885b2ef1c0] Opening
> 'https://live001.cda.pl/enc111/kapitanbomba/kapitanbomba.mpd' for reading
> [https @ 000001885b2eca00] Setting default whitelist
> 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
> [tcp @ 000001885b2efac0] Original list of addresses:
> [tcp @ 000001885b2efac0] Address 46.102.100.197 port 443
> [tcp @ 000001885b2efac0] Interleaved list of addresses:
> [tcp @ 000001885b2efac0] Address 46.102.100.197 port 443
> [tcp @ 000001885b2efac0] Starting connection attempt to 46.102.100.197
> port 443
> [tcp @ 000001885b2efac0] Successfully connected to 46.102.100.197 port
> 443
> [https @ 000001885b2eca00] request: GET
> /enc111/kapitanbomba/kapitanbomba.mpd HTTP/1.1
> User-Agent: Lavf/59.34.101
> Accept: */*
> Range: bytes=0-
> Connection: close
> Host: live001.cda.pl
> Icy-MetaData: 1
>

> [dash @ 000001885b2ef1c0] Format dash probed with size=2048 and score=100
> [https @ 000001885b2eb640] Setting default whitelist
> 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
> [tcp @ 0000018861faee80] Original list of addresses:
> [tcp @ 0000018861faee80] Address 46.102.100.197 port 443
> [tcp @ 0000018861faee80] Interleaved list of addresses:
> [tcp @ 0000018861faee80] Address 46.102.100.197 port 443
> [tcp @ 0000018861faee80] Starting connection attempt to 46.102.100.197
> port 443
> [tcp @ 0000018861faee80] Successfully connected to 46.102.100.197 port
> 443
> [https @ 000001885b2eb640] request: GET
> /enc111/kapitanbomba/kapitanbomba.mpd HTTP/1.1
> User-Agent: Lavf/59.34.101
> Accept: */*
> Connection: close
> Host: live001.cda.pl
> Icy-MetaData: 1
>

> [AVIOContext @ 0000018862019d40] Statistics: 11719 bytes read, 0 seeks
> [dash @ 000001885b2ef1c0] DASH request for url
> 'https://live001.cda.pl/enc111/kapitanbomba/vi_1080_1668835006.mp4',
> offset 0
> [https @ 0000018861e82440] Setting default whitelist
> 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
> [tcp @ 0000018861f17580] Original list of addresses:
> [tcp @ 0000018861f17580] Address 46.102.100.197 port 443
> [tcp @ 0000018861f17580] Interleaved list of addresses:
> [tcp @ 0000018861f17580] Address 46.102.100.197 port 443
> [tcp @ 0000018861f17580] Starting connection attempt to 46.102.100.197
> port 443
> [tcp @ 0000018861f17580] Successfully connected to 46.102.100.197 port
> 443
> [https @ 0000018861e82440] request: GET
> /enc111/kapitanbomba/vi_1080_1668835006.mp4 HTTP/1.1
> User-Agent: Lavf/59.34.101
> Accept: */*
> Connection: close
> Host: live001.cda.pl
> Icy-MetaData: 1
>

> [dash @ 000001885b2ef1c0] Downloading an initialization section of size
> 1656
> [AVIOContext @ 000001886216c840] Statistics: 1656 bytes read, 0 seeks
> [dash @ 000001885b2ef1c0] DASH request for url
> 'https://live001.cda.pl/enc111/kapitanbomba/vs_1080_1668835006_2995380000.mp4',
> offset 0
> [https @ 0000018861e82440] Setting default whitelist
> 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
> [tcp @ 0000018861f17580] Original list of addresses:
> [tcp @ 0000018861f17580] Address 46.102.100.197 port 443
> [tcp @ 0000018861f17580] Interleaved list of addresses:
> [tcp @ 0000018861f17580] Address 46.102.100.197 port 443
> [tcp @ 0000018861f17580] Starting connection attempt to 46.102.100.197
> port 443
> [tcp @ 0000018861f17580] Successfully connected to 46.102.100.197 port
> 443
> [https @ 0000018861e82440] request: GET
> /enc111/kapitanbomba/vs_1080_1668835006_2995380000.mp4 HTTP/1.1
> User-Agent: Lavf/59.34.101
> Accept: */*
> Connection: close
> Host: live001.cda.pl
> Icy-MetaData: 1
>

> [https @ 0000018861e82440] HTTP error 404 Not Foundq=    0B f=0/0
> [dash @ 000001885b2ef1c0] Failed to open fragment of playlist
> [https @ 000001885b2eb080] Setting default whitelist
> 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
> [tcp @ 0000018861e82440] Original list of addresses:
> [tcp @ 0000018861e82440] Address 46.102.100.197 port 443
> [tcp @ 0000018861e82440] Interleaved list of addresses:
> [tcp @ 0000018861e82440] Address 46.102.100.197 port 443
> [tcp @ 0000018861e82440] Starting connection attempt to 46.102.100.197
> port 443
> [tcp @ 0000018861e82440] Successfully connected to 46.102.100.197 port
> 443
> [https @ 000001885b2eb080] request: GET
> /enc111/kapitanbomba/kapitanbomba.mpd HTTP/1.1
> User-Agent: Lavf/59.34.101
> Accept: */*
> Connection: close
> Host: live001.cda.pl
> Icy-MetaData: 1
> }}}
> Real time example, ffplay tries to play, which fails
> {{{
> https://live001.cda.pl/enc111/kapitanbomba/vs_1080_1668835006_2995380000.mp4
> }}}
> at the same time browser gets, which works just fine
> {{{
> https://live001.cda.pl/enc111/kapitanbomba/vs_1080_1668835006_2992140000.mp4
> }}}
>
> Other application handles that case just fine, so I think its something
> that ffplay has to improve.
> Leaving the key so devs can reproduce, will remove if requested.

New description:

 ffplay seems to grab wrong time, resulting in 404ing the segment fragments
 {{{
 ffplay -cenc_decryption_key "<cut, not relevant to the issue>" -i
 "https://live001.cda.pl/enc111/kapitanbomba/kapitanbomba.mpd" -loglevel
 debug
 ffplay version 2022-11-03-git-5ccd4d3060-essentials_build-www.gyan.dev
 Copyright (c) 2003-2022 the FFmpeg developers
   built with gcc 12.1.0 (Rev2, 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-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-
 avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265
 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx
 --enable-mediafoundation --enable-libass --enable-libfreetype --enable-
 libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-
 amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec
 --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-
 libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
 --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-
 libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis
 --enable-librubberband
   libavutil      57. 40.100 / 57. 40.100
   libavcodec     59. 51.101 / 59. 51.101
   libavformat    59. 34.101 / 59. 34.101
   libavdevice    59.  8.101 / 59.  8.101
   libavfilter     8. 49.101 /  8. 49.101
   libswscale      6.  8.112 /  6.  8.112
   libswresample   4.  9.100 /  4.  9.100
   libpostproc    56.  7.100 / 56.  7.100
 Initialized direct3d renderer.
 [NULL @ 000001885b2ef1c0] Opening
 'https://live001.cda.pl/enc111/kapitanbomba/kapitanbomba.mpd' for reading
 [https @ 000001885b2eca00] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [tcp @ 000001885b2efac0] Original list of addresses:
 [tcp @ 000001885b2efac0] Address 46.102.100.197 port 443
 [tcp @ 000001885b2efac0] Interleaved list of addresses:
 [tcp @ 000001885b2efac0] Address 46.102.100.197 port 443
 [tcp @ 000001885b2efac0] Starting connection attempt to 46.102.100.197
 port 443
 [tcp @ 000001885b2efac0] Successfully connected to 46.102.100.197 port 443
 [https @ 000001885b2eca00] request: GET
 /enc111/kapitanbomba/kapitanbomba.mpd HTTP/1.1
 User-Agent: Lavf/59.34.101
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: live001.cda.pl
 Icy-MetaData: 1


 [dash @ 000001885b2ef1c0] Format dash probed with size=2048 and score=100
 [https @ 000001885b2eb640] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [tcp @ 0000018861faee80] Original list of addresses:
 [tcp @ 0000018861faee80] Address 46.102.100.197 port 443
 [tcp @ 0000018861faee80] Interleaved list of addresses:
 [tcp @ 0000018861faee80] Address 46.102.100.197 port 443
 [tcp @ 0000018861faee80] Starting connection attempt to 46.102.100.197
 port 443
 [tcp @ 0000018861faee80] Successfully connected to 46.102.100.197 port 443
 [https @ 000001885b2eb640] request: GET
 /enc111/kapitanbomba/kapitanbomba.mpd HTTP/1.1
 User-Agent: Lavf/59.34.101
 Accept: */*
 Connection: close
 Host: live001.cda.pl
 Icy-MetaData: 1


 [AVIOContext @ 0000018862019d40] Statistics: 11719 bytes read, 0 seeks
 [dash @ 000001885b2ef1c0] DASH request for url
 'https://live001.cda.pl/enc111/kapitanbomba/vi_1080_1668835006.mp4',
 offset 0
 [https @ 0000018861e82440] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [tcp @ 0000018861f17580] Original list of addresses:
 [tcp @ 0000018861f17580] Address 46.102.100.197 port 443
 [tcp @ 0000018861f17580] Interleaved list of addresses:
 [tcp @ 0000018861f17580] Address 46.102.100.197 port 443
 [tcp @ 0000018861f17580] Starting connection attempt to 46.102.100.197
 port 443
 [tcp @ 0000018861f17580] Successfully connected to 46.102.100.197 port 443
 [https @ 0000018861e82440] request: GET
 /enc111/kapitanbomba/vi_1080_1668835006.mp4 HTTP/1.1
 User-Agent: Lavf/59.34.101
 Accept: */*
 Connection: close
 Host: live001.cda.pl
 Icy-MetaData: 1


 [dash @ 000001885b2ef1c0] Downloading an initialization section of size
 1656
 [AVIOContext @ 000001886216c840] Statistics: 1656 bytes read, 0 seeks
 [dash @ 000001885b2ef1c0] DASH request for url
 'https://live001.cda.pl/enc111/kapitanbomba/vs_1080_1668835006_2995380000.mp4',
 offset 0
 [https @ 0000018861e82440] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [tcp @ 0000018861f17580] Original list of addresses:
 [tcp @ 0000018861f17580] Address 46.102.100.197 port 443
 [tcp @ 0000018861f17580] Interleaved list of addresses:
 [tcp @ 0000018861f17580] Address 46.102.100.197 port 443
 [tcp @ 0000018861f17580] Starting connection attempt to 46.102.100.197
 port 443
 [tcp @ 0000018861f17580] Successfully connected to 46.102.100.197 port 443
 [https @ 0000018861e82440] request: GET
 /enc111/kapitanbomba/vs_1080_1668835006_2995380000.mp4 HTTP/1.1
 User-Agent: Lavf/59.34.101
 Accept: */*
 Connection: close
 Host: live001.cda.pl
 Icy-MetaData: 1


 [https @ 0000018861e82440] HTTP error 404 Not Foundq=    0B f=0/0
 [dash @ 000001885b2ef1c0] Failed to open fragment of playlist
 [https @ 000001885b2eb080] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [tcp @ 0000018861e82440] Original list of addresses:
 [tcp @ 0000018861e82440] Address 46.102.100.197 port 443
 [tcp @ 0000018861e82440] Interleaved list of addresses:
 [tcp @ 0000018861e82440] Address 46.102.100.197 port 443
 [tcp @ 0000018861e82440] Starting connection attempt to 46.102.100.197
 port 443
 [tcp @ 0000018861e82440] Successfully connected to 46.102.100.197 port 443
 [https @ 000001885b2eb080] request: GET
 /enc111/kapitanbomba/kapitanbomba.mpd HTTP/1.1
 User-Agent: Lavf/59.34.101
 Accept: */*
 Connection: close
 Host: live001.cda.pl
 Icy-MetaData: 1
 }}}
 Real time example, ffplay tries to play, which fails
 {{{
 https://live001.cda.pl/enc111/kapitanbomba/vs_1080_1668835006_2995380000.mp4
 }}}
 at the same time browser gets, which works just fine
 {{{
 https://live001.cda.pl/enc111/kapitanbomba/vs_1080_1668835006_2992140000.mp4
 }}}

 Other application handles that case just fine, so I think its something
 that ffplay has to improve.

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10054#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list