Comments (23)
Hi,
I'm facing the same here. Latest Debian Buster on an RPi3B. Camera works.
Does anyone have any idea?
Thanks
from fruitnanny.
Hi, I sorta worked around this by running the gstreamer-video part on the host.
- Installing and building the gstreamer plugin: https://ivadim.github.io/2017-08-21-fruitnanny/#4-audio-and-video-pipeline-setup
- Running it:
gst-launch-1.0 -v rpicamsrc name=src preview=0 exposure-mode=night fullscreen=0 bitrate=1000000 annotation-mode=time+date annotation-text-size=20 ! video/x-h264,width=960,height=540,framerate=12/1,profile=constrained-baseline ! queue max-size-bytes=0 max-size-buffers=0 ! h264parse ! rtph264pay config-interval=1 pt=96 ! queue ! udpsink host=127.0.0.1 port=5004 sync=false
- Disabling gstreamer-video in the docker-compose.yaml: Commenting out L17-29
However, I faced the next major blocker. nginx reports lots of 502 Errors (Bad Gateway), which results in a broken webpage. With some luck it loads and works.
from fruitnanny.
Hi, just wanted to let you know that I am having the same issues. No video, no telemetry from the sensor and the web page is broken.
from fruitnanny.
Me 2
from fruitnanny.
I managed to fix this issue by rebuilding the Docker container with the provided Dockerfile in /opt/fruitnanny/docker/gstreamer
If anyone wants to they can change the docker-compose.yml file in /opt/fruitnanny to pull my docker image instead of the ivadim one as I'm assuming ivadim has stopped maintaining this project. If anyone is interested just drop me a message here and I can explain my solution more thoroughly
from fruitnanny.
@ruaanmaraisklem, I've been hitting a wall on this issue so some further explanation your solution for the docker container would be greatly appreciated!
I managed to fix this issue by rebuilding the Docker container with the provided Dockerfile in /opt/fruitnanny/docker/gstreamer
If anyone wants to they can change the docker-compose.yml file in /opt/fruitnanny to pull my docker image instead of the ivadim one as I'm assuming ivadim has stopped maintaining this project. If anyone is interested just drop me a message here and I can explain my solution more thoroughly
from fruitnanny.
@ruaanmaraisklem, I've been hitting a wall on this issue so some further explanation your solution for the docker container would be greatly appreciated!
I managed to fix this issue by rebuilding the Docker container with the provided Dockerfile in /opt/fruitnanny/docker/gstreamer
If anyone wants to they can change the docker-compose.yml file in /opt/fruitnanny to pull my docker image instead of the ivadim one as I'm assuming ivadim has stopped maintaining this project. If anyone is interested just drop me a message here and I can explain my solution more thoroughly
I basically just rebuilt the Docker container by using the Dockerfile provided in /opt/fruitnanny/docker/gstreamer. I then pushed this container up to my own docker hub profile and now I use this newly created container to pull down in the Dockerfile in /opt/fruitnanny.
So in the Dockerfile in /opt/fruitnanny everywhere where the file references ivadim/fruitnanny-gstreamer I've replaced this with klemmie117/fruitnanny-gstreamer-fix, so if you'd like you are welcome to do the same and pull the image that I built to solve this issue
from fruitnanny.
@ruaanmaraisklem, I've been hitting a wall on this issue so some further explanation your solution for the docker container would be greatly appreciated!
I managed to fix this issue by rebuilding the Docker container with the provided Dockerfile in /opt/fruitnanny/docker/gstreamer
If anyone wants to they can change the docker-compose.yml file in /opt/fruitnanny to pull my docker image instead of the ivadim one as I'm assuming ivadim has stopped maintaining this project. If anyone is interested just drop me a message here and I can explain my solution more thoroughlyI basically just rebuilt the Docker container by using the Dockerfile provided in /opt/fruitnanny/docker/gstreamer. I then pushed this container up to my own docker hub profile and now I use this newly created container to pull down in the Dockerfile in /opt/fruitnanny.
So in the Dockerfile in /opt/fruitnanny everywhere where the file references ivadim/fruitnanny-gstreamer I've replaced this with klemmie117/fruitnanny-gstreamer-fix, so if you'd like you are welcome to do the same and pull the image that I built to solve this issue
thanks, I just followed what you indicated and the webcam has started working again!
from fruitnanny.
I managed to fix this issue by rebuilding the Docker container with the provided Dockerfile in /opt/fruitnanny/docker/gstreamer
If anyone wants to they can change the docker-compose.yml file in /opt/fruitnanny to pull my docker image instead of the ivadim one as I'm assuming ivadim has stopped maintaining this project. If anyone is interested just drop me a message here and I can explain my solution more thoroughly
Nice!
However, I faced the next major blocker. nginx reports lots of 502 Errors (Bad Gateway), which results in a broken webpage. With some luck it loads and works.
I digged a little deeper. The Nginx container seems to have a little to none timeout for the response. I tried to fix this in its container, but was not successful. Ultimately I just installed nginx on the host and used the configs from the repo, which is working fine.
Additionally, the app-container is missing the gpio program to toggle the infra-red leds. I was able to fix this by installing the wiringpi in the app-container and committing the changes to the image.
from fruitnanny.
@ruaanmaraisklem, I've been hitting a wall on this issue so some further explanation your solution for the docker container would be greatly appreciated!
I managed to fix this issue by rebuilding the Docker container with the provided Dockerfile in /opt/fruitnanny/docker/gstreamer
If anyone wants to they can change the docker-compose.yml file in /opt/fruitnanny to pull my docker image instead of the ivadim one as I'm assuming ivadim has stopped maintaining this project. If anyone is interested just drop me a message here and I can explain my solution more thoroughlyI basically just rebuilt the Docker container by using the Dockerfile provided in /opt/fruitnanny/docker/gstreamer. I then pushed this container up to my own docker hub profile and now I use this newly created container to pull down in the Dockerfile in /opt/fruitnanny.
So in the Dockerfile in /opt/fruitnanny everywhere where the file references ivadim/fruitnanny-gstreamer I've replaced this with klemmie117/fruitnanny-gstreamer-fix, so if you'd like you are welcome to do the same and pull the image that I built to solve this issue
Hi I have the same problem, i find the "Docker file" in /opt/fruitnanny/docker/gstreamer folder but after I'm totally lost what I'm supposed to do ? Could you explain step by step ? Thanks a lot.
from fruitnanny.
@ruaanmaraisklem, I've been hitting a wall on this issue so some further explanation your solution for the docker container would be greatly appreciated!
I managed to fix this issue by rebuilding the Docker container with the provided Dockerfile in /opt/fruitnanny/docker/gstreamer
If anyone wants to they can change the docker-compose.yml file in /opt/fruitnanny to pull my docker image instead of the ivadim one as I'm assuming ivadim has stopped maintaining this project. If anyone is interested just drop me a message here and I can explain my solution more thoroughlyI basically just rebuilt the Docker container by using the Dockerfile provided in /opt/fruitnanny/docker/gstreamer. I then pushed this container up to my own docker hub profile and now I use this newly created container to pull down in the Dockerfile in /opt/fruitnanny.
So in the Dockerfile in /opt/fruitnanny everywhere where the file references ivadim/fruitnanny-gstreamer I've replaced this with klemmie117/fruitnanny-gstreamer-fix, so if you'd like you are welcome to do the same and pull the image that I built to solve this issueHi I have the same problem, i find the "Docker file" in /opt/fruitnanny/docker/gstreamer folder but after I'm totally lost what I'm supposed to do ? Could you explain step by step ? Thanks a lot.
@KoJaCx So what you're going to want to do is:
- In /opt/fruitnanny/docker/gstreamer type
docker build Dockerfile
- Then run
docker images
to see what new image has been created - Then in /opt/fruitnanny docker-compose.yml change the image for gstreamer-video to the new image you created in step 1, the name is the one you found in step 2
- Then rerun the docker-compose.yml to redeploy the fruitnanny application
- Profit...
Well theoretically that should be fine, alternatively if you don't want to build the image yourself you could just use klemmie117/fruitnanny-gstreamer-fix
in step 3 as the image name.
Let me know if you're still having trouble and I can try and assist
from fruitnanny.
Thanks for your reply but when i used "docker build Dockerfile" after a few minutes i have this message
Step 4/5 : COPY docker/gstreamer/audio_entry.sh /
COPY failed: file not found in build context or excluded by .dockerignore: stat docker/gstreamer/audio_entry.sh: file does not exist
and after when i used "docker images" i saw
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> da4312697e3f 53 seconds ago 553MB
so i think the command was not finished correclty any idea ?
from fruitnanny.
Thanks for your reply but when i used "docker build Dockerfile" after a few minutes i have this message
Step 4/5 : COPY docker/gstreamer/audio_entry.sh / COPY failed: file not found in build context or excluded by .dockerignore: stat docker/gstreamer/audio_entry.sh: file does not exist
and after when i used "docker images" i saw
REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> da4312697e3f 53 seconds ago 553MB
so i think the command was not finished correclty any idea ?
You are correct, it did not finish. It's trying to copy the file audio_entry.sh
to the docker image but can't find it. Are you sure you're in the /opt/fruitanny/docker/gstreamer
directory when running docker build Dockerfile
cause the audio_entry.sh
and audio_stream.sh
(it'll complain about this one too if it can't find it) are both in this directory. I had a similar problem and then just cd'd to the correct directory and everything went well after that
from fruitnanny.
maybe the problem is the command i used to build the Dockerfile because
cd /opt/fruitnanny/docker/gstreamer
docker build Dockerfile
unable to prepare context: context must be a directory: /opt/fruitnanny/docker/gstreamer/Dockerfile
so i used this command :
docker build /opt/fruitnanny/docker/gstreamer
and it's works but i have always this error
Step 4/5 : COPY docker/gstreamer/audio_entry.sh / COPY failed: file not found in build context or excluded by .dockerignore: stat docker/gstreamer/audio_entry.sh: file does not exist
from fruitnanny.
maybe the problem is the command i used to build the Dockerfile because
cd /opt/fruitnanny/docker/gstreamer docker build Dockerfile unable to prepare context: context must be a directory: /opt/fruitnanny/docker/gstreamer/Dockerfile
so i used this command :
docker build /opt/fruitnanny/docker/gstreamer
and it's works but i have always this error
Step 4/5 : COPY docker/gstreamer/audio_entry.sh / COPY failed: file not found in build context or excluded by .dockerignore: stat docker/gstreamer/audio_entry.sh: file does not exist
So what you do is cd /opt/fruitnanny/docker/gstreamer
then just run docker build .
the . here tells docker that the Dockerfile is in the current directory so it knows to run it and then it'll try to copy the files from the current directory, I just tried it again and it should work on your side as well.
Alternatively you can edit the Dockerfile using sudo nano /opt/fruitnanny/docker/gstreamer/Dockerfile
and change line 6 & 7 from copy audio_entry.sh /
and copy audio_stream.sh /
to copy /opt/fruitnanny/docker/gstreamer/audio_entry.sh /
and copy /opt/fruitnanny/docker/gstreamer/audio_stream.sh /
.
Then if none of these 2 options work you can just pull the container that I created instead of the original container, this change would be in /opt/fruitnanny docker-compose.yml
I'm not sure on which lines but just change the ivadim/fruitnanny-gstreamer
container to klemmie117/fruitnanny-gstreamer-fix
then you can rerun the installation as described in the project's Github page
from fruitnanny.
pfiou it's working with your last option, i edit the "docker-compose.yml" and replace the line for gstreamer-video. Thank you so much for your help !
from fruitnanny.
Awesome work! I got it to run as well so thanks alot @ruaanmaraisklem. But I have multiple issues with the site now, seems to be related to nginx, get random 504 on scripts and css. Do you guys see similar behavior? It works after a couple of refreshes. But cant understand why nginx is behaving like it does.
from fruitnanny.
Awesome work! I got it to run as well so thanks alot @ruaanmaraisklem. But I have multiple issues with the site now, seems to be related to nginx, get random 504 on scripts and css. Do you guys see similar behavior? It works after a couple of refreshes. But cant understand why nginx is behaving like it does.
I'm in the same situation as you
from fruitnanny.
However, I faced the next major blocker. nginx reports lots of 502 Errors (Bad Gateway), which results in a broken webpage. With some luck it loads and works.
I digged a little deeper. The Nginx container seems to have a little to none timeout for the response. I tried to fix this in its container, but was not successful. Ultimately I just installed nginx on the host and used the configs from the repo, which is working fine.
This is my workaround, which i posted some weeks ago
from fruitnanny.
However, I faced the next major blocker. nginx reports lots of 502 Errors (Bad Gateway), which results in a broken webpage. With some luck it loads and works.
I digged a little deeper. The Nginx container seems to have a little to none timeout for the response. I tried to fix this in its container, but was not successful. Ultimately I just installed nginx on the host and used the configs from the repo, which is working fine.
This is my workaround, which i posted some weeks ago
i didn't see your solution, i also tried to install nginx locally and everything works again, thanks
from fruitnanny.
I tried some of the solutions offered here. At first I was able to stream the video but when I tried it again it stops loading. Feeling really frustrated right now. Super appreciate any help available!
I'm not using a DHT sensor but I have a mic plugged into my pi3 (but even the audio is not working).
from fruitnanny.
I tried some of the solutions offered here. At first I was able to stream the video but when I tried it again it stops loading. Feeling really frustrated right now. Super appreciate any help available!
I'm not using a DHT sensor but I have a mic plugged into my pi3 (but even the audio is not working).
As soon as I finished posting this it occurred to me that whenever the HDMI was unplugged the video would stream fine. Now to figure out the audio issue.
from fruitnanny.
@ruaanmaraisklem, I've been hitting a wall on this issue so some further explanation your solution for the docker container would be greatly appreciated!
I managed to fix this issue by rebuilding the Docker container with the provided Dockerfile in /opt/fruitnanny/docker/gstreamer
If anyone wants to they can change the docker-compose.yml file in /opt/fruitnanny to pull my docker image instead of the ivadim one as I'm assuming ivadim has stopped maintaining this project. If anyone is interested just drop me a message here and I can explain my solution more thoroughlyI basically just rebuilt the Docker container by using the Dockerfile provided in /opt/fruitnanny/docker/gstreamer. I then pushed this container up to my own docker hub profile and now I use this newly created container to pull down in the Dockerfile in /opt/fruitnanny.
So in the Dockerfile in /opt/fruitnanny everywhere where the file references ivadim/fruitnanny-gstreamer I've replaced this with klemmie117/fruitnanny-gstreamer-fix, so if you'd like you are welcome to do the same and pull the image that I built to solve this issue
Hello,
I am also having some troubles to put my camera working. I tried to rebuild gstreamer module with klemmie117/fruitnanny-gstreamer-fix but did not archive it. This is what I did:
sudo nano /opt/fruitnanny docker-compose.yml
Edit line 19 ->
# image: ivadim/fruitnanny-gstreamer
image: klemmie117/fruitnanny-gstreamer-fix
Rerun:
docker-compose up -d
Do I have to make something more to fix it?
Thanks!
p.d update: after several tries, now the camera works, but not properly. I can see the image about 5 seconds, and it keeps shutdown another 15 seconds. And starts the cycle again. So, I understand that it is restarting continuously.
from fruitnanny.
Related Issues (20)
- video not charged HOT 8
- Feature Request: add TURN server to docker compose HOT 1
- Error 500 with docker-compose HOT 5
- Error when trying to configure Video Pipeline HOT 1
- Docker: Permanently restarting - Janus exits with code 132 HOT 5
- Which microphone do you use? HOT 6
- Audio not working - gstreamer-audio_1 errors HOT 15
- Max retries exceeded with url: /v2/devices - PushBullet ConnectionError HOT 1
- PSEye support (audio works fine) HOT 5
- No WebRTC support...
- Audio not working on new docker installation of fruitnanny HOT 5
- WAN access? HOT 3
- not understanding the connection between pushbullet and configuration file HOT 3
- docker setup - no steps to connect to dht, microphone - HOT 1
- Unable to update EJS partials
- Volume slider is broken, but needs to be moved to start the audio.
- Using BrightPi with Fruitnanny
- Video not working HOT 1
- Integration with Home Assistant HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fruitnanny.