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

[PBS] Downloading lowest quality #1598

Closed
bchandos opened this issue Oct 13, 2013 · 2 comments
Closed

[PBS] Downloading lowest quality #1598

bchandos opened this issue Oct 13, 2013 · 2 comments
Labels

Comments

@bchandos
Copy link

@bchandos bchandos commented Oct 13, 2013

I tried several PBS videos and each time, the lowest quality stream was downloaded (usually 284p). "-f" and "--max-quality" did nothing. Looking at the extractor, it gets the URL from "alternate_encoding" which in the JSON, calls a file with eeid "mp4-baseline-16x9". I believe "recommended_encoding" should be used as it calls eeid "hls-2500k-16x9" which I believe to be the highest resolution stream. Unfortunately, I lack even the basic skills to test this!

Example URL: http://video.pbs.org/video/2365089043/
Relevant JSON: http://video.pbs.org/videoInfo/2365089043/?format=json

Edit: I should note that web player offers a range of quality streams, from 720p down. The URL provided by "alternate_coding" resolves directly to a video stream, while the URL provided by "recommended_encoding" resolves in a m3u8 file, and lists a mime-type of "application/x-mpegURL".

@bchandos
Copy link
Author

@bchandos bchandos commented Oct 14, 2013

I have ZERO python experience, but curiosity drove me to mess around with my local copy. I noticed that there is an m3u8 handling function. But when I passed the URL from "recommended_encoding" it did not get called because the URL is a redirect. I used urllib to pass the redirected URL:

Old
'url': info['alternate_encoding']['url'],

New
'url': urllib.urlopen(info['recommended_encoding']['url']).geturl(),

This did invoke _download_m3u8_with_ffmpeg and it started ... doing stuff ... but resulted in:

[buffer @ 0x2973140] Invalid pixel format string '-1'
Error opening filters!
ERROR: ffmpeg exited with code 1

I tried 3 different videos with the same result.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 15, 2015

PBS HD is supported in the latest version.

@dstftw dstftw closed this May 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.