xifangczy / cat-catch

猫抓 浏览器资源嗅探扩展 / cat-catch Browser Resource Sniffing Extension
GNU General Public License v3.0
8.1k stars 756 forks source link

Native client for preview and suggestions of best open source tools, protocols and extensions to open send streams, links.... to external media player #391

Open trimechee opened 1 week ago

trimechee commented 1 week ago

扩展版本号 extension version

2.5.2

浏览器

Google Chrome

浏览器版本号

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

涉及网址

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

请详细描述问题

Hello, I was happy happy when I found this video:

How to Play Web Videos in VLC Media Player| Watch Web Movies in VLC

https://www.youtube.com/watch?v=FdVhRPQGmWg&t=253s

I thought it was a feature similar to the preview option of our beloved Cat-catch, I installed native client, and the send-to-vlc extension but it didn't work unfortunately :(

https://github.com/belaviyo/send-to-vlc/

https://add0n.com/send-to.html?context=explore&fwx

same problem with external Application Button, video playback failure with vlc, potplayer.....:

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

https://webextension.org/listing/external-application-button.html

using these extensions with vlc, , potplayer ..... I was unable to play video streaming from my favorite streaming sites like:

https://french-anime.com/animes-vf/

https://v5.voiranime.com/?filter=dubbed

https://vostfree.ws/last-anime-vf.html

but our beloved Cat-catch achieved this feat by previewing the video with potplayer, thank you so much :)

And so, at the beginning I was not able to play the video streaming with the preview of Cat-catch with potplayer then Mr @xifangczy kindly helped me and advised me to add the parameters: potplayer:// ${url}/referer=${referer} and it works!

And so I said to myself perhaps the native client tool which is an important program to send streams of the web browser to local media players, so it could be a good idea to integrate native client with Cat-catch to resolve possible integration problems and to add support for other powerful media players like kikoplay, moonplayer, smplayer, qmplay2, mpc-qt, mpc-be, implay......

Thank you so much !

How to install native client

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

https://www.youtube.com/watch?v=18jAqTXBiZA

https://github.com/andy-portmen/native-client/blob/master/windows/install.bat#L26-L31

I also found

https://github.com/woodruffw/ff2mpv

to send video streaming to mpv palyer but the developer says windows support is experimental because windows has bugs.....but may be it can help to integrate mpv player with Cat-catch.....

EDIT : Hello maybe it can help to more enhance preview awesome feature and send more protocol streams to external media players .....so i find these extensions that have maybe similar features ad use vlc protocol....:

Open vlc:// links directly from your web browser :

https://github.com/stefansundin/vlc-protocol

a browser extension to send media links to VLC media player : https://github.com/andy-portmen/open-in-vlc/

" Open websites with VLC. You must install the vlc:// protocol handler as well. You should use this together with playlist parsers.

Open websites with VLC. You must install the vlc:// protocol handler as well: https://github.com/stefansundin/vlc-protocol

You should use this together with VLC playlist parsers, e.g: https://addons.videolan.org/p/1167220/ "

https://chromewebstore.google.com/detail/open-with-vlc/jcccmhdgkfinhddlhpahoeofmdlljglh

Play most multimedia files, and various streaming protocols with this VLC distributed online.

Effortless VLC online Media Player Integration:

Online Media Streaming: Access your favourite online media platforms, including popular streaming websites, and enjoy a seamless experience with VLC's versatile playback capabilities.

https://www.winfy.net/vlc-online/

here a discussion between vc protocol users :

"Edit the vlc-protocol.bat file and add this line (after the last set url command):

set url=!url:https/=https:/!

For some reason, Firefox is removing colons from links, so this puts them back in. That code is for https, but you could do the same for http, if you need it."

VLC on desktop will not open vlc:// urls

https://code.videolan.org/videolan/vlc/-/issues/26581

" Sounds like his biggest complaint is that vlc:// is "not a scheme"?

Honestly I'm not 100% sure exactly what he means but maybe something like video:// or media:// would be more acceptable? Or is there a pre-existing scheme that VLC can adopt? Not sure where to look for that. "

chrome://media-internals/

Edit : I also found

https://github.com/woodruffw/ff2mpv

to send video streaming to mpv palyer but the developer says windows support is experimental

" The likely explanation for this bug is that I changed the default "potplayer://${url}/" from cat catch to "potplayer://${url}/referer=${referer}" and maybe sites like sports highlights sites don't require referrer hence the bug "

Use command-line to send "http-referrer" as well as the link

"" You can use this extension with any custom player. Configure a different player using the options page. If your player requires different arguments, you can direct this extension to a batch script that converts the VLC arguments to the format needed for the other player.

Support for referrer has already been added, but it is not yet public. This feature will be included in the next release."

" These video hosts don't allow video playback outside their web pages, they check request headers (in this case the referrer). You can't play these without this header.

Example: https://video.sibnet.ru/shell.php?videoid=4705407

