streameye icon indicating copy to clipboard operation
streameye copied to clipboard

Really slow framerate...

Open scales11 opened this issue 8 years ago • 3 comments

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!

scales11 avatar Dec 30 '16 21:12 scales11

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.

ccrisan avatar Dec 31 '16 15:12 ccrisan

@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.

don41382 avatar Sep 16 '19 21:09 don41382

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

scales11 avatar Oct 31 '19 01:10 scales11