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

[Bug]: Facing Issue In Some Youtube Link due to HTTP Dash Segment #314

Closed
3 tasks done
DynamiteC opened this issue Jun 16, 2022 · 8 comments · Fixed by #313 or #321
Closed
3 tasks done

[Bug]: Facing Issue In Some Youtube Link due to HTTP Dash Segment #314

DynamiteC opened this issue Jun 16, 2022 · 8 comments · Fixed by #313 or #321
Assignees
Labels
BUG 🐛 Vidgear api's error, flaw or fault SOLVED 🏁 This issue/PR is resolved now. Goal Achieved!
Milestone

Comments

@DynamiteC
Copy link

DynamiteC commented Jun 16, 2022

Brief Description

Kindly briefly explain the issue here.

Acknowledgment

Environment

  • VidGear version: 0.2.5"` -->
  • Branch: Master -->
  • Python version: 3.9.13 -->
  • PiP version: 22.1.2 -->
  • Operating System and version: Ubuntu 18.04

Expected Behavior

Streams should be readable by videoCapture when fetched using youtube dl

Actual Behavior

Streams are fetched but when considering either the best stream resolution or 720p the extracted streams give the result of dash segment video

Possible Fix

I have created a pull request to resolve this.

Steps to reproduce

(Write your steps here:)

  1. Take any youtube URL, for example Live Match
  2. Enable Stream Mode and Logging
  3. Start Reading the frames.
from vidgear.gears import CamGear

stream = CamGear(
    source='https://www.youtube.com/watch?v=t9MkJWxj3M0',
    stream_mode=True,
    logging=True,
).start()
test = stream.read()


def start_stream():
    while (1):
        frame = stream.read()
        if frame is None:
            break

if __name__ == '__main__':
    start_stream()

Optional

Screenshot from 2022-06-16 12-14-03

@welcome
Copy link

welcome bot commented Jun 16, 2022

Thanks for opening this issue, a maintainer will get back to you shortly!

In the meantime:

  • Read our Issue Guidelines, and update your issue accordingly. Please note that your issue will be fixed much faster if you spend about half an hour preparing it, including the exact reproduction steps and a demo.
  • Go comprehensively through our dedicated FAQ & Troubleshooting section.
  • For any quick questions and typos, please refrain from opening an issue, as you can reach us on Gitter community channel.

@abhiTronix abhiTronix added BUG 🐛 Vidgear api's error, flaw or fault BUG CONFIRMED ✅ Bug is confirmed! WORK IN PROGRESS 🚧 currently been worked on. UNDER CONSIDERATION 🤔 This issue/PR is under consideration and may be worked on soon. labels Jun 16, 2022
@abhiTronix abhiTronix linked a pull request Jun 16, 2022 that will close this issue
6 tasks
@abhiTronix
Copy link
Owner

Related #16 #133

@abhiTronix

This comment was marked as resolved.

@abhiTronix abhiTronix removed the UNDER CONSIDERATION 🤔 This issue/PR is under consideration and may be worked on soon. label Jun 16, 2022
@abhiTronix abhiTronix added this to the 0.2.6 milestone Jun 16, 2022
@abhiTronix abhiTronix added this to To do in VidGear v0.2.6 via automation Jun 16, 2022
@abhiTronix abhiTronix moved this from To do to In progress in VidGear v0.2.6 Jun 16, 2022
@DynamiteC

This comment was marked as resolved.

@abhiTronix

This comment was marked as resolved.

@DynamiteC

This comment was marked as resolved.

@abhiTronix

This comment was marked as resolved.

abhiTronix added a commit that referenced this issue Jun 17, 2022
…. [PR #313]  (Fixes #314)

- Fixes Youtube-dl generated HTTP DASH Segments URLs not supported by OpenCV's VideoCapture(Patch by @DynamiteC)
@abhiTronix abhiTronix removed BUG CONFIRMED ✅ Bug is confirmed! WORK IN PROGRESS 🚧 currently been worked on. labels Jun 17, 2022
@abhiTronix
Copy link
Owner

Successfully resolved and merged in commit f0d2dad

VidGear v0.2.6 automation moved this from In progress to Done Jun 17, 2022
@abhiTronix abhiTronix added the SOLVED 🏁 This issue/PR is resolved now. Goal Achieved! label Jun 17, 2022
@abhiTronix abhiTronix linked a pull request Jul 5, 2022 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG 🐛 Vidgear api's error, flaw or fault SOLVED 🏁 This issue/PR is resolved now. Goal Achieved!
Projects
No open projects
2 participants