Aleksoid1978 / MPC-BE

MPC-BE – универсальный проигрыватель аудио и видеофайлов для операционной системы Windows.
GNU General Public License v3.0
2.21k stars 90 forks source link

Add support of cookies arguments commands of yt-dlp "--cookies-from-browser firefox" to play restircted videos of twitter #535

Closed trimechee closed 2 months ago

trimechee commented 2 months ago

Hello, yesterday i tried to play twitter videos because videos on twitter are very heavy and lag freeze even lowest quality in my old laptop, i tried with Mpc-be, Mpc-hc, smplayer, potplayer with 3DYD Youtube Source plugin, qmplay2...all these players fails to play twitter videos and have message that i should add cookies commands like --cookies-from-browser firefox....

i am not expert, i tired to add --cookies-from-browser firefox to the yt-dlp engines of these media players but no video playback :(

my idea please is that media player allows to support or add cookies yt-dlp commands arguments --cookies-from-browser firefox --cookies-from-browser chrome --cookies-from-browser r3dfox ........to video stream detected so we can avoid possible bugs and we could playback restirctid videos of twitter in vlc or potplayer or smplayer...thank you very much!

Aleksoid1978 commented 2 months ago

Not planned.

v0lt commented 2 months ago

my idea please is that media player allows to support or add cookies yt-dlp commands arguments --cookies-from-browser firefox --cookies-from-browser chrome --cookies-from-browser r3dfox ........to video stream detected so we can avoid possible bugs and we could playback restirctid videos of twitter in vlc or potplayer or smplayer...thank you very much!

Have you tested your idea?

trimechee commented 2 months ago

Hello Mr @v0lt , my idea is to suggest to media players to implement this option haha, I talked to the developer of Mpc hc who told me to see this documentation:

https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#configuration

but I didn't understand how to do it...I'm not an expert, I don't understand complicated technical things, I also contacted the developer of 3D youtube source to implement cookies argument optin but I don't know if he will add that ....

stream detector allows to add yt-dlp arguments to the video stream but is no longer updated

https://github.com/54ac/stream-detector

Media downloader has an option to read links with a media player in batch downoader section, and we can add command arguments in media downoader like the cookies one, but the problem media downloader offers audio only and video only streams, apparently there is a bug:

https://github.com/mhogomchungu/media-downloader

even some facebook videos require cookies, it is a message from yt-dlp who asked me to add cookies, there are videos of fights in twitter and twitter classifies them as violent and therefore cookies are needed to read these videos....

anyway Mpc-be is compatible with 3d youtube source and that's the main thing, thank you very much!

i also asked the developer of open in vlc and external button application to add a yt-dlp arguments cookies feature....

v0lt commented 2 months ago

I asked you about something else. The topic is closed, because there is no solution, not even tests.

In any case, reread the "Terms of Use" of the service you need.