Need help installing ustreamer
-
I tried http://192.168.0.116:8080/ and a couple of other address's within the same range ie ending in 116, 140 and 180 on both the pc and pi and neither could connect, made sure nothing else is on that addr.
-
@luckyflyer what does
say on the pi?netstat -lt4n
sudo netstat -lt4np
more usefull for future ref. -
@bearer said in Need help installing ustreamer:
netstat -lt4n
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
@luckyflyer would appear ustreamer isn't bound to any ports?
pgrep ustreamer
? -
-
@luckyflyer yeah, it'll return the PID for ustreamer if its running.
-
I believe I'll have a problem doing that because when ustreamer is running terminal is locked until a cont C .
-
Tried it didn't work.
-
Tried it on pi's terminal with ustreamer running but command did not return anything
-
it wont when ustreamer isn't running, which was the goal to confirm as netstat didn't show anything bound to 8080.
methinks you
need toshould review https://github.com/pikvm/ustreamer#tips to run this as a systemd unit -
I ssh into terminal on my pc and start ustreamer I then go in via vnc to terminal and enter pgrep ustreamer but didn't return anything.
-
Ok I'll read that again
-
@luckyflyer maybe post what ustreamer says when you start it, and run
@bearer said in Need help installing ustreamer:
sudo netstat -lt4np
more usefull for future ref.instead of pgrep?
-
Here ya go.
pi@raspberrypi:~/ustreamer $ ./ustreamer -r 640x480 -d /dev/video0 --host=0.0.0.0 --port=8080
-- INFO [59755.990 main] -- Installing SIGINT handler ...
-- INFO [59755.990 main] -- Installing SIGTERM handler ...
-- INFO [59755.990 main] -- Ignoring SIGPIPE ...
-- INFO [59755.990 main] -- Using internal blank placeholder
-- INFO [59755.991 main] -- Listening HTTP on [0.0.0.0]:8080
-- INFO [59755.991 stream] -- Using V4L2 device: /dev/video0
-- INFO [59755.991 stream] -- Using desired FPS: 0
-- INFO [59755.991 http] -- Starting HTTP eventloop ...
-- INFO [59756.080 stream] -- Device fd=8 opened
-- INFO [59756.080 stream] -- Using input channel: 0
-- INFO [59756.081 stream] -- Using TV standard: DEFAULT
-- INFO [59756.083 stream] -- Using resolution: 640x480
-- INFO [59756.083 stream] -- Using pixelformat: YUYV
-- INFO [59756.085 stream] -- Using HW FPS: 0 -> 15 (coerced)
-- INFO [59756.088 stream] -- Requested 5 HW buffers, got 5
-- INFO [59756.092 stream] -- Capturing started
-- INFO [59756.092 stream] -- Using JPEG quality: 80%
-- INFO [59756.092 stream] -- Creating pool with 4 workers ...
-- INFO [59756.093 stream] -- Capturing ...pi@raspberrypi:~ $ sudo netstat -lt4np
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 408/vncserver-x11-c
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 419/sshd
pi@raspberrypi:~ $ -
huh, they're contradicting each other unless I'm off my rocks. odd; will see how it behaves here in a bit
-
Well now its refusing to connect @ http://0.0.0.0:8080 on pi's chrome but it did until I stopped ustreamer and then restarted it.
-
So I rebooted pi and now can access ustreamer again on pi chrome http://0.0.0.0:8080
-
I'm now seeing this, it's the last entry in ustreamer's start up, haven't seen it before.
- INFO [142.593 http] -- HTTP: Registered the new stream client: [127.0.0 .1]:59412, id=ca382a3e-c13f-42e9-b247-ab66557943a7; clients now: 1
-
So this is what I'm getting now,
pi@raspberrypi:~/ustreamer $ ./ustreamer -r 640x480 -d /dev/video0 --host=0.0.0.0 --port=8080
-- INFO [764.550 main] -- Installing SIGINT handler ...
-- INFO [764.550 main] -- Installing SIGTERM handler ...
-- INFO [764.550 main] -- Ignoring SIGPIPE ...
-- INFO [764.550 main] -- Using internal blank placeholder
-- INFO [764.551 main] -- Listening HTTP on [0.0.0.0]:8080
-- INFO [764.551 stream] -- Using V4L2 device: /dev/video0
-- INFO [764.552 stream] -- Using desired FPS: 0
-- INFO [764.552 http] -- Starting HTTP eventloop ...
-- INFO [764.640 stream] -- Device fd=8 opened
-- INFO [764.641 stream] -- Using input channel: 0
-- INFO [764.641 stream] -- Using TV standard: DEFAULT
-- INFO [764.643 stream] -- Using resolution: 640x480
-- INFO [764.643 stream] -- Using pixelformat: YUYV
-- INFO [764.645 stream] -- Using HW FPS: 0 -> 15 (coerced)
-- INFO [764.648 stream] -- Requested 5 HW buffers, got 5
-- INFO [764.651 stream] -- Capturing started
-- INFO [764.652 stream] -- Using JPEG quality: 80%
-- INFO [764.652 stream] -- Creating pool with 4 workers ...
-- INFO [764.652 stream] -- Capturing ...
-- INFO [846.050 http] -- HTTP: Registered the new stream client: [127.0.0.1]:59438, id=44691e03-9977-4f8b-a2f8-770bb871c6fe; clients now: 1pi@raspberrypi:~ $ sudo netstat -lt4np
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 419/sshd
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 411/vncserver-x11-c
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1495/./ustreamer
pi@raspberrypi:~ $ -
@luckyflyer said in Need help installing ustreamer:
So this is what I'm getting now,
that looks normal, should be able to connect from your pc to whatever IP address the pi has. confirm the IP addressess of the Pi with
hostname -I