help get rust working #3

Closed
opened 2023-08-28 16:41:05 +02:00 by geextahslex · 59 comments
geextahslex commented 2023-08-28 16:41:05 +02:00 (Migrated from github.com)

OS: Win 7 x64
mpv: latest v0.36.0

Hi,
I don't know how to get this working. I installed the addon for firefox. I downloaded the ff2mpv-rust.exe and I put the .json file inside appdata. But nothing happens. After running the .exe a command window appers but it doesn't react to any commands

Im a noob in regard of scripting and so on

Thank you for any help/suggestions

OS: Win 7 x64 mpv: latest v0.36.0 Hi, I don't know how to get this working. I installed the addon for firefox. I downloaded the ff2mpv-rust.exe and I put the .json file inside appdata. But nothing happens. After running the .exe a command window appers but it doesn't react to any commands Im a noob in regard of scripting and so on Thank you for any help/suggestions
ryze312 commented 2023-08-28 22:06:47 +02:00 (Migrated from github.com)

Have you installed native messaging host, according to the guide? You can get the manifest (ff2mpv-windows.json in guide) by running ff2mpv-rust.exe manifest from the command line.

Have you installed native messaging host, according to [the guide](https://github.com/woodruffw/ff2mpv/wiki/Installation-on-Windows#firefox)? You can get the manifest (`ff2mpv-windows.json` in guide) by running `ff2mpv-rust.exe manifest` from the command line.
geextahslex commented 2023-08-28 22:19:33 +02:00 (Migrated from github.com)

I have not. I thought rust is a alternative solution? ^^ Im kinda overwhelmed, Im a casual windows user ^^'
I typed "ff2mpv-rust.exe manifest" but nothing happend.

I have not. I thought rust is a alternative solution? ^^ Im kinda overwhelmed, Im a casual windows user ^^' I typed "ff2mpv-rust.exe manifest" but nothing happend.
ryze312 commented 2023-08-28 22:25:18 +02:00 (Migrated from github.com)

ff2mpv-rust is the alternative client for ff2mpv, that's correct.
Type in command line

cd  "path/to/where/you/installed/ff2mpv-rust"
ff2mpv-rust.exe manifest

Copy what the command prints and save it in some .txt file somewhere on your PC (you can save it in the same folder as ff2mpv-rust.exe, for convenience). Then follow this section of the guide using path to that .txt file.

ff2mpv-rust is the alternative client for ff2mpv, that's correct. Type in command line ``` cd "path/to/where/you/installed/ff2mpv-rust" ff2mpv-rust.exe manifest ``` Copy what the command prints and save it in some .txt file somewhere on your PC (you can save it in the same folder as ff2mpv-rust.exe, for convenience). Then follow [this section](https://github.com/woodruffw/ff2mpv/wiki/Installation-on-Windows#firefox) of the guide using path to that .txt file.
geextahslex commented 2023-08-28 22:33:35 +02:00 (Migrated from github.com)

Okay now I got this
qqq

Okay now I got this ![qqq](https://github.com/ryze312/ff2mpv-rust/assets/139760266/55007a25-33c1-4d34-8ffb-dc710e9d3c5a)
ryze312 commented 2023-08-28 22:36:35 +02:00 (Migrated from github.com)

Copy that and save inside some text file (for example in C:\ff2mpv-rust\messaging-host.json). Then follow this section of the guide using that path.

Copy that and save inside some text file (for example in C:\ff2mpv-rust\messaging-host.json). Then follow [this section](https://github.com/woodruffw/ff2mpv/wiki/Installation-on-Windows#firefox) of the guide using that path.
geextahslex commented 2023-08-28 22:41:30 +02:00 (Migrated from github.com)

There is no "NativeMessagingHosts" in the Mozilla registry, should I create it?

There is no "NativeMessagingHosts" in the Mozilla registry, should I create it?
ryze312 commented 2023-08-28 22:41:50 +02:00 (Migrated from github.com)

Yes

Yes
geextahslex commented 2023-08-28 22:53:40 +02:00 (Migrated from github.com)

Why there is not a single screenshot how this suppose to look like, I dont get keys and values ^^ There are so many options.
sdsdd

Why there is not a single screenshot how this suppose to look like, I dont get keys and values ^^ There are so many options. ![sdsdd](https://github.com/ryze312/ff2mpv-rust/assets/139760266/2a5a9532-8e35-4f24-8ae4-0880f03faa0a)
ryze312 commented 2023-08-28 22:59:08 +02:00 (Migrated from github.com)

I don't speak German, but I think you need to create a string key (that should be Zeichenfolge option) named "ff2mpv". Set the value of that key to the path of your messaging-host.json

I don't speak German, but I think you need to create a string key (that should be *Zeichenfolge* option) named "ff2mpv". Set the value of that key to the path of your messaging-host.json
geextahslex commented 2023-08-28 23:18:55 +02:00 (Migrated from github.com)

Okay I have no idea what to do now. What about this file? https://github.com/ryze312/ff2mpv-rust/blob/main/ff2mpv-rust.json

my json rust file from the cmd looks like this
{
"name": "ff2mpv",
"description": "ff2mpv's external manifest",
"path": "F:\Backup Windows\Downloads\rust\ff2mpv-rust.exe",
"type": "stdio",
"allowed_origins": [
"ff2mpv@yossarian.net"
]
}

PS. I have never seen such an atrocious "install guide" honestly one screenshot would solve the issue xD

Okay I have no idea what to do now. What about this file? https://github.com/ryze312/ff2mpv-rust/blob/main/ff2mpv-rust.json my json rust file from the cmd looks like this { "name": "ff2mpv", "description": "ff2mpv's external manifest", "path": "F:\\Backup Windows\\Downloads\\rust\\ff2mpv-rust.exe", "type": "stdio", "allowed_origins": [ "ff2mpv@yossarian.net" ] } PS. I have never seen such an atrocious "install guide" honestly one screenshot would solve the issue xD
ryze312 commented 2023-08-28 23:26:30 +02:00 (Migrated from github.com)

The file that you linked is the config file for ff2mpv-rust, it's not required to get it running if you don't want to change the player used or arguments for mpv, it is not required.

The file from cmd you got is the config file for native messaging host, that is required to setup Firefox for communicating between ff2mpv addon and ff2mpv-rust (which starts up mpv).

Second file needs to be placed somewhere on your PC, the path to which is specified by the registry key you need to create

I don't speak German, but I think you need to create a string key (that should be Zeichenfolge option) named "ff2mpv". Set the value of that key to the path of your messaging-host.json

The file that you linked is the config file for ff2mpv-rust, it's not required to get it running if you don't want to change the player used or arguments for mpv, it is not required. The file from cmd you got is the config file for native messaging host, that is required to setup Firefox for communicating between **ff2mpv addon** and **ff2mpv-rust** (which starts up mpv). Second file needs to be placed somewhere on your PC, the path to which is specified by the registry key you need to create > I don't speak German, but I think you need to create a string key (that should be _Zeichenfolge_ option) named "ff2mpv". Set the value of that key to the path of your messaging-host.json
geextahslex commented 2023-08-28 23:30:13 +02:00 (Migrated from github.com)

I have but it is not working
registry

I have but it is not working ![registry](https://github.com/ryze312/ff2mpv-rust/assets/139760266/a1211927-aa08-46e1-a436-b083b038c7fd)
ryze312 commented 2023-08-28 23:32:34 +02:00 (Migrated from github.com)

Show the contents of ff2mpv-windows.json

Show the contents of ff2mpv-windows.json
geextahslex commented 2023-08-28 23:33:03 +02:00 (Migrated from github.com)

{
"name": "ff2mpv",
"description": "ff2mpv's external manifest",
"path": "F:\Backup Windows\Downloads\rust\ff2mpv-rust.exe",
"type": "stdio",
"allowed_origins": [
"ff2mpv@yossarian.net"
]
}

I changed allowed_extensions with allowed_origins as it is in the guide?

{ "name": "ff2mpv", "description": "ff2mpv's external manifest", "path": "F:\\Backup Windows\\Downloads\\rust\\ff2mpv-rust.exe", "type": "stdio", "allowed_origins": [ "ff2mpv@yossarian.net" ] } I changed allowed_extensions with allowed_origins as it is in the guide?
ryze312 commented 2023-08-28 23:34:33 +02:00 (Migrated from github.com)

Is mpv.exe in PATH? If not, make a config file for ff2mpv-rust and specify absolute path to it there.

Is mpv.exe in PATH? If not, make a config file for ff2mpv-rust and specify absolute path to it there.
geextahslex commented 2023-08-28 23:37:35 +02:00 (Migrated from github.com)
  1. what do you mean with "in path"? mpv.exe is not in the same folder as rust.exe, they are in seperate folders
  2. how do I make a config file and what I write there?
1. what do you mean with "in path"? mpv.exe is not in the same folder as rust.exe, they are in seperate folders 2. how do I make a config file and what I write there?
ryze312 commented 2023-08-28 23:37:45 +02:00 (Migrated from github.com)

Like such

{
    "player_command": "C:\\Program Files\\mpv\\mpv.exe",
    "player_args": ["--fullscreen"]
}
Like such ``` { "player_command": "C:\\Program Files\\mpv\\mpv.exe", "player_args": ["--fullscreen"] } ```
geextahslex commented 2023-08-28 23:44:50 +02:00 (Migrated from github.com)

are you sure about this double \ ?

So I made ff2mpv-rust.json in appdata/roaming with the text you posted (with my mpv.exe location), and its not working

are you sure about this double \\ ? So I made ff2mpv-rust.json in appdata/roaming with the text you posted (with my mpv.exe location), and its not working
ryze312 commented 2023-08-28 23:46:23 +02:00 (Migrated from github.com)

Not working how? Have you restarted Firefox after adding registry key?

Not working how? Have you restarted Firefox after adding registry key?
geextahslex commented 2023-08-28 23:50:43 +02:00 (Migrated from github.com)

Yes I have

Yes I have
ryze312 commented 2023-08-28 23:51:06 +02:00 (Migrated from github.com)

Go to any video on YouTube and click on ff2mpv extension icon, console window might flash

Go to any video on YouTube and click on ff2mpv extension icon, console window might flash
geextahslex commented 2023-08-28 23:52:26 +02:00 (Migrated from github.com)

I have tried but the only thing that happens is that it pauses the youtube video

I have tried but the only thing that happens is that it pauses the youtube video
ryze312 commented 2023-08-28 23:55:39 +02:00 (Migrated from github.com)

Then there is a misconfiguration in your ff2mpv-windows.json config

Then there is a misconfiguration in your ff2mpv-windows.json config
geextahslex commented 2023-08-28 23:57:24 +02:00 (Migrated from github.com)

yeah but which? I didnt change anything besides this allowed_origins thing

{
"name": "ff2mpv",
"description": "ff2mpv's external manifest",
"path": "F:\Backup Windows\Downloads\rust\ff2mpv-rust.exe",
"type": "stdio",
"allowed_origins": [
"ff2mpv@yossarian.net"
]
}

yeah but which? I didnt change anything besides this allowed_origins thing { "name": "ff2mpv", "description": "ff2mpv's external manifest", "path": "F:\\Backup Windows\\Downloads\\rust\\ff2mpv-rust.exe", "type": "stdio", "allowed_origins": [ "ff2mpv@yossarian.net" ] }
ryze312 commented 2023-08-28 23:57:41 +02:00 (Migrated from github.com)

Try double slashes in path

Try double slashes in path
ryze312 commented 2023-08-29 00:01:42 +02:00 (Migrated from github.com)

If it still doesn't work, try creating a subkey (folder) in "NativeMessagingHosts" named "ff2mpv" and the default value for it should be your path to ff2mpv-windows.json

I have but it is not working registry

If it still doesn't work, try creating a subkey (folder) in "NativeMessagingHosts" named "ff2mpv" and the default value for it should be your path to ff2mpv-windows.json > I have but it is not working ![registry](https://user-images.githubusercontent.com/139760266/263838933-a1211927-aa08-46e1-a436-b083b038c7fd.png)
geextahslex commented 2023-08-29 00:03:12 +02:00 (Migrated from github.com)

Thats exactly what I did now, and also not working ^^

Thats exactly what I did now, and also not working ^^
ryze312 commented 2023-08-29 00:03:27 +02:00 (Migrated from github.com)

Show a screenshot

Show a screenshot
geextahslex commented 2023-08-29 00:04:31 +02:00 (Migrated from github.com)

4444

![4444](https://github.com/ryze312/ff2mpv-rust/assets/139760266/53fcdea2-007b-402a-a2e2-b1dc0afd4996)
ryze312 commented 2023-08-29 00:05:31 +02:00 (Migrated from github.com)

(Standard) specifies default value for a key, set it's value to that path

*(Standard)* specifies default value for a key, set it's value to that path
geextahslex commented 2023-08-29 00:22:39 +02:00 (Migrated from github.com)

I tried, nothing ...^^'

I tried, nothing ...^^'
ryze312 commented 2023-08-29 00:24:43 +02:00 (Migrated from github.com)

Then there is an issue either with an addon itself or your Firefox installation. Nothing I can do, I do not have Windows machine to test it out. You can try Python messaging host instead.

Then there is an issue either with an addon itself or your Firefox installation. Nothing I can do, I do not have Windows machine to test it out. You can try Python messaging host instead.
geextahslex commented 2023-08-29 00:27:06 +02:00 (Migrated from github.com)

Okay, but thank you for your effort ^^

Okay, but thank you for your effort ^^
geextahslex commented 2023-08-29 00:52:52 +02:00 (Migrated from github.com)

When I enter "ff2mpv-rust.exe validate"
then he says JSON Error: trailing comma at line 4 column 1

When I enter "ff2mpv-rust.exe validate" then he says JSON Error: trailing comma at line 4 column 1
buzeak commented 2023-08-29 01:25:47 +02:00 (Migrated from github.com)

Then there is a misconfiguration in your ff2mpv-windows.json config

Probably line 4, column 1 in this file. It is plain text, just open it and look at the start of line 4, or the end of line 3 might be missing a bracket or speech mark or something.

> Then there is a misconfiguration in your ff2mpv-windows.json config Probably line 4, column 1 in this file. It is plain text, just open it and look at the start of line 4, or the end of line 3 might be missing a bracket or speech mark or something.
geextahslex commented 2023-08-29 01:30:51 +02:00 (Migrated from github.com)

I just copied the manifest. I tried to find it, but its hard when you dont even understand the code ^^

{
"name": "ff2mpv",
"description": "ff2mpv's external manifest",
"path": "C:\Program Files\rust\ff2mpv-rust.exe",
"type": "stdio",
"allowed_origins": [
"ff2mpv@yossarian.net"
]
}

I just copied the manifest. I tried to find it, but its hard when you dont even understand the code ^^ { "name": "ff2mpv", "description": "ff2mpv's external manifest", "path": "C:\\Program Files\\rust\\ff2mpv-rust.exe", "type": "stdio", "allowed_origins": [ "ff2mpv@yossarian.net" ] }
buzeak commented 2023-08-29 01:32:38 +02:00 (Migrated from github.com)

yeah but which? I didnt change anything besides this allowed_origins thing

{ "name": "ff2mpv", "description": "ff2mpv's external manifest", "path": "F:\Backup Windows\Downloads\rust\ff2mpv-rust.exe", "type": "stdio", "allowed_origins": [ "ff2mpv@yossarian.net" ] }

Maybe it's the apostrophe at this part?: "description": "ff2mpv's external manifest"

> yeah but which? I didnt change anything besides this allowed_origins thing > > { "name": "ff2mpv", "description": "ff2mpv's external manifest", "path": "F:\Backup Windows\Downloads\rust\ff2mpv-rust.exe", "type": "stdio", "allowed_origins": [ "[ff2mpv@yossarian.net](mailto:ff2mpv@yossarian.net)" ] } Maybe it's the apostrophe at this part?: "description": "ff2mpv's external manifest"
ryze312 commented 2023-08-29 01:35:15 +02:00 (Migrated from github.com)

This is still going? Amazing.

I just copied the manifest. I tried to find it, but its hard when you dont even understand the code ^^

{ "name": "ff2mpv", "description": "ff2mpv's external manifest", "path": "C:\Program Files\rust\ff2mpv-rust.exe", "type": "stdio", "allowed_origins": [ "ff2mpv@yossarian.net" ] }

Try double slashes as I suggested

This is still going? Amazing. > I just copied the manifest. I tried to find it, but its hard when you dont even understand the code ^^ > > { "name": "ff2mpv", "description": "ff2mpv's external manifest", "path": "C:\Program Files\rust\ff2mpv-rust.exe", "type": "stdio", "allowed_origins": [ "[ff2mpv@yossarian.net](mailto:ff2mpv@yossarian.net)" ] } Try double slashes as I suggested
geextahslex commented 2023-08-29 01:44:34 +02:00 (Migrated from github.com)

I don't undestand, try double slashes or apostrophe xD

I don't undestand, try double slashes or apostrophe xD
ryze312 commented 2023-08-29 01:45:25 +02:00 (Migrated from github.com)

Double slashes
"C:\\Program Files\\rust\\ff2mpv-rust.exe"

Double slashes `"C:\\Program Files\\rust\\ff2mpv-rust.exe"`
geextahslex commented 2023-08-29 01:45:51 +02:00 (Migrated from github.com)

sorry it changes it here.
location

sorry it changes it here. ![location](https://github.com/ryze312/ff2mpv-rust/assets/139760266/a3c54dbc-43ad-468e-940a-e2646249578d)
ryze312 commented 2023-08-29 01:47:47 +02:00 (Migrated from github.com)

Yes, looks good

Yes, looks good
geextahslex commented 2023-08-29 01:48:49 +02:00 (Migrated from github.com)

not good enough ^^
error

not good enough ^^ ![error](https://github.com/ryze312/ff2mpv-rust/assets/139760266/c8b15872-aac8-4cfc-9434-9abf496f2024)
ryze312 commented 2023-08-29 01:50:41 +02:00 (Migrated from github.com)

What's in the config file itself (%APPDATA%\ff2mpv-rust.json)?

What's in the config file itself (`%APPDATA%\ff2mpv-rust.json`)?
geextahslex commented 2023-08-29 01:51:16 +02:00 (Migrated from github.com)

appdata config json

![appdata config json](https://github.com/ryze312/ff2mpv-rust/assets/139760266/aa7ea9cd-5bfb-4bde-bf02-971aa337860b)
ryze312 commented 2023-08-29 01:55:07 +02:00 (Migrated from github.com)

There is a trailing comma as you can see, remove it

There is a trailing comma as you can see, remove it
geextahslex commented 2023-08-29 01:57:58 +02:00 (Migrated from github.com)

Okay config is now valid! thank you
but it still doesnt work ^^

Okay config is now valid! thank you but it still doesnt work ^^
ryze312 commented 2023-08-29 01:58:49 +02:00 (Migrated from github.com)

Restart Firefox and try again. Does the console window appear on launch?

Restart Firefox and try again. Does the console window appear on launch?
geextahslex commented 2023-08-29 02:00:47 +02:00 (Migrated from github.com)

Which launch? when I click the mpv buton?

Which launch? when I click the mpv buton?
ryze312 commented 2023-08-29 02:01:16 +02:00 (Migrated from github.com)

Yes

Yes
geextahslex commented 2023-08-29 02:02:07 +02:00 (Migrated from github.com)

no there is no reaction T.T

no there is no reaction T.T
ryze312 commented 2023-08-29 02:05:18 +02:00 (Migrated from github.com)

Try also adding that key to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Mozilla\NativeMessagingHosts\ in the registry

Try also adding that key to `HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Mozilla\NativeMessagingHosts\` in the registry
ryze312 commented 2023-08-29 02:06:01 +02:00 (Migrated from github.com)

Maybe also HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\NativeMessagingHosts\

Maybe also `HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\NativeMessagingHosts\`
geextahslex commented 2023-08-29 02:16:51 +02:00 (Migrated from github.com)

I made the first one, by the 2nd one there was already a "NativeMessagingHosts" folder. I also added there.
but no luck :P

I made the first one, by the 2nd one there was already a "NativeMessagingHosts" folder. I also added there. but no luck :P
geextahslex commented 2023-08-29 02:18:31 +02:00 (Migrated from github.com)

So your rust is working on linux?

So your rust is working on linux?
ryze312 commented 2023-08-29 02:20:59 +02:00 (Migrated from github.com)

it does work on Linux, I am not sure what's wrong with your installation. Configs are fine, it might just be that Firefox has broken messaging hosts on Windows. Try following "official" ff2mpv guide with Python script, that might work.

it does work on Linux, I am not sure what's wrong with your installation. Configs are fine, it might just be that Firefox has broken messaging hosts on Windows. Try following "official" ff2mpv [guide](https://github.com/woodruffw/ff2mpv/wiki/Installation-on-Windows) with Python script, that might work.
geextahslex commented 2023-08-29 02:22:49 +02:00 (Migrated from github.com)

what can I type into the rust window, to try if it can trigger mpv?

what can I type into the rust window, to try if it can trigger mpv?
ryze312 commented 2023-08-29 02:23:22 +02:00 (Migrated from github.com)

If that still doesn't work, it's not ff2mpv-rust problem, but rather ff2mpv itself. In such case, file an issue in their repo

If that still doesn't work, it's not ff2mpv-rust problem, but rather ff2mpv itself. In such case, file an issue in their repo
ryze312 commented 2023-08-29 02:24:51 +02:00 (Migrated from github.com)

I am closing this off, as at this point it just a spam. GitHub issues are meant for code and behavior related problems, not for tech support.

I am closing this off, as at this point it just a spam. GitHub issues are meant for code and behavior related problems, not for tech support.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ryze/ff2mpv-rust#3
No description provided.