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

help with ff2mpv on Vivaldi! #16

Open
bachig26 opened this issue Aug 8, 2023 · 14 comments
Open

help with ff2mpv on Vivaldi! #16

bachig26 opened this issue Aug 8, 2023 · 14 comments

Comments

@bachig26
Copy link
Contributor

bachig26 commented Aug 8, 2023

I'm using the Vivaldi Browser and couldn't find the "HKEY_CURRENT_USER\SOFTWARE\Vivaldi\NativeMessagingHosts" as mentioned in the Usage.

Can you able to help me? @bytedream

@bytedream
Copy link
Owner

@sdaqo any advice on this?

@sdaqo
Copy link
Contributor

sdaqo commented Aug 8, 2023

I think vivaldi uses chrome's reg keys, so HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts would be the right one.

@bachig26
Copy link
Contributor Author

bachig26 commented Aug 8, 2023

I think vivaldi uses chrome's reg keys, so HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts would be the right one.

thanks.

@bachig26
Copy link
Contributor Author

bachig26 commented Aug 8, 2023

okay, then I made the key HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\ff2mpv, added the value with updated allowed origins C:\ff2mpv\ff2mpv-viv_win.json and turned on the ff2mpv in the stream-bypass settings but i can't open the video in mpv and i thought it might a popup option to click to open in mpv but it doesn't work. @bytedream @sdaqo

@sdaqo
Copy link
Contributor

sdaqo commented Aug 8, 2023

The ffmpv doc for windows is kind of bad, have. Can you show me your JSON file, and have you copied the .bat and .py file inside the folder?

@sdaqo
Copy link
Contributor

sdaqo commented Aug 8, 2023

You might gain some insights reading the manually install section for linux

@bachig26
Copy link
Contributor Author

bachig26 commented Aug 8, 2023

The ffmpv doc for windows is kind of bad, have. Can you show me your JSON file,

ff2mpv-viv_win.zip

and have you copied the .bat and .py file inside the folder?

yes, I copied them.

@sdaqo
Copy link
Contributor

sdaqo commented Aug 8, 2023

ok yeah, as I said the docs for windows are bad... The json file should look like this:

{
    "name": "ff2mpv",
    "description": "ff2mpv's external manifest",
    "path": "/home/william/scripts/ff2mpv",
    "type": "stdio",
	"allowed_origins": [
 		 "chrome-extension://ephjcajbkgplkjmelpglennepbpmdpjg/",
 	 	"chrome-extension://mfhfeghkmedjcjncmbfkaigmlfijikho/"
	]
}

Then go to the the ffmpv repo and download both ffmpv.bat and ffmpv.py replace the "path" of json to the path of the bat file and make sure to have python installed.

@sdaqo
Copy link
Contributor

sdaqo commented Aug 8, 2023

maybe we should add this to the readme?

@bachig26
Copy link
Contributor Author

bachig26 commented Aug 8, 2023

ok yeah, as I said the docs for windows are bad... The json file should look like this:

{
    "name": "ff2mpv",
    "description": "ff2mpv's external manifest",
    "path": "/home/william/scripts/ff2mpv",
    "type": "stdio",
	"allowed_origins": [
 		 "chrome-extension://ephjcajbkgplkjmelpglennepbpmdpjg/",
 	 	"chrome-extension://mfhfeghkmedjcjncmbfkaigmlfijikho/"
	]
}

Then go to the the ffmpv repo and download both ffmpv.bat and ffmpv.py replace the "path" of json to the path of the bat file and make sure to have python installed.

okay, I had the bat and py copied already and now, i have added path like "path": "C:\ff2mpv", in the .json to mine,

is it correct?

@sdaqo
Copy link
Contributor

sdaqo commented Aug 8, 2023

the "path" should point to the .bat something like "path": "C:\ff2mpv\ff2mpv.bat"

@bachig26
Copy link
Contributor Author

bachig26 commented Aug 8, 2023

the "path" should point to the .bat something like "path": "C:\ff2mpv\ff2mpv.bat"

i did that, but not sure why it doesn't work. my mind is blank today...maybe i might take it slow see what happens.

fyi, may I know how stream-bypass makes the mpv play with ff2mpv, is there popup to make it when a video is present in the webpage?
if possible can you able to send me a short clip with a video playing example?

@sdaqo
Copy link
Contributor

sdaqo commented Aug 8, 2023

yeah give some time tho, I will try figuring out your poblem as well.

@sdaqo
Copy link
Contributor

sdaqo commented Aug 8, 2023

Demo:

ff2mpv.mp4

How does it work: The addon just sends the exact same message to the NativeMessagingHost of ff2mpv as ff2mpv. Thats also why you have to add the addon id to allowed_origins.

Further debbuging: Please open you cmd, and one after the other try inputing python and mpv. Also please try to replace the contents of the .bat with this:

@echo off
call python "C:\ff2mpv\path\to\your\.py"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants