Opened 5 years ago
Closed 5 years ago
#8097 closed defect (fixed)
MPD: BaseURL twice in URL for init.mp4
Reported by: | giwiniswut | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | dash |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
I'm trying to download the livestream at https://www.prosieben.de/livestream. (I hope there is no geoblocking on this, so it can be tested outside of germany.)
For this, i have obtained an MPD file URL using Firefox developer tools' network tab while playing the stream.
I believe this file to be the correct MPEG-DASH manifest for capturing said livestream.
However, when trying to open the stream using ffmpeg -i <MPD URL>
or ffmpeg -i <MPD URL> -c copy stream.ts
, i am getting a 404 error.
Investigating the ffmpeg trace log showed that ffmpeg fails to download the init.mp4 file due to this 404 error. By taking a closer look in line 68 of the log it shows that ffmpeg is trying to download the init.mp4 file from an URL that contains the MPD BaseURL twice. Removing one of those two occurences of the BaseURL fixes the URL; i.e. trying to open it returns a file download and no 404 error.
I'm not sure if this is a fault in the MPD file itself or if i'm missing any ffmpeg options neccessary or helpful in this case but i can't help myself but suspect that this is actually a bug.
How to reproduce:
Make sure you have a working interenet connection, then run ffmpeg command as stated in attached logfile:
ffmpeg -report -v 9 -loglevel 99 -i https://psdlv001-a.akamaihd.net/d9f5c007/t_001/prosieben-de/cenc-default.mpd
Attachments (1)
Change History (8)
by , 5 years ago
Attachment: | ffmpeg-20190826-175812.log added |
---|
comment:1 by , 5 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | dash added; mpd removed |
comment:2 by , 5 years ago
follow-up: 4 comment:3 by , 5 years ago
Thank you very much for your attention to my bug report and for your patch.
After some fiddling with the dependencies and options i managed to build ffmpeg from source and with your patch. It works just like a charm.
Concerning encryption: I'm sorry! It completely slipped to me that this stream is DRM protected - i had the DRM Content option activated in firefox without knowing it.
So i guess this bug would be fixed with this patch but no hope with DRM am i right?
comment:4 by , 5 years ago
Replying to giwiniswut:
Thank you very much for your attention to my bug report and for your patch.
After some fiddling with the dependencies and options i managed to build ffmpeg from source and with your patch. It works just like a charm.
Concerning encryption: I'm sorry! It completely slipped to me that this stream is DRM protected - i had the DRM Content option activated in firefox without knowing it.
So i guess this bug would be fixed with this patch but no hope with DRM am i right?
Yes, DRM is another problem, i think i need make basic function without DRM can be run, DRM i cannot sure when i can support, you can submit patch if you want support DRM.
follow-up: 6 comment:5 by , 5 years ago
Is it even possible to do this? After all, DRM is designed not to be circumvented. What could we do about it within ffmpeg?
comment:6 by , 5 years ago
Replying to giwiniswut:
Is it even possible to do this? After all, DRM is designed not to be circumvented. What could we do about it within ffmpeg?
Patch welcome.
comment:7 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed by Steven Liu in 2a21487b9ea1ec5f24a9f09cd3845fa2eb6ed383
Try this patch please,
https://patchwork.ffmpeg.org/patch/14779/
Whatever, the dash demuxer have not support encryption mpd yet now, patch welcome.