Without referrer:

mpv https://video.sibnet.ru/v/3d3ea531dcfcf63e2994e6b7e39da3db/4705407.mp4 [ffmpeg] https: HTTP error 403 Forbidden

With referrer:

mpv https://video.sibnet.ru/v/3d3ea531dcfcf63e2994e6b7e39da3db/4705407.mp4 --referrer="https://video.sibnet.ru/" (+) Video --vid=1 () (h264 1280x720 23.976fps) (+) Audio --aid=1 --alang=fra () (aac 2ch 44100Hz) File tags: Artist: vostfree Title: Kakkou.no.Iinazuke.01.VF.720p.www.vostfree.tv Using hardware decoding (vaapi). AO: [alsa] 48000Hz stereo 2ch float VO: [gpu] 1280x720 vaapi[nv12] AV: 00:00:00 / 00:23:03 (0%) A-V: -0.004 Cache: 59s/14MB "

trimechee commented 1 week ago

Edit : I also found

https://github.com/woodruffw/ff2mpv

to send video streaming to mpv palyer but the developer says windows support is experimental because windows has bugs.....but may be it can help to integrate mpv player with Cat-catch.....

trimechee commented 6 days ago

Hello Mr @xifangczy, maybe it can help to more enhance preview awesome feature and send more protocol streams to external media players .....so i find these extensions that have maybe similar features ad use vlc protocol....:

Open vlc:// links directly from your web browser :

https://github.com/stefansundin/vlc-protocol

a browser extension to send media links to VLC media player : https://github.com/andy-portmen/open-in-vlc/

" Open websites with VLC. You must install the vlc:// protocol handler as well. You should use this together with playlist parsers.

Open websites with VLC. You must install the vlc:// protocol handler as well: https://github.com/stefansundin/vlc-protocol

You should use this together with VLC playlist parsers, e.g: https://addons.videolan.org/p/1167220/ "

https://chromewebstore.google.com/detail/open-with-vlc/jcccmhdgkfinhddlhpahoeofmdlljglh

Play most multimedia files, and various streaming protocols with this VLC distributed online.

Effortless VLC online Media Player Integration:

Online Media Streaming: Access your favourite online media platforms, including popular streaming websites, and enjoy a seamless experience with VLC's versatile playback capabilities.

https://www.winfy.net/vlc-online/

here a discussion between vc protocol users :

"Edit the vlc-protocol.bat file and add this line (after the last set url command):

set url=!url:https/=https:/!

For some reason, Firefox is removing colons from links, so this puts them back in. That code is for https, but you could do the same for http, if you need it."

VLC on desktop will not open vlc:// urls

https://code.videolan.org/videolan/vlc/-/issues/26581

" Sounds like his biggest complaint is that vlc:// is "not a scheme"?

Honestly I'm not 100% sure exactly what he means but maybe something like video:// or media:// would be more acceptable? Or is there a pre-existing scheme that VLC can adopt? Not sure where to look for that. "

trimechee commented 2 days ago

Hello Mr @xifangczy , just to say that I could no longer preview video streaming with Ca-catch (with vlc and potplayer) and I tried the Open-in-vlc extension which also doesn't work.....

but now even I just updated the open-in-vlc extension which had an update by adding the referrer and it works!!! I can preview streaming videos from my favorite streaming site with this open in vlc extension! so vlc seems to be able to preview video streaming, at least on my favorite streaming site....

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

https://french-anime.com/animes-vf/1443-kaiju-n8.html

trimechee commented 2 days ago

Update : i try with Open-in-vlc with another streaming platform that se HLS format, i see the link : https://box-1030-f.vmeas.cloud/hls/xqx2p6bvcbokjiqbth2sllarukjnnnxgonk3alyie,nriuywqaz2umyknt5ba,ediuywqaz22fd24t7wq,.urlset/master.m3u8

but vlc or potplayer can't open it..... the extension already work with other streaming platform and it's already great.....we hope that preview feature of our beloved Cat-catch will will achieve the unique feat in the world of opening this type of m3u8 link ! Thank you :)

trimechee commented 1 day ago

EDIT: Hello Mr @xifangczy, sorry to bother you again, but I have important news!! With the new update which adds browser's user-agent string, the Open-in-vlc extension

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

works with new streaming platforms whereas yesterday with version 0.38, it didn't work!!!

https://v5.voiranime.com/anime/high-rise-infestation-vf/high-rise-infestation-02-vf/

it also works with potplayer but we have to copy the m3u8 link offered by Open-in-vlc manually.... so i'm talking about it because it seems vlc player and potplayer are capable of previewing the videos if the extension adds the referrer and browser's user-agent string.....

xifangczy commented 1 day ago

You can wait for the next version 2.5.3.

trimechee commented 1 day ago

Ohhh magnificent, extraordinary !!! we are so we are impatient ,the new version of our beloved Cat-catch promises to be exceptional, thank you so much Mr Xifangczy :)