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

Vidéos not showing #370

Open
jarod5001 opened this issue May 18, 2021 · 6 comments
Open

Vidéos not showing #370

jarod5001 opened this issue May 18, 2021 · 6 comments

Comments

@jarod5001
Copy link

Installed photoview on yunohost server.
Videos are not working, I'm getting this error on scan requests :

Failed to begin database transaction: failed to process photo (/home/yunohost.multimedia/user/Picture/test/mp4.mp4): failed to read metadata for original video (mp4.mp4): read video stream metadata: could not read video metadata (mp4.mp4): error running ffprobe [] fork/exec /usr/bin/ffprobe: resource temporarily unavailable

And when clicking on the video I get this error message :
could not get media by media_id and user_id from database: record not found

Any recommend compression format? Is there a way to reset the database?
Thanks

@jarod5001 jarod5001 added the bug Something isn't working label May 18, 2021
@viktorstrate
Copy link
Member

Is the file /home/yunohost.multimedia/user/Picture/test/mp4.mp4 a valid mp4 file?

If it is valid, do you then get the same error if you restart the Docker container and rescan?

@viktorstrate viktorstrate removed the bug Something isn't working label May 18, 2021
@jarod5001
Copy link
Author

jarod5001 commented May 18, 2021

Yes it's a valid mp4, it's a reencoded video using videocoder, it plays correctly on pc and phone.
I'm not using docker. It's a yunohost server
https://yunohost.org/en?q=/en/
https://github.com/YunoHost-Apps/photoview_ynh
I reinstalled photoview and launched the scan (about 6k photos and videos) and will check it later.
Thanks

@viktorstrate
Copy link
Member

Okay another reason might be that Photoview spawns more child-processes than the operating system / virtualization environment allows. To mitigate against this, you could try to reduce the max concurrent workers in the Settings page.

@jarod5001
Copy link
Author

That's great, it worked.

@fmnamado
Copy link

Hello,
I am also having this problem. I am running photo view this in docker, rpi4, raspberry pi os 11.
In Portainer I can see some info.

In logs:

2022/03/30 08:17:38 ERROR: Failed to begin database transaction: failed to process photo (/path/to/video/IMG_4827.MOV): could not read video metadata (IMG_4827.MOV): error running ffprobe [] signal: killed

In stats, I can see some additional info on the processes, spawning and killing:
ffprobe -loglevel fatal -print_format json -show_format -show_streams /path/to/video/IMG_4827.MOV

All videos (99%) are taken from iPhone 5s, 6 or XR. A lot of videos get scanned and transcoded with no trouble, but I am having this in a lot of videos also.
Some h264 (the past codec), the more recent ones are HEVC. Both kind of videos were correctly scanned in photoview in other files.

I would like some help to troubleshoot and/or understand the pattern.
I already disabled the max processes to search to only one (it was the first thing I made when commissioning the software).

Can you suggest any kind for tests either in photo view or in the videos themselves?
I would say the problem is NOT in the videos, but just in case, I would double check.

Thank you!

@fmnamado
Copy link

Ups I didn't see it was closed thread. Can we proceed on this thread?

@viktorstrate viktorstrate reopened this Mar 30, 2022
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