Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zd-project opened this issue Oct 29, 2024 · 1 comment
Open

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

zd-project opened this issue Oct 29, 2024 · 1 comment

Comments

@zd-project
Copy link

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 zd-project changed the title Not Accept Error (406) on fetching the mpd file. Error 406 (Not Acceptable) on fetching the mpd file. Oct 29, 2024
@emarsden
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants