Comments (11)
Is this a problem on raspbian? Can you remove the libjpeg6 and rebuild ustreamer?
from ustreamer.
it is on a Raspbian GNU/Linux 10 (buster)
Trying to remove returns errors due to dependencies. I have the libjpeg8 and libjpeg8-dev installed if there is a way to point the make to the correct version?
apt-get remove libjpeg6
The following packages have unmet dependencies:
ant : Depends: default-jre-headless (>= 2:1.8) but it is not going to be installed or
java8-runtime-headless
ca-certificates-java : Depends: default-jre-headless but it is not going to be installed or
java8-runtime-headless
libavcodec58 : Depends: librsvg2-2 (>= 2.14.4) but it is not going to be installed
libgdk-pixbuf2.0-0 : Depends: libjpeg62-turbo (>= 1.3.1) but it is not going to be installed
Depends: libtiff5 (>= 4.0.3) but it is not going to be installed
Recommends: libgdk-pixbuf2.0-bin but it is not going to be installed
libgtk-3-0 : Depends: adwaita-icon-theme but it is not going to be installed
Recommends: libgtk-3-bin but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
dpkg -l | grep libjpeg
libjpeg62-turbo:armhf 1:1.5.2-2+b1 armhf libjpeg-turbo JPEG runtime library
libjpeg8:armhf 8d1-2 armhf Independent JPEG Group's JPEG runtime library
libjpeg8-dev:armhf 8d1-2 armhf Development files for the IJG JPEG library
from ustreamer.
Okay, try to remove libjpeg8(-dev)
from ustreamer.
That worked. I had to install the libjpeg62-turbo-dev, run make, and it runs. Now to figure out a few items.
- Why is streaming two cameras results in 'no signal'. I had to add the --workers 2 to it would at least run two instances.
nohup ./ustreamer --process-name-prefix ustreamer --device /dev/video2 --resolution 1280x720 --desired-fps 4 --format YUYV --workers 2 --host=0.0.0.0 --port=60808 &
nohup ./ustreamer --process-name-prefix ustreamer --device /dev/video0 --resolution 1280x1024 --desired-fps 5 --format YUYV --workers 2 --host=0.0.0.0 --port=60809 &
- How to control the exposure (or something) that is causing the stream to flash brighter periodically. The --brightness-auto and --gain-auto are not supported by the cameras.
from ustreamer.
Show me the log
from ustreamer.
Here are the log files created by the follow:
# ./ustreamer --process-name-prefix ustreamer --log-level 3 --device /dev/video0 --workers 2 --format YUYV --host=0.0.0.0 --port=3080>video0.log
# ./ustreamer --process-name-prefix ustreamer --log-level 3 --device /dev/video2 --workers 2 --format YUYV --host=0.0.0.0 --port=3080>video2.log
from ustreamer.
Try --device-timeout=8
and --format=jpeg
to use hardware webcam encoding. Also remove option --workers
.
from ustreamer.
That did it. Both cameras are streaming. Now make an init.d script and figure out the custom web page to mirror what I had going with mjpg-streamer. Is it possible to adjust the image control settings with ustreamer running or does the process have to stop and restart?
The logging is good to have connected IP information so it can be monitored.
Thank you for your assistance.
nohup ./ustreamer --process-name-prefix ustreamer --log-level 0 --device /dev/video0 --device-timeout=8 --format jpeg --resolution 528x297 --host=0.0.0.0 --port=3080>video0.log &
nohup ./ustreamer --process-name-prefix ustreamer --log-level 0 --device /dev/video2 --device-timeout=8 --format jpeg --resolution 880x497 --host=0.0.0.0 --port=3080>video2.log &
from ustreamer.
That did it. Both cameras are streaming.
Great!
custom web page
You can serve static files and directories using the option --static=path/to/dir
.
Is it possible to adjust the image control settings with ustreamer running or does the process have to stop and restart?
This cannot be done right now, because this feature has not yet been implemented. Ustreamer was designed to work with video capture devices, and this feature was secondary.
In our system, ustreamer is run using a small python server. The js code from the browser is connected to the server via a websocket, then the server, while there is at least one client, starts ustreamer and restarts it when the parameters change.
I understand that this is probably not as easy as you would like, and I plan to implement image parameter settings when I have time. Someday.
from ustreamer.
An option is to use v4l2-ctl to control the camera setting while ustreamer is running.
https://www.linuxtv.org/wiki/index.php/V4l-utils
from ustreamer.
Good idea!
Okay, the problem described in the name of this ticket can be considered solved. I'll implement the configurable image parameters sometime later.
from ustreamer.
Related Issues (20)
- ustreamer-master make error HOT 2
- Raspberry Pi 5 with Camera Module V3 HOT 4
- ustreamer won't start because unsupported YVYU format HOT 7
- Stuck infinitely polling H.264 encoder device HOT 15
- Pi2Z, PiHQ Cam --> ERROR [349.260 stream] -- Can't grab device buffer: Resource temporarily unavailable HOT 1
- Mainloop select() error: Success HOT 11
- "ERROR Got unexpected writing event, seems device was disconnected" Raspberry Pi5 with Camera Module V2 HOT 5
- ustreamer crash on FreeBSD 14 and 15 on amd64 arch HOT 4
- Unable to use GPU-accelerated encoding on Raspberry PI 5 (--encoder=M2M-IMAGE or --encoder=M2M-VIDEO) HOT 5
- ustreamer outputs a large amount of logs: `V4L2 error: grabbed device buffer=0 is already used` HOT 4
- 32 bit doesn't build anymore HOT 9
- error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] HOT 5
- Can't update manually: ustreamer new version available HOT 4
- http input ? HOT 2
- CAP: Can't release HW buffer=1 (skipped frame): Cannot allocate memory HOT 4
- input http ? HOT 1
- H264: Can't open encoder device: No such file or directory HOT 1
- Logitech C270 "Can't set input channel" on Ubuntu 22.04 HOT 3
- Does ustreamer support output_file.so for image capturing in a ring buffer like mjpg streamer? HOT 3
- CAP:Device select() timeout HOT 3
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 ustreamer.