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

How to download stream from pscp.tv? #936

Closed
4 tasks
Truanifan opened this issue May 21, 2017 · 2 comments
Closed
4 tasks

How to download stream from pscp.tv? #936

Truanifan opened this issue May 21, 2017 · 2 comments
Labels

Comments

@Truanifan
Copy link


Checklist

  • This is a bug report.
  • This is a feature request.
  • This is a plugin (improvement) request.
  • I have read the contribution guidelines.

Description

This is more or a question than a bug or feature request. I'm trying to download the stream from pscp.tv, but I'm not sure how. This is the first time I've encountered the error "401 Client Error: replay requires cookie auth for url" from streamlink and I'm not sure how to add the cookie auth. I looked at the command-line documentation, but I've no idea how to add it. If it's possible to add support for pscp.tv that'd be great, but I'll settle for help downloading this one video. Thanks in advance.

Reproduction steps / Explicit stream URLs to test

  1. Find and copy m3u8 url from https://www.pscp.tv/atomtb_anime/1YqKDwbqXLNxV
  2. streamlink "hls://https://prod-video-eu-central-1.pscp.tv/78ra98MLq2QPXE9nNztM_VnIM60ax7vhGBgN9e8esaAuwe0GH3J1zJ6-3wLtpZCJY0m1plZBkq-gGPRRgZh1ug/replay/eu-central-1/periscope-replay-direct-prod-eu-central-1-public/playlist_16951451490713662630.m3u8" best -o "file.ts"

(I don't think you need a VPN connection...)

Environment details

Operating system and version: Windows 7 64-bit
Streamlink and Python version: Streamlink ver. 0.40; Python ver. 2.7.12

Comments, logs, screenshots, etc.

streamlink "hls://https://prod-video-eu-central-1.pscp.tv/78ra98M
Lq2QPXE9nNztM_VnIM60ax7vhGBgN9e8esaAuwe0GH3J1zJ6-3wLtpZCJY0m1plZBkq-gGPRRgZh1ug/
replay/eu-central-1/periscope-replay-direct-prod-eu-central-1-public/playlist_16
951451490713662630.m3u8" best -o "video.ts"
[cli][info] Found matching plugin stream for URL hls://https://prod-video-eu-cen
tral-1.pscp.tv/78ra98MLq2QPXE9nNztM_VnIM60ax7vhGBgN9e8esaAuwe0GH3J1zJ6-3wLtpZCJY
0m1plZBkq-gGPRRgZh1ug/replay/eu-central-1/periscope-replay-direct-prod-eu-centra
l-1-public/playlist_16951451490713662630.m3u8
[cli][info] Available streams: live (best, worst)
[cli][info] Opening stream: live (hls)
[cli][error] Could not open stream: Unable to open URL: https://prod-video-eu-ce
ntral-1.pscp.tv/78ra98MLq2QPXE9nNztM_VnIM60ax7vhGBgN9e8esaAuwe0GH3J1zJ6-3wLtpZCJ
Y0m1plZBkq-gGPRRgZh1ug/replay/eu-central-1/periscope-replay-direct-prod-eu-centr
al-1-public/playlist_16951451490713662630.m3u8 (401 Client Error: replay require
s cookie auth for url: https://prod-video-eu-central-1.pscp.tv/78ra98MLq2QPXE9nN
ztM_VnIM60ax7vhGBgN9e8esaAuwe0GH3J1zJ6-3wLtpZCJY0m1plZBkq-gGPRRgZh1ug/replay/eu-
central-1/periscope-replay-direct-prod-eu-central-1-public/playlist_169514514907
13662630.m3u8)

@zp
Copy link
Contributor

zp commented May 22, 2017

You can either upgrade to version 0.5.0 (or higher) for pscp.tv link support, or just use the old periscope url

streamlink https://www.periscope.tv/atomtb_anime/1YqKDwbqXLNxV best -o file.ts

@bastimeyer
Copy link
Member

Going to close the thread, since this the question has been answered (thanks @zp) and the plugin
has been fixed in one of the recent streamlink releases.

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

No branches or pull requests

4 participants
@zp @bastimeyer @Truanifan and others