-
Notifications
You must be signed in to change notification settings - Fork 31
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
Arm64 vs aarch64 in pull request 123 #124
Comments
Video hashes come from that repo, that they run locally is great (you do need to install ffmpeg though for it function). Adding aarch64 to this map: https://github.com/ThePornDatabase/namer/blob/main/namer/videophash.py#L38-L42. Adding it now. |
I have ffmpeg installed, namer was working flawlessly before the videophash function was updated. |
try latest release (just releaseed), should allow namer to call videohashes-arm64-linux. Verify ffmpeg is on the path, as videohashes-arm64-linux calls ffmpeg as well. |
Just verified, nothing special in the ffmpeg/fprobe look up, just need to be on path: https://github.com/stashapp/stash/blob/develop/pkg/ffmpeg/downloader.go#L21-L39 |
@gebau00a please try with latest release and update here, I suspect it should work. Tempted to close this, but don't want to be perceived as rude, so please let me know what happens with the latest namer and ffmpeg/ffprobe verified on the path. |
Journal log, namer run as systems service:
|
I think the problem is not in Namer itself, but in the videohash executable |
Is xxx a real video file? |
Yes it is. I only replaced the name as the name has no influence on the bug. |
well crap. You can turn off phashes in the config as a work around. see the https://github.com/ThePornDatabase/namer/blob/main/namer/namer.cfg.default for the layout. I have no way to debug this, so unless you have some spare time and or know a bit of go the above might be your only option . Hopefully someone with the hardware has time to look at the arm64 video hasher. |
Just need to print output and see that it says, errors not in json format even with |
According to gebau00a: Running videohashes-arm64-linux manually with a link to a video file generates the error which are on the path according to namer's log Improving error handling is a good idea, but it'll lead us back here. |
Added error printing, #125 |
Releasing that as 1.10.5, maybe it'll provide more info. |
Well if |
Yeah only down side is that seemed solid to me: https://github.com/stashapp/stash/blob/develop/pkg/ffmpeg/downloader.go#L21-L39 |
@gebau00a give 1.10.5 a shot when you have a chance -- we can verify the error at least |
Yeah, cause is the videohash executable
|
Opened issue: peolic/videohashes#5 to track this. |
I put up some comments in the bug report in videohashes With your correction on the other hand to error handle the phash function, Namer is running already like before, despite A symlink of ffmpeg and ffprobe in the tools subdirectory works when running the videohashes program directly, but when namer is started as service, it's not finding them still, as videohashes is searching in the active directory during start of the service. |
I found a temporary solution for my problem, shifting the working dir of the namer service to /usr/bin
For those interested in the watchdog service file. |
OMG.... you really trust this code.... I would copy ffmpeg to the work dir...... |
This is my service script I wrote myself, so this one I trust. |
Poelic found the issue. I only suggested to change the error message as it's not consistent with what happens. But I propose to close this bug as it's settled and only an upstream improvement left. Thanks for all your help. |
Perhaps Namer should follow stash's led here and download ffmpeg: https://github.com/stashapp/stash/blob/develop/pkg/ffmpeg/downloader.go#L170-L190 |
videohasher will get the ability to download ffmpeg: peolic/videohashes#6 which namer will leverage once it's merged. |
Fixed in namer in #130, now ffmpeg can be download as well. Though the running user needs to have permission to write to the pip install dir. |
Pull request 123 added an arch check for videophash.py
On arm64, it expects the arch type arm64, but distributions know arm64 as aarch64.
Running namer directly results in a Unsupport architecture error aarch64
Adding the dict link
'aarch64': 'arm64'
runs, but videohashes-arm64-linux fails to produce output, thus an error is raisedRunning videohashes-arm64-linux manually with a link to a video file generates the error
ffmpeg/ffprobe executables not found
Scanning through the compiled code for videohashes-arm64-linux shows several matches for arm64, but none for aarch64.
I assume it's looking for an arm64 ffmpeg, and cannot find an aarch64 ffmpeg.
Not sure if this is an upstream error from https://github.com/peolic/videohashes or where the videohashes executable comes from
The text was updated successfully, but these errors were encountered: