Aleksoid1978 / MPC-BE

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

Impossible to playback the official streams of bein sport youtube live channel so please add the new important feature of Mpc-hc which add the useragent and referrer to fix this bug #533

Closed trimechee closed 1 month ago

trimechee commented 1 month ago

Hello, i watch the official bein sports channels youtube live for middle east to watch the olympics games and sadly, Mpc-be even with 3DYD Youtube Source :

https://ys.3dyd.com/

Mpc-be can't playback streams from beisport youtube live channels :

https://www.youtube.com/watch?v=vi8CCsh5VQg

https://www.youtube.com/@beINSPORTS/streams

yesterday Mpc-hc adds new capital feature : "When opening an URL extracted by yt-dlp, the useragent and referrer are now used by LAV Splitter. This should fix/improve playback of streams that require those parameters."

https://github.com/clsid2/mpc-hc/releases/

so we hope please Mpc-be will also add this important feature of user agent and referrer to maybe fix this youtube live channel bug , thank you so much !

I specify SMPlayer 32 bits with updated yt-dlp can playback this bein sport youtube live channel without problems in my windows 7 32 bits machine ! also Qmplay2 32 bits can playback this bein sport youtube live !

trimechee commented 1 month ago

Edit of missing words of my previus post : "I specify SMPlayer 32 bits with updated yt-dlp can playback this bein sport youtube live channel without problems in my windows 7 32 bits machine ! also Qmplay2 32 bits can playback this bein sport youtube live !"

v0lt commented 1 month ago

I thought about something like that (UserAgent first), but there was no official release of LAV Filters yet. We won't rush, let's wait.

trimechee commented 1 month ago

Great :) 💯

trimechee commented 1 month ago

Aiee , i put also user agent Mozilla/5.0 in 3DYD Youtube Source , i use the last yt-dlp with new version of 3DYD Youtube Source , i try with the new version of mpc-hc and potplayer and they can"t playback bein sport yotube live streams :(

i talked to the developer of Open-in-vlc extension who recently adds many features and fix bugs in the new version and he updates also native clent, so i will try in sha Allah to use our beloved Mpc-be with Open-in-vlc extension to play bein sport live stream because in smplayer and qmplay2, there is some lag freeze with bein sport live youtube stream.....and i will try also External Application Button extension with HERF argument......

i will also try preview video feature of the famous chineese Cat-catch extension to send bein sport stream to Mpc-be, maybe it will work....i need time to make all these tests because my old laptop is not very powerful and speed.....

https://github.com/andy-portmen/open-in-vlc/

https://github.com/andy-portmen/external-application-button

https://github.com/andy-portmen/native-client-npm

https://github.com/andy-portmen/native-client

https://github.com/xifangczy/cat-catch

and thank you so much for the 32 bits version of Mpc-be that saves my old laptop after the crach of my main laptop :) 💯 🥇 i can even play videos from my.mail.ru/video with Mpc-be !!!!!

i was thinking it is impossible in my old windows 7 32 bits laptop !!

trimechee commented 1 month ago

I talked also to the developer of Mpc-hc because the new version of Mpc-hc doesn't work with bein sport youtube live channel and this his response and my response , may be it can help :

-"Stream is geo-blocked.

Works fine here with UAE VPN."

-"Interesting and very instructive ! it doesn't work for me maybe because i use windwos 7 32 bits, or because i disabled the native support of yt-dlp of Mpc-hc to use 3DYD Youtube Source and in 3DYD Youtube Source settings, i put user agent : Mozilla/5.0 and enable HLS relay and enabled persistant cookie storage in :

https://ys.3dyd.com/

Any way thank you fir your help 💯 i will try to enable internal support of yt-dlp of Mpc-hc and disable 3DYD Youtube Source :) "

trimechee commented 1 month ago

Maybe url protocol invented by Cat catch extension developer can fix this problem :

because "URLProtocol" allows developers to make custom URL protocols to launch specific applications or environment:

https://github.com/xifangczy/URLProtocol

the Cat-catch developer also advised me to add: "potplayer://${url}/referer=${referer}" in the Cat-catch preview options when we couldn't preview video with potplayer.....

https://github.com/xifangczy/URLProtocol?tab=readme-ov-file#custom-url-protocol-

https://o2bmm.gitbook.io/cat-catch/docs/invoke

https://github.com/xifangczy/cat-catch/releases/tag/2.5.3

also this discussion in Smplayer issue may help, because smplayer can play back bein sport youtube live :

"SMPlayer really needs

https://sourceforge.net/p/smplayer/feature-requests/742/

At the very least we need a way of passing the -referrer header. A lot of video content on the web wont play without it. Ideally smplayer would just pass all the parameters it doesnt recognize to underlying player (mpv/mplayer)"

https://github.com/smplayer-dev/smplayer/discussions/198#discussioncomment-1446522

https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler

Aleksoid1978 commented 1 month ago

Youtube does not need any useragent and referrer, the player opens it easily with default settings. The only thing is if the link contains an HLS recording - then you may need LAV installed in the system. I checked - I opened the link to the channel, the links loaded into the playlist. And then I checked a couple of links from there - they open, though sometimes not the first time - but this is apparently due to problems with Youtube in Russia at the moment.

I use internal Youtube parser.

trimechee commented 1 month ago

Interesting ! Thank you so much :) 💯