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 With YouTube Live #16
Comments
@jbwps Thanks for pointing this out, A bug is discovered as follows: Bug Summary:
|
@jbwps Fixed! Kindly test testing branch by strictly following steps:
sudo pip3 install -U opencv-python For more info., see issue #14
git clone https://github.com/abhiTronix/vidgear.git
cd vidgear
git checkout testing
sudo pip install .
cd
# import libraries
from vidgear.gears import CamGear
import cv2
stream = CamGear(source='https://youtu.be/Nk4HAS-HOr4', y_tube =True, time_delay=1, logging=True).start() # YouTube Video URL as input
# infinite loop
while True:
frame = stream.read()
# read frames
# check if frame is None
if frame is None:
#if True break the infinite loop
break
# do something with frame here
cv2.imshow("Output Frame", frame)
# Show output window
key = cv2.waitKey(1) & 0xFF
# check for 'q' key-press
if key == ord("q"):
#if 'q' key-pressed break out
break
cv2.destroyAllWindows()
# close output window
stream.stop()
# safely close video stream. |
Resolved in 03ec554 . Feel free to reopen, if something doesn't works for you. |
I'm using CamGear and the following live youtube url: https://www.youtube.com/watch?v=ZWcV3g23c8Y&ab_channel=CNN-News18 After about 40 seconds, the livestream terminates and I get the following errors: |
@imranilyas Bug in FFmpeg, see Issue #133. Being worked on in issue #160 |
This is what comes up when I run print(cv2.getBuildInformation())
Since GStreamer isn't available, what can I use as a substitute for the
backend parameter in the CamGear function?
Video I/O:
DC1394: NO
FFMPEG: YES (prebuilt binaries)
avcodec: YES (58.54.100)
avformat: YES (58.29.100)
avutil: YES (56.31.100)
swscale: YES (5.5.100)
avresample: YES (4.0.0)
GStreamer: NO
DirectShow: YES
Media Foundation: YES
DXVA: NO
…On Mon, Nov 23, 2020 at 11:03 PM Abhishek Thakur ***@***.***> wrote:
@imranilyas <https://github.com/imranilyas> Bug in FFmpeg, see Issue #133
<#133>. Being worked on in
issue #160 <#160>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQLGEP4753YLYSJZLBKHB23SRNKZRANCNFSM4HPJP7PA>
.
|
@imranilyas Nothing else works for now, you have to wait for #160 to be resolved. |
I'm running the example code to use a live YouTube stream as a video source, but am receiving an error:
"YouTube Mode is enabled and the input YouTube Url is invalid!"
I'm using the sample code verbatim, and only changed the YouTube URL to a live stream (https://youtu.be/Nk4HAS-HOr4) instead of the Rick Roll video.
I'm pretty sure all of my packages are up to date, including youtube-dl
The text was updated successfully, but these errors were encountered: