dash-mpd-cli icon indicating copy to clipboard operation
dash-mpd-cli copied to clipboard

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

Open zd-project opened this issue 1 year ago • 1 comments

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.

zd-project avatar Oct 29 '24 08:10 zd-project

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.

emarsden avatar Oct 29 '24 20:10 emarsden