[FFmpeg-devel] Ffmpeg/ffprobe not work well with a DASH stream

Chang, Xiangzhong xiangzhong.chang at telia.no
Thu Nov 17 15:59:32 EET 2022


Hi,

Thank you so much for this amazing project. I’ve found this project has been extremely useful for me.
I’ve found out that ffmpeg/ffplay does not work well with one of our DASH streams. In comparison, I’ve tried the following players

  1.  ExoPlayer
  2.  DASH-JS player<https://reference.dashif.org/dash.js/v4.5.1/samples/dash-if-reference-player/index.html>
  3.  Bitmovin JS player<https://bitmovin.com/demos/stream-test?format=dash&manifest=https%3A%2F%2Fdirector.livecdn.teliaplay.net%2Fnotvm%2Fmso%2FTV_1HD%2Fdash%2Fmanifest.mpd>

I was using the following script trying to probe/transcoding one of our DASH stream.
```
ffprobe_g  -loglevel debug "https://director.livecdn.teliaplay.net/notvm/mso/TV_1HD/dash/manifest.mpd?abs_begin=2022-11-16T08:00:00Z&is_live&no_dolby"
```

The following log have drawn my attention. It seems like ffprobe has failed to download some file chunks.
```
[dash @ 0x55b477e86880] DASH request for url 'https://director.livecdn.teliaplay.net/notvm/mso/TV_1HD/dash/video-stream-1-150182387590546.mp4', offset 0
[tcp @ 0x55b477f09080] Starting connection attempt to 84.208.9.142 port 443
[tcp @ 0x55b477f09080] Successfully connected to 84.208.9.142 port 443
[tcp @ 0x55b477ed0f00] Starting connection attempt to 84.208.9.21 port 443
[tcp @ 0x55b477ed0f00] Successfully connected to 84.208.9.21 port 443
[https @ 0x55b477eee1c0] HTTP error 404 Not Found
```

However, when I was using wget to download it, all works out
```
hhk9417 at HC994R6KQD:~/Desktop$ wget https://director.livecdn.teliaplay.net/notvm/mso/TV_1HD/dash/video-stream-1-150182387590546.mp4
--2022-11-17 14:53:30--  https://director.livecdn.teliaplay.net/notvm/mso/TV_1HD/dash/video-stream-1-150182387590546.mp4
Resolving director.livecdn.teliaplay.net (director.livecdn.teliaplay.net)... 84.208.9.75, 84.208.9.76, 84.208.9.141, ...
Connecting to director.livecdn.teliaplay.net (director.livecdn.teliaplay.net)|84.208.9.75|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://m323-cdne01.livecdn.teliaplay.net/notvm/mso/TV_1HD/dash/video-stream-1-150182387590546.mp4 [following]
--2022-11-17 14:53:30--  https://m323-cdne01.livecdn.teliaplay.net/notvm/mso/TV_1HD/dash/video-stream-1-150182387590546.mp4
Resolving m323-cdne01.livecdn.teliaplay.net (m323-cdne01.livecdn.teliaplay.net)... 84.208.9.21
Connecting to m323-cdne01.livecdn.teliaplay.net (m323-cdne01.livecdn.teliaplay.net)|84.208.9.21|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1293307 (1,2M) [video/mp4]
Saving to: ‘video-stream-1-150182387590546.mp4’

video-stream-1-150182387590546.mp4              100%[=====================================================================================================>]   1,23M  --.-KB/s    in 0,02s

2022-11-17 14:53:30 (50,8 MB/s) - ‘video-stream-1-150182387590546.mp4’ saved [1293307/1293307]
```

Regarding the FFmpeg SDK, I’m using the latest master branch, I’ve compiled it from scratch. The following are my compilation configs
```
--enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-filter=delogo --enable-debug --disable-optimizations --enable-libspeex --enable-shared --enable-pthreads --enable-vaapi --enable-ffplay --disable-stripping --enable-debug=3 --enable-libopus --enable-libv4l2 --enable-zlib --enable-vaapi --enable-pthreads --enable-vdpau --enable-xlib --enable-libv4l2 --enable-libfreetype --enable-demuxer=dash --enable-libxml2 --enable-libaom --enable-libx265 --enable-openssl"
#define FFMPEG_LICENSE "nonfree and unredistributable
```

Cheers.




This email may contain information which is privileged or protected against unauthorized disclosure or communication. If you are not the intended recipient, please notify the sender and delete this message and any attachments from your system without producing, distributing or retaining copies thereof or disclosing its contents to any other person.

Telia Company processes emails and other files that may contain personal data in accordance with Telia Company’s Privacy Policy<https://www.teliacompany.com/en/about-the-company/privacy/>.




More information about the ffmpeg-devel mailing list