I'm having issues making a virtual camera with uv4l mjpegstream.
This mjpegstream is not a camera but rather a graphic that I created.
pi#iot:~ $uv4l --driver mjpegstream --auto-video_nr --verbosity=8 -f --uri "http://10.1.7.191/api/gfx/stream.jpg" --server-option=--port=80
<notice> [core] Trying to loading driver 'mjpegstream' from built-in drivers...
<notice> [core] Loading driver 'mjpegstream' from external plug-in's...
<info> [driver] Specified URI:
URI: http://10.1.7.191/api/gfx/stream.jpg
UserInfo:
Scheme: http
Host: 10.1.7.191
Port: 80
Path: /api/gfx/stream.jpg
Query:
<notice> [core] Device detected!
<notice> [core] Trying to load the the Streaming Server plug-in...
<warning> [core] libserver.so: cannot open shared object file: No such file or directory
<warning> [core] Continuing without Streaming Server...
<notice> [core] Registering device node /dev/video0
pi#iot:~ $ dd if=/dev/video0 of=snapshot.jpeg bs=11M count=1
dd: failed to open '/dev/video0': Input/output error
The whole reason for me doing this is to convert the mjpeg stream to rtsp.
I believe I should be able to do this pretty easily. But it seems there are issues with my implementation
https://kevinsaye.wordpress.com/2018/10/17/making-a-rtsp-server-out-of-a-raspberry-pi-in-15-minutes-or-less/
If anyone knows of a better more efficient way to do this please let me know
I figured it out. Forgot to install uv4l-server. 🤦♂️
Yall could of let me know instead of downvotng me :(
This comment helped me out the most
https://raspberrypi.stackexchange.com/questions/7446/how-can-i-stream-h-264-video-from-the-raspberry-pi-camera-module-via-a-web-serve/99626#99626
Just apt-get install uv4l-mjpegstream
Related
I'm trying to get the RPi streaming video to Janus server over the internet architecture.
Firstly, I have installed and configured the UV4L streaming server in the RPi zero, just like the linux project mentioned, and the ip:port/stream is working perfectly fine, and i can rtc the video in local network.
Now, I need the communication to happen over internet, so I have a janus server setup in the server.
In the RPi UV4L server, I first wanted to try the stream to the public Janus server first, so I tried doing it using the "Join the room with janus", but when I click start, I get logs
Oct 27 04:52:52 DevIoT uv4l[7990]: <notice> [server] HTTP/HTTPS Streaming & WebRTC Signalling Server v1.1.125 built on Sep 5 2019
Oct 27 04:52:52 DevIoT uv4l[7990]: <warning> [server] SSL is not enabled for the Streaming Server. Using unsecure HTTP.
Oct 27 04:52:52 DevIoT uv4l[7990]: <notice> [core] Streaming Server loaded!
Oct 27 04:52:52 DevIoT uv4l[7990]: <warning> [core] Cannot create /dev/video0 because file already exists
Oct 27 04:52:52 DevIoT uv4l[7990]: <notice> [core] Registering device node /dev/video1
Oct 27 04:52:52 DevIoT uv4l[7990]: <notice> [server] Web Streaming Server listening on port 8080
Oct 27 04:53:22 DevIoT uv4l[7990]: <notice> [webrtc] WebRTC Renderer extension successfully loaded
Oct 27 04:53:22 DevIoT uv4l[7990]: <notice> [server] WebRTC, Signalling Server and STUN Server extensions successfully loaded
Oct 27 04:53:26 DevIoT uv4l[7990]: <warning> [server] Missing mandatory element (admin_key)
Oct 27 04:53:33 DevIoT uv4l[7990]: <warning> [server] Janus session error: Missing mandatory element (admin_key)
Oct 27 04:53:33 DevIoT uv4l[7990]: <notice> [server] Waiting for 3 seconds before reconnecting to https://janus.conf.meetecho.com...
Please tell me how to resolve it? or What I'm doing wrong here? Or any alternative solutions, I need the RTC from rpi to a public server.
I wanted to load the xscreen driver. so I opened a terminal and typed the following commands:
$uv4l --driver xscreen --auto-video_nr --display :0 --framerate 10 --server-option '--port=5678'
This is the normal result:
raspberrypi ~ $ uv4l --driver xscreen --auto-video_nr --display :0 --framerate 10 --server-option '--port=5678'
[core] Trying driver 'xscreen' from built-in drivers...
[core] Driver 'xscreen' not found
[core] Trying driver 'xscreen' from external plug-in's...
[driver] Opening display: :0
[driver] Display open, screen 0: 640x480, depth: 24, bpp: 32, big endian: false
[driver] Specified capturing rectangle: (xorigin 0, yorigin 0, width 640, height 480)
[core] Device detected!
[core] Trying to load the the Streaming Server plug-in...
[server] HTTP Streaming & WebRTC Signalling Server v1.1.18 built on Apr 22 2015
[core] Streaming Server loaded!
[core] Cannot create /dev/video0 because file already exists
[core] Registering device node /dev/video1
[server] Web Streaming Server listening on port 9000
But I got this message:
pi#raspberrypi:~ $ uv4l --driver xscreen --auto-video_nr --display :0 --framerate 10 --server-option '--port=5678'
<notice> [core] Trying driver 'xscreen' from built-in drivers...
<warning> [core] Driver 'xscreen' not found
<notice> [core] Trying driver 'xscreen' from external plug-in's...
<notice> [driver] Opening display: :0
<notice> [driver] Display open, screen 0: 640x480, depth: 24, bpp: 32, big endian: false
<notice> [driver] Specified capturing rectangle: (xorigin 0, yorigin 0, width 640, height 480)
<notice> [core] Device detected!
<warning> [core] Cannot create /dev/video0 because file already exists
<warning> [core] Cannot create /dev/video1 because file already exists
<notice> [core] Registering device node /dev/video2
My result do not have this part:
[server] HTTP Streaming & WebRTC Signalling Server v1.1.18 built on Apr 22 2015
[core] Streaming Server loaded!
What is my problem? Please help me!
I wanted to load the xscreen driver. so I opened a terminal and typed the following commands:
$uv4l --driver xscreen --auto-video_nr --display :0 --framerate 10 --server-option '--port=5678'
This is the normal result:
raspberrypi ~ $ uv4l --driver xscreen --auto-video_nr --display :0 --framerate 10 --server-option '--port=9000'
[core] Trying driver 'xscreen' from built-in drivers...
[core] Driver 'xscreen' not found
[core] Trying driver 'xscreen' from external plug-in's...
[driver] Opening display: :0
[driver] Display open, screen 0: 640x480, depth: 24, bpp: 32, big endian: false
[driver] Specified capturing rectangle: (xorigin 0, yorigin 0, width 640, height 480)
[core] Device detected!
[core] Trying to load the the Streaming Server plug-in...
[server] HTTP Streaming & WebRTC Signalling Server v1.1.18 built on Apr 22 2015
[core] Streaming Server loaded!
[core] Cannot create /dev/video0 because file already exists
[core] Registering device node /dev/video1
[server] Web Streaming Server listening on port 9000
But I got this message:
$ uv4l --driver xscreen --auto-video_nr --display :0 --framee 10 --server-option '--port=5678'
<notice> [core] Trying driver 'xscreen' from built-in drivers...
<warning> [core] Driver 'xscreen' not found
<notice> [core] Trying driver 'xscreen' from external plug-in's...
<warning> [core] /usr/lib/uv4l/libxscreen.so: undefined symbol: _ZN5boost11ththread5hiden9sleep_forERK8timespec
<alert> [core] No device detected
What is my problem?
Help me please!
update uv4l to the latest version, that will fix your specific problem, but consider using the raspidisp driver instead, as it is able to capture whatever you see on the screen, not just the x screen, and is much more faster, you can also optionally control your screen like vnc with the pc keyboard or smartphone
I am deploying contextbroker and when I use "-multiservice header"
as contextBroker_extra_ops option, the contextBroker is not started and not further information is obtained. Could you help me?
I am using contextBroker version 0.15.0
contextBroker -port 9999 -logDir /var/log/contextBroker -pidpath /var/log/contextBroker/contextBroker.pid -dbhost 127.0.0.1:27017 -db testdb1 -multiservice header
log directory: '/var/log/contextBroker'
DEBUG#12:59:56 paConfig.cpp[892]: setting trace levels to '0-255'
DEBUG#12:59:56 paConfig.cpp[893]: Leaving function paConfigActions
parameter 'header' not recognized
Using /etc/init.d/contextBroker I got a failure
/etc/init.d/contextBroker start
Starting...
contextBroker is stopped
Starting contextBroker... cat: /var/log/contextBroker/contextBroker.pid: No such file or directory
pidfile not found [FAILED]
The -multiservice CLI parameter changed between version 0.14.1 and 0.15.0. From 0.15.0 changelog:
# rpm -q --changelog contextBroker
* mié oct 01 2014 Fermin Galan <fermin#tid.es> 0.15.0-1 (FIWARE-3.5.3-1)
...
- Fix: made the broker not support URL-based multiservice (tenants) anymore (Issue #522)
- Fix: removed all the code related to URL-tenants (Issue #522)
...
Just replacing -multiservice header by -multiheader should solve the problem.
I use Sequel Pro and MAMP on my Mac to develop wordpress sites locally. This morning when I tried to start up Sequel Pro it kept asking for my password to make changes (it has never done this before). I first tried rebooting my machine but it kept asking so I entered my password to allow (unknown) changes to be made.
Big mistake!
Now when I try to connect via socket I get the error message
Socket connection failed!
Unable to connect via the socket, or the request timed out.
Double-check that the socket path is correct and that you have the necessary privileges, and that the server is running.
MySQL said: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
When I check MAMP the Apache Server light is red, and the MySQL server light is green.
I am a complete novice when it comes to back-end stuff like this, a lot of the answers I have browsed list console commands but I have never used the console before.
I have found a file that is reference in the error - "mysql.sock". This is located in Applications > MAMP > tmp > mysql > mysql.sock
But im not sure what to do with this file (if anything!).
I also found this error log:
130312 11:07:29 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql
130312 11:07:29 [Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case insensitive. This means > that you can corrupt a MyISAM table by accessing it with different cases. You should consider changing lower_case_table_names to 1 or 2
130312 11:07:29 [Warning] One can only use the --user switch if running as root
130312 11:07:29 [Note] Plugin 'FEDERATED' is disabled.
130312 11:07:29 [Note] Plugin 'ndbcluster' is disabled.
130312 11:07:29 InnoDB: Started; log sequence number 0 15469736
130312 11:07:30 [Note] Event Scheduler: Loaded 0 events
130312 11:07:30 [Note] /Applications/MAMP/Library/libexec/mysqld: ready for connections.
Version: '5.1.37' socket: '/Applications/MAMP/tmp/mysql/mysql.sock' port: 8889 Source distribution
130312 11:09:37 mysqld_safe A mysqld process already exists
I just dont know what to do with any of the info! Any help is greatly appreciated!
I have the same problem just go and on or start your MAMP and then connect
via socket in Sequel Pro it will work.