-
Notifications
You must be signed in to change notification settings - Fork 210
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
Cannot enable video support #114
Comments
Hi, On start, pigallery2 checks If you disable video support from settings, the app wont show videos but this error will go away. Also lately the recommended usage is through docker. It has preinstalled ffmpeg. |
Thanks for the quick answer. As user "pi", I run the server "npm start" and also, I am able to run "ffmpeg" and "ffprobe" in the same terminal.
I installed ffmpeg through "sudo apt install ffmpeg"
I cannot disable video support because, that is one of the greatest things I was looking for in pigallery2 (BTW, thanks for your work).
Doesn't docker adds processing overhead? I haven't used it before.
|
Hi, I'm not sure what is the issue here then :/ Also the new feature in v1.8 will that it can downscale/transcode videos (using jobs in 'advanced' settings mode). I found that on my rapsberry pi 3 B (no plus) I had issues serving the videos as they had 10+mbps bitrate. Raspberry (and my home internet) was not able to serve that speed so it was struggling a lot. Transcoding the videos to 4mbps at 720p it works now fine. I started using docker on my rpi a few weeks ago and it seems that it runs relatively fast. (Sure there is some overhead, but not really noticable. Also pigallery is really fast)
Apart from docker (and docker-compose), you don't have to install anything else to your system. no node, no npm, no ffmpeg, etc. |
bpatrik, awesome job with pigallery2! I've been fighting the same video issue for a few days now and it's the last hurdle for me, but I may need to start over using the docker method. I actually have to run pigallery as sudo instead of pi user even though I changed from port 80. Figured I'd post to let onlycparra know he or she isn't alone and to subscribe in case the problem is discovered. Looking forward to version 1.8! Jason |
Hi, two things:
(1) I tried the docker version: it runs smoodly. The video support works perfect. I will need to ffmpeg all my videos to mp4, but that's part of the deal.
(2) Regarding to the sudo thing, I just changed the port, and rebooted the machine. Also, at some point I did a recursive
chown -R pi:pi .
to all in the pigallery2 folder, but I cannot recall if it was before or after. With that said, I highly recommend to go for the docker option. It's simple, it is easily configurable to run automatically on raspberry pi (RPI) reboot, and it is easy to update.
Once again, Thanks bpatrik. I'm away from my home, and this little project will allow my family to nicely see our family photos.
|
I'm happy that I could help @onlycparra. Unfortunately only these formats are supported in browser: @jabr1884 |
Hi bpatrik, Thanks for the tips. I started over with the Docker method, but I had trouble using nginx so I'm using the docker-compose.yml file that skips nginx. I'll tackle that next, but I'm not sure if the following is a bug or if I'm doing something wrong. I want to use a folder on an external hard drive to hold the images. I was able to do that with the old install by simply changing the images folder path in the gui of pigallery2. When I try to do the same with this docker method the settings save without error but the image folder path in the gui still reads "/app/data/images". If I change the /home/pi/docker-compose.yml file manually the change saves but running docker still fails to point to the mounted drive location (GUI still reads "/app/data/images"). Am I changing the wrong file? |
I saw a similar problem in the docker version:
I set the path to /home/pi/Pictures/myFolder, I run docker, I see the pictures.
But I set it to /media/pi/myDrive/myFolder, I run docker, and I cannot see the pictures.
I ended up making a link in /home/pi/Pictures/ that points to my drive
|
That you see
This is where the 'bindings' happen. |
Hi bpatrik, Thanks, I was changing the wrong path... Now I feel silly. A donation is on the way. Thanks again for your awesome work and responsiveness! Jason |
I'm happy that it works. p.s.: there is no donation available for this project. I'm just doing it for fun :) |
I'm happy to report that I'm fully operational with the Docker setup using nginx and https, and that video is working. Thanks again for your help! The issue I had with nginx initially is that it would start on boot and then again with docker-compose. I had to use the following to prevent nginx from starting on boot: sudo update-rc.d -f nginx disable |
I'm happy to hear. You can also use nginx 'natively' (might be even better as there is no docker overhead on it). I'm experimenting with the |
closing due to inactivity |
Describe the bug
I cannot see or play videos. I open the IP of the server, login, and see the message:
I go to the pigallery2 web settings, try to disable/enable the video support, but get the same error.
In the terminal of the server I see:
Extra info
I can execute ffmpeg and ffprobe in the terminal of the server.
During
npm install
, I noticed the following lines, but I cannot spot an arm variant (maybe it pass too fast):and at the end of
npm install
I see:Environment:
Used app version:
Thanks.
The text was updated successfully, but these errors were encountered: