emarsden / dash-mpd-cli

Download media content from a DASH-MPEG or DASH-WebM MPD manifest
https://emarsden.github.io/dash-mpd-cli/
MIT License
320 stars 32 forks source link

Error 406 (Not Acceptable) on fetching the mpd file. #96

Open zd-project opened 2 weeks ago

zd-project commented 2 weeks ago

I got stuck on the first step getting the Dash manifest

% podman run --rm -v .:/content ghcr.io/emarsden/dash-mpd-cli -v --enable-live-streams \
    "path/to/mpd.mpd?<additional_token_and_param>" -o foo.mp4

08:08:22  INFO Fetching the DASH manifest
08:08:22 ERROR Download failed: network error "requesting DASH manifest: reqwest::Error 
   { kind: Status(406), url: \"<url>\" }"

Any suggestion how this can be resolved? I tried to override the header with -H 'Accept: */*', but it didn't resolve the issue.

emarsden commented 2 weeks ago

You could try modifying the user-agent header with the --user-agent commandline option. Also make sure the manifest is still accessible in your browser; sometimes the token is very short-lived.