Opened 3 years ago

Closed 3 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)

ffmpeg-20190826-175812.log (5.3 KB ) - added by giwiniswut 3 years ago.

Download all attachments as: .zip

Change History (8)

by giwiniswut, 3 years ago

Attachment: ffmpeg-20190826-175812.log added

comment:1 by Carl Eugen Hoyos, 3 years ago

Component: undeterminedavformat
Keywords: dash added; mpd removed

comment:2 by Steven Liu, 3 years ago

Try this patch please,
https://patchwork.ffmpeg.org/patch/14779/

Whatever, the dash demuxer have not support encryption mpd yet now, patch welcome.

comment:3 by giwiniswut, 3 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?

in reply to:  3 comment:4 by Steven Liu, 3 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.

comment:5 by giwiniswut, 3 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?

in reply to:  5 comment:6 by Steven Liu, 3 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 Carl Eugen Hoyos, 3 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.