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

Really slow framerate... #9

Open
scales11 opened this issue Dec 30, 2016 · 3 comments
Open

Really slow framerate... #9

scales11 opened this issue Dec 30, 2016 · 3 comments

Comments

@scales11
Copy link

Hello,

I have successfully installed streameye on my pogoplug running archlinux arm.

  1. However when I run the command:
    ffmpeg -f video4linux2 -i /dev/video0 -r 30 -s 640x480 -f mjpeg -qscale 5 - 2>/dev/null | streameye
    The video shown on the http://ip_address is terribly slow (maybe 1-2 frames per second) and has a massive delay (somewhere on the order of 1-2 minutes delay)

  2. If I use ctrl+c to kill the process, the webcam becomes unusable and can only be seen/used if I reboot the pogoplug.

  3. The main motivation for using streameye was to get better performance than motion, however, motion is somehow faster...about 5fps, and still not quite useable.

Can you please offer any advice? I cannot find any tips or other examples online.

Thanks!

@ccrisan
Copy link
Owner

ccrisan commented Dec 31, 2016

I remember having unexplainable performance problems with v4l2 and ffmpeg. I always assumed some tweaks were needed but I personally wouldn't know what to do.

The example was given so that it works with what most users have on their computers (ffmpeg), but there might be other utilities being capable of grabbing v4l2 data and spitting jpegs.

I use streamEye with raspimjpeg.py and results are roughly 10x better than with motion on a Raspberry PI.

In your case however you should seek help from the ffmpeg community on how to grab mjpeg from v4l2 devices in the most efficient way.

@don41382
Copy link

@scales11 I know, it's been a while, but I found a perfect way to stream in butter smooth 1920x1080 with 30 FPS on Raspberry PI zero

./raspimjpeg.py -w 1920 -h 1080 -r 30 -q 10 | streameye

The key ingredient was using raspimjpeg.py with streameye and setting the quality to 10 (-q 10), which is still really good.

@scales11
Copy link
Author

@don41382 Thanks for the tip! I currently and running Debian OS with motioneye. I will try this method next.

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