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

youtube support #45

Open
soredake opened this issue Nov 15, 2022 · 10 comments
Open

youtube support #45

soredake opened this issue Nov 15, 2022 · 10 comments
Assignees
Labels
feature request New feature whether it's Android-exclusive or not. miscellaneous just... miscellaneous

Comments

@soredake
Copy link

It would be nice if this can have youtube (and other sites) support with the help of yt-dlp like mpv on desktop.

@yuroyami yuroyami self-assigned this Nov 15, 2022
@b0s-at-works
Copy link

It would be nice if this can have youtube (and other sites) support with the help of yt-dlp like mpv on desktop.

Amazing idea! I have the same thought!

@b0s-at-works
Copy link

b0s-at-works commented Feb 2, 2023

Also, will be great to have that feature with ability to use custom utilities like aria2c and other utilities which are needed to add subtitles, add thumbnails and etc.
That means you have to have to set custom command line arguments for yt-dlp, and also you will be able to run yt-dlp with agrument that will allow you to update yt-dlp as yt-dlp by itself supports self updating.
Also will be funny if you will be able to play also youtube chat which can be saved in JSON file

But anyway it's up to you.

@yuroyami
Copy link
Owner

yuroyami commented Feb 2, 2023

Perks of writing Syncplay PC in Python made it possible to make use utilities and scripts like yt-dl to scrape and fetch YouTube videos. However, given the fact that Python is not directly supported in the Android ecosystem, I will have to resort to creating my own script to fetch YouTube videos. Google doesn't want anyone to watch their videos without Ads which is why they're restricting the way their video streams are exposed. There are some workarounds which I might implement to make this a possibility, probably even make it possible to import YouTube playlists as shared playlists.

As for subtitles, that is definitely possible. Many subtitle providers (like opensub) provide API endpoints to grab subtitles. I am considering that as well.

@soredake
Copy link
Author

soredake commented Feb 2, 2023

https://github.com/JunkFood02/Seal is an example of android app that uses yt-dlp without any problem.

@yuroyami
Copy link
Owner

yuroyami commented Feb 2, 2023

@soredake Seal and similar libraries wrap JPython, FFmpeg, aria2c and yt-dlp at the cost of performance overhead and huge APK size. The APK is already large imo, rewriting the python libraries would be more utile, but should that turn out to be a valid workaround for now effort-wise and time-consumption-wise, I will go with it.

@soredake
Copy link
Author

soredake commented Feb 2, 2023

Seal weight only 70mb (app) + 67mb (data), not so much.

I will have to resort to creating my own script to fetch YouTube videos.

Youtube is constantly making changes that break yt-dlp and multiple devs fix it without end, doing this alone will require many time and constant app updates to catch up with youtube changes.

@b0s-at-works
Copy link

Seal weight only 70mb (app) + 67mb (data), not so much.

I will have to resort to creating my own script to fetch YouTube videos.

Youtube is constantly making changes that break yt-dlp and multiple devs fix it without end, doing this alone will require many time and constant app updates to catch up with youtube changes.

Thats why I've said that yt-dlp can be self updated. That utility itself have ability to download it's own new version

@b0s-at-works
Copy link

@soredake Seal and similar libraries wrap JPython, FFmpeg, aria2c and yt-dlp at the cost of performance overhead and huge APK size. The APK is already large imo, rewriting the python libraries would be more utile, but should that turn out to be a valid workaround for now effort-wise and time-consumption-wise, I will go with it.

It doesn't matter whether you will make it or not. Just saying: Nice to have you! Have a great development!

@yuroyami yuroyami added feature request New feature whether it's Android-exclusive or not. miscellaneous just... miscellaneous and removed Video Player labels Apr 13, 2024
@girlmaya
Copy link

girlmaya commented Jul 1, 2024

Possibly useful mpv-android/mpv-android#58

@7heMech
Copy link

7heMech commented Sep 1, 2024

You could just download them using: https://github.com/deniscerri/ytdlnis
No real need to implement in the app.

Edit: I tried the app out, and now I understand why you guys would want this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature whether it's Android-exclusive or not. miscellaneous just... miscellaneous
Projects
None yet
Development

No branches or pull requests

5 participants