In AR9331 board I am using mjpg-streamer package for streaming
But when streaming is ongoing, it gets struct or slow down on the webpage.
I am running the command as mentioned below in my own package
Command is : mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 1280x720 -f 30 -l auto -n" -o "output_http.so -p 8080 -w /www/webcam/" &
Please let me know the solution on it and how can i increase the speed of stream
Does the same happen when you reduce the resolution to 800x600?
What webcam exactly are you using?
What happens in top when the program is running?(i.e. cpu/sirq %)
What version of firmware is flashed? Try to stick to older proven firmwares(15/17Lede), since new kernels appear to have lost optimizations for older ath9k SOCs and severely regress on performance(seen on iperf3 benchmark).
Try applying these optimizations if you use built root, they help ALOT:
Last but not least, try overclocking your AR9331 with a custom bootloader like breed:
I am using AR9331 module and also using mjpg-streamer package to stream video
MJPG Streamer Version: 2.0
Command to Stream video :- mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 1280x720 -f 30 -l auto -n" -o "output_http.so -p 8080 -w /www/webcam/"
When I am using command as mentioned above the video is lagging in the webpage
Can someone please let me know how can I increase the speed of video stream
Lagging means, when video is streaming then if I move an object infront of camera then on video its visible after sometime on the webpage(approx 1-3 seconds) and sometime it gets struct at some point of time.
Webpage URL -> <IP>:8080/?action=stream
Camera used is endoscope USB camera. Part number of Camera is HD603, provided by shenzhen angell technology co. ltd..
Linux kernel details is as mentioned below:
Image name: MIPS OpenWrt Linux-4.14.221
Build date: 2021-02-15 15:22:37 UTC
OS/image type: Linux Kernel
Data size: 1.4 MB (1500591 bytes)
Linux version 4.14.221 (sysadmin@BuildDev-02) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11306-c4a6851c72)) #0 Mon Feb 15 15:22:37 2021
I'm going to say that you're maxing out the CPU (SoC), use top?
Attached image shows the top command details
Whatever AIGUN is it's using up "all" your cpu
I have removed all the process but then also the streaming is getting slow
I have checked it without AIGUN code also as shows in above image