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

Add option to read in YouTube video as source #1

Open
nlitz88 opened this issue Jan 17, 2024 · 0 comments
Open

Add option to read in YouTube video as source #1

nlitz88 opened this issue Jan 17, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nlitz88
Copy link
Owner

nlitz88 commented Jan 17, 2024

I think one of the earliest/fastest ways people will be able to adopt this or play around with it is to just feed it a recording of their stream from YouTube. Therefore, if it's just to test it out, then I should add support in the video-source argument for supplying a link to a YouTube video and grabbing frames from there.

Also, I'm pretty sure supervision has functions for enabling this, so I'm betting it's something we can add fairly quickly.

Also, a YouTube STREAM is really the big target!

OR, in the future, if this system ends up as a docker system--just include a container that serves as an RTMP server. Then, set it up so that your existing streaming device just sends video to that RTMPs server container. Still not as flexible as just sending it straight up to YouTube, so may have to consider some alternatives.

It looks like Ultralytics has an RTMP input source, as well as a YouTube link. Not sure if the YouTube option supports live streaming yet: https://docs.ultralytics.com/modes/predict/#inference-sources

If not, there's a library called "pafy" that some people recommend for working with YouTube content: https://pythonhosted.org/pafy/

@nlitz88 nlitz88 added this to Chirp Jan 14, 2024
@nlitz88 nlitz88 self-assigned this Jan 17, 2024
@nlitz88 nlitz88 converted this from a draft issue Jan 17, 2024
@nlitz88 nlitz88 added the enhancement New feature or request label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🏗 In progress
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant