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

Not able to stream live on youtube #18

Closed
SagarVirpara opened this issue Dec 23, 2018 · 2 comments
Closed

Not able to stream live on youtube #18

SagarVirpara opened this issue Dec 23, 2018 · 2 comments

Comments

@SagarVirpara
Copy link

No description provided.

@fspider
Copy link

fspider commented Nov 24, 2019

Hello!
Can you show me sample code which stream live from youtube?
This is Youtube live stream URL https://youtu.be/17Deeq8N2e4

I have been coded with videgear library. But i can't get resolution and fps before streaming
Is this possible with Pylivestream?
If the please Share you example code.

import libraries

from vidgear.gears import CamGear
import cv2

stream = CamGear(source='https://youtu.be/17Deeq8N2e4', y_tube = True, logging=True).start() # YouTube Video URL as input

infinite loop

while True:
frame = stream.read()

@scivision
Copy link
Owner

https://github.com/scivision/PyLivestream/blob/master/pylivestream/utils.py#L90

which uses FFprobe JSON output. It assumes there's only one video stream and uses its parameters--here, the resolution

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

3 participants