belaviyo / send-to-vlc Goto Github PK
View Code? Open in Web Editor NEWA Webextension to send streamble media sources to VLC (VideoLAN) media player
Home Page: http://add0n.com/send-to-vlc.html
License: Mozilla Public License 2.0
A Webextension to send streamble media sources to VLC (VideoLAN) media player
Home Page: http://add0n.com/send-to-vlc.html
License: Mozilla Public License 2.0
The video player doesn't seem to be able to play what is sent to it, getting "Failed to render the file" in MPC-HC every time
Good day.
I downloaded the linux.zip to my Downloads directory, unzipped and executed the install.sh script as instructed. I restarted Firefox and now, when I right-click on the video and click on the MPV link, I get the following: "The external media player is not found. Please make sure the path in the options page is correct."
What is this path and the options page the app is looking for?
Regards,
Bjoern
I don't know what shortcut to bind it with but it would be nice to stop having to click on th addon icon everytime you want to play a video.
Some pages need to be excluded. Because some pages may contain too many videos (.ts streams) and cannot be played. This is a performance issue for browsers.
Can you add support for listening for messages from other extensions? I created addon that added "Send to ..." as button to links on page for convenience. Only problem is that your extension doesn't handle messages from other extensions.
I temporarily added onMessageExternal listener to your extension and it works as expected
chrome.runtime.onMessageExternal.addListener((request, sender) => {
if (request.method === 'send-to-vlc') {
sendToVLC(request.urls);
}
})
This would be very helpful, as I wouldn't need to copy-paste your extension into mine and modify native-client manifest.
Hello ,
i have installed your firefox add-on + linux script on my computer running kubuntu 14.05.x
when i check the conneciton it would say something like "native player detected"
but afterwards, if i would like to play a video through the add-on, there would always be an error, saying that mpv does not recognized the file format m3u8 or similar.
It would detect several links as shown in the number in the icon of the add-on, but i would just like it to play one video after all.
please see attached picture
thank you very much
Add to playlist is enpugh.
It may be implemented by direct connection to TCP control port or by "mpc add -h host -p port" command with host and port set to MPD host and port.
With m3u8 I have not found a way for MPV to handle tiles of the videos I am playing, until the m3u8 file is played. So my whole playlist ends up with m3u8 files instead of nice youtube titles.
mpv handles passing multiple files/links like so
mpv "link1" "link2"
and so does VLC
Would be nice to have the option not to use playlist files.
I'm trying to use Send to MPV player with Firefox which seems to work most of the time but for some reason it isn't 100% working. For example I just tried to watch this video and it will not load: https://www.youtube.com/watch?v=rFRW2FOrpuk
That is only one example but I have had it happen before several times. I'm not sure how to troubleshoot it because it seems no different than any other video.
I have tried playing it manually by passing the URL to MPV myself and it will work, but not from within the browser.
Firefox - Ubuntu 20.04
When I click "Copy links to the clipboard" nothing happens, regardless of the number of links detected.
If try to open second video here(Steins;Gate 0 Episode 23 Ending Song | Gate of Steiner by Eri Sasaki), mpv will not open. mpv will start trying to open link but then just quits. The same goes if you try to open this video from recommended sections. It will only work if opening video and pressing button from toolbar.
I don't have this issue with Open With.
I cant see the error. It was working and stopped after a restart.
Now when I click on "Send to MPV" the MPV window open and closes in ~1 second.
Would it be possible to add support for celluloid and other mpv frontends?
Is or will there be a XUL - version of this addon? (specifically asking for Pale Moon)
After I uninstalled 'Send to MPV player' I have problems with YouTube.
Most of the time when I open a video it gives me the error:
'An error occurred. Please try again later. (Playback ID...'
Not sure if this is possible or not, but it would be neat to have the option for MPV to stay open when the browser is closed.
For example, I like to load up playlists into MPV with hours worth of videos and it would be nice if I didn't need the browser running the entire time.
Thanks again for quickly responding to and fixing my previous issue, by the way! 👍
[Running Firefox Quantum, for reference]
Found when, for example, trying to send the video at https://www.youtube.com/watch?v=qvuhlrKikOc
In preferences for the extension, I specify this command:
exec vlc
– which does execute VLC (launch its GUI etc.) when run from a terminal window. Do I need a variation on that command?
Native client only detectable in google chrome, not other chromium-based browser
This extension seems to require a 60 MB "native client", which I assume is just for receiving a POST and launching a program. Can that not be rewritten in five lines of Go? I'm willing to issue a PR if so.
wouldn't it be right if choosing „Send to MPlayer media player” (from context menu) writes selected link as visited in browsers history? that would help a lot when browsing and choosing between thousands of similar looking links.
There have been multiple updates to this add-on and the MPV variant in 2018 but they haven't been pushed to the repo. I know you can probably extract the files from the .xpi and manually compare but that's just a bit too convoluted way of seeing what changed from version to version.
I was curious what really changed between the MPV edition 0.1.2 and 0.1.3 to justify the new permission to access browser history. This is what lead me to discover that the repo is out of date.
I also noticed that while the addons.mozilla.org page states the add-on is released under the MPL 2.0 the repo doesn't actually mention the license at all, which could discourage forking.
While the info pages redirects to the download to com.add0n.stylus, this addon seems to require the host extension com.add0n.native_client - thus it's not working.
I only used this extension on a select few sites. Sometimes though I hit the button and eventually get an error popup. An option to have an domain whitelist would be neat to avoid this.
I have a slow internett connection at home and it would be great if I could somehow define what quality I want to watch the movie in. This could be set in the extension preferences or maybe it could be an option to add it to the context menu, like "Open in MPV (480)" and "Open in MPV (720p)" etc.
EDIT: Currently it seems like MPV opens the 1080p stream, and VLC 720p. Not sure why.
https://chrome.google.com/webstore/detail/send-to-media-player-clas/jdemocppkpiaocccmmdjnpclehbajogd
Please upload this extension again. Only chrome extension is removed
I fixed the shebang for the installer and for the uninstaller then realised, the installed run.sh
also requires correction:
$ date ; uname
Sat 23 Sep 2017 08:18:10 BST
FreeBSD 12.0-CURRENT #0 r320869: Mon Jul 10 13:57:55 UTC 2017 [email protected]:/usr/obj/usr/src/sys/GENERIC
$ pwd
/home/grahamperrin/Documents/com/github/belaviyo/send-to-vlc
$ which bash
/usr/local/bin/bash
$ ./uninstall.sh
Native Client id is "com.add0n.native_client"
.. Removing manifest file for Google Chrome
rm: /home/grahamperrin/.config/google-chrome/NativeMessagingHosts/com.add0n.native_client.json: No such file or directory
.. Removing manifest file for Chromium
rm: /home/grahamperrin/.config/chromium/NativeMessagingHosts/com.add0n.native_client.json: No such file or directory
.. Removing manifest file for Mozilla Firefox
rm: /home/grahamperrin/.mozilla/native-messaging-hosts/com.add0n.native_client.json: No such file or directory
.. Removing executable
rm: /home/grahamperrin/com.add0n.native_client: No such file or directory
>>> Native Client is removed <<<.
$ ./install.sh
/usr/local/bin/node
NodeJS status = 0
Installer is using your system NodeJS.
-> Root directory is /home/grahamperrin
-> Creating a directory at /home/grahamperrin/.config/google-chrome/NativeMessagingHosts
-> Chrome Browser is supported
-> Creating a directory at /home/grahamperrin/.config/chromium/NativeMessagingHosts
-> Chromium Browser is supported
-> Creating a directory at /home/grahamperrin/.config/vivaldi/NativeMessagingHosts
-> Vivaldi Browser is supported
-> Creating a directory at /home/grahamperrin/.mozilla/native-messaging-hosts
-> Firefox Browser is supported
-> Creating a directory at /home/grahamperrin/com.add0n.native_client
=> Native Host is installed in /home/grahamperrin/com.add0n.native_client
>>> Application is ready to use <<<
$ cd ~/com.add0n.native_client/
$ ls -hl
total 14
-rw-r--r-- 1 grahamperrin grahamperrin 2.0K 23 Sep 08:19 config.js
-rw-r--r-- 1 grahamperrin grahamperrin 1.7K 23 Sep 08:19 host.js
-rw-r--r-- 1 grahamperrin grahamperrin 3.4K 23 Sep 08:19 messaging.js
-rwxr-xr-x 1 grahamperrin grahamperrin 39B 23 Sep 08:19 run.sh
$ grep bash run.sh
#!/bin/bash
$ nano run.sh
GNU nano 2.8.7 File: run.sh
#!/usr/local/bin/bash
/usr/local/bin/node host.js
$
i have experienced a problem with jitsi. when mpv plugin is enabled, jitsi stops working.
when i disable the plugin, jitsi works, i testet with firefox nightly on two computers.
Can you add an option so that opened videos don't show in the browser history?
Something does not work. Will someone tell me how to fix it?
I would like to use this program to play anime from online sites. I did everything according to the instructions ... but it still does not work.
The VLC program I have installed, "Open in Firefox" also. What could have gone wrong?
Here's a screenshot when I try to play anime with the extension:
https://imgur.com/a/ZeyZGsB
The extension counts up from 1 to XX depending on duration of listening but can't give it to VLC Player.
http://www.ascoltareradio.com/#radio-italia - appears at all from http://www.ascoltareradio.com/
it seams that the audio stream is segmented and the Segments can't be loaded.
in VLC Player it shows the following error messages:
"
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925026_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925027_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925028_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925029_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925030_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
"
in a different way: http://www.raiplayradio.it/ segments can't be handled.
Are hotkeys supported?
Hi,
Trying to open links with MPC-HC in my computer results in an error (see attached screen cap)
This is probably because my MPC-HC is not at the expected location (it's part of the K-Lite Codec Pack, so it's installed elsewhere)
How can I change the expected path for MPC-HC ?
Actually, it would be even better if your extension was able to open a dialog to allow users to change themselves while on Firefox. I don't know if that's possible.
Thanks !
Media Player Calssic BE can open youtube videos and playlists. When the application icon is clicked, these addresses must be sent to the MPC-BE application. I'd appreciate it if you could add this feature.
Hello,
Send to mplayer is not working with youtube videos.
I think the problem is related with parsing the youtube page to collect all the links from the youtube web page.
With youtube-dl tool, everything is working fine, for example:
> youtube-dl --list-formats https://www.youtube.com/watch?v=YE7VzlLtp-4
> youtube-dl -f 22 -g https://www.youtube.com/watch?v=YE7VzlLtp-4 > playlist.m3u
> mplayer -playlist playlist.m3u
I'm trying to debug the "send-to-vlc" add-on without success. @belaviyo are you available to help-me?
I am using send to mpv and I did run the script to install the native component.
While installing native client I wanted to check what my computer is going to run. At first it seemed easy task - just review three short js scripts, but it tuned out that this native client basically runs any script received from addon. Wow. So now I have to review whole extension code as well to feel safe.
Basically any eval
in code is a security breach. Even if current version of addon is safe, future updates might become malicious. @belaviyo, what if someone will get access to your account and push addon update which runs malicious code? Running code from addon in vm
practically defies the purpose of WebExtensions restrictions.
For now I just disabled updates of Send to VLC addon but still.
On laptop on which I use this addon, one native client run takes 1.0 s of CPU. That is 1s of delay before player starts and is twice as much of CPU time required by VLC to start. I admit this laptop is rather slow, but that's the whole point of using Send to VLC addon! Youtube in browser just hiccups and show still image in video and VLC show the same video perfectly. nodejs gives huge overhead.
As I see it the proper way to run VLC from browser should use script with lightweight interpreter. Python seems a good enough choice, it is 10-20 times faster to start then nodejs and it is already installed much more often then nodejs, at least python should be present on all mac and linux systems. And it should implement really simple protocol, which just gets list of URLs (native client itself should check, that all received strings looks like links).
I am willing to help with native client script, if you find this concerns serious.
I noticed the browser history permission was requested, but no explaination was given in the release notes. In the future, if permissions are going to change, it would be appreciated if the release notes mentioned the reasoning.
Hello,
great addon. Is it possible to bring up an directly youtube-dl addon? I think must not the problem, like the others but i search for an addon that bring up an Layer with options that has youtube-dl sniffed for himself and sniffed for mpv. I mean that i can choose some more options like quality and so on?
thx
I'm using the "send to MPV player" extension for firefox, in my windows environment i can stream a torrent/magnet by running peerflix/webtorrent "magnet/torrent url" --mpv
, is there any way i can bypass the hassle of opening cmd, typing the command, and copying the link? and instead just right click the link in my browser and open it seamlessly?
https://github.com/mafintosh/peerflix
https://github.com/webtorrent/webtorrent-cli
[Note: I'm only using 'Send To MPV']
I have no complaints with the functionality of the add-on as it works perfectly. My issue is that every few times I use it to open a video from a webpage it will occasionally flash up the 'one more step' page that prompts me to install the client. I already installed the client ages ago, as evidenced by the fact that the videos play perfectly.
Could there be an option to please disable this 'One more step' page from showing up altogether when you're sure the extension is working fine?
Cheers!
Oh and as a side request - could we also have the option to disable the number that shows up on the icon on the toolbar? I prefer to disable number badges on my add-ons where possible for a cleaner looking toolbar, I generally don't have any use for them anyway.
Hello!
Only just found this extension after many years using MPC-HC witch is unfortunate
When I try to send over a stream it tries to play and just receive 'cannot render this file'.
I had a look if I could find any logs but I could not
I tested with my K-Lite MPC-HC and then with a fresh MPC-HC to see if a filter might have been the issue.
Please let me know if there's anything I can provide to assist if you have any time to have a look
Thank you
Hayden
If you install "3DYD Youtube Source" direct show filter, MPC-HC will play from YouTube and more.
Originally posted by @Dr-Flay in #30 (comment)
During right click a video thumbnail preview on YouTube.com the image is taken into account for playback instead of video. The solution is to right click the title of the video instead of the thumbnail but it is not very comfortable.
At first, everything worked fine until a system update (Ubuntu 18). Now whenever I send a video link to VLC (using the add-on), it says "Codec not supported:
VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))". However, drag-and-drop the video link to VLC still works.Web browser: Opera. Sample video: https://www.youtube.com/watch?v=8eL-kFeJ6M8.
Edit: Tried on Firefox and it's working fine. I think the add-on isn't working well with Opera. As I remember, the system update yesterday included Opera as well.
Hi @belaviyo 👋 . Any chance you can make some simple extension just for the MPV player?
Nothing fancy,no extra features like search and whatnot,just to be able to send any link(not youtube's only) towards the MPV player.
And the next thing,in case you have the time and the willingness,of course. Due to Manifest 3 is on horizon and by the end of the year every extension has to be converted,mine as well just(if possible and doesn't interfere) do it so to save you the extra feature work.
I hope you can do it and trust me,you'll make a lots of MPV enthusiasts happy.
Thank you for considering 👍
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.