stream-bypass icon indicating copy to clipboard operation
stream-bypass copied to clipboard

help with ff2mpv on Vivaldi!

Open bachig26 opened this issue 2 years ago • 14 comments

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

bachig26 avatar Aug 08 '23 16:08 bachig26

@sdaqo any advice on this?

bytedream avatar Aug 08 '23 17:08 bytedream

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

sdaqo avatar Aug 08 '23 17:08 sdaqo

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

thanks.

bachig26 avatar Aug 08 '23 17:08 bachig26

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

bachig26 avatar Aug 08 '23 18:08 bachig26

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 avatar Aug 08 '23 18:08 sdaqo

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

sdaqo avatar Aug 08 '23 18:08 sdaqo

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.

bachig26 avatar Aug 08 '23 18:08 bachig26

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 avatar Aug 08 '23 18:08 sdaqo

maybe we should add this to the readme?

sdaqo avatar Aug 08 '23 18:08 sdaqo

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?

bachig26 avatar Aug 08 '23 18:08 bachig26

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

sdaqo avatar Aug 08 '23 19:08 sdaqo

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?

bachig26 avatar Aug 08 '23 19:08 bachig26

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

sdaqo avatar Aug 08 '23 19:08 sdaqo

Demo:

https://github.com/ByteDream/stream-bypass/assets/63876564/729d50e3-7442-4d4c-9d4a-9d09d5ffe25a

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"

sdaqo avatar Aug 08 '23 19:08 sdaqo