Trouble getting http stream to view on client

About encoding, codec settings, muxers and filter usage
pforpianist
New Cone
New Cone
Posts: 4
Joined: 22 Oct 2019 03:34

Trouble getting http stream to view on client

Postby pforpianist » 24 Oct 2019 00:16

I had posted this message before but I made a mistake in what forum to put it in. Please excuse me as I only just started using the forums and vlc for this purpose. Didn't know which forum to put it in. I'm also new to VLC so bare with me. I have been using vlc on raspberry pi 4, running Raspbian Buster. I found a guide which showed a command for running vlc which i have been using, but when trying to view it in a web browser on another machine on the network, nothing displays. I do not have a firewall running on my raspberry pi, and confirm that when doing the command sudo netstat -lptu that it is listening on the port.

here's the output
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 raspberrypi.fritz.:1234 0.0.0.0:* LISTEN 5752/vlc

This is the command I'm currently using:
cvlc v4l2:///dev/video0 --http-host=xxx.xxx.xxx.xxx --sout '#transcode{vcodec=mjpg}:std{access=http
{mime=multipart/x-mixed-replace;boundary=-7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=xxx.xxx.xxx.xxx:1234/strm.mjpeg}'

When i try to run it on vlc client side it comes up with this error:
Your input can't be opened:
VLC is unable to open the MRL 'http://xxx.xxx.xxx.xxx:1234/strm.mjpeg'. Check the log for details.

As per suggestion, turned on verbosity using -vv -logfile=~/vlclog.txt

What am I looking for? Heres' the pastebin of my log file

https://pastebin.com/jDusrdvz

I didn't see any errors on the log yet I still can't view the stream from another computer

The log file on the client reports that connection is refused by peer. I looked up some articles on VLC that were the same problem.

Here's what i tried
https://forum.videolan.org/viewtopic.php?t=56295

They suggested changing the dst if it was localhost, mine is an actual ip address. They suggested that you should use port 1234 which is what i'm trying.

Kindly, what is happening here? why can't I view the video on my local network?

Edit: Hi,

here is a paste bin of the client after changing the command to this:
cvlc v4l2:///dev/video0 -vv --sout '#transcode{vcodec=mp4v}:std{access=http,mux=ts,dst=xxx.xxx.xxx.xxx:1234/stream.ts}'

https://pastebin.com/E9MMmzQ4

I've done a bit more digging.
Now with this command:
cvlc v4l2:///dev/video0 -vv --sout '#transcode{vcodec=h264, acodec=mp3, ab=128, channels=2, samplerate=44100}:http{mux=ts, dst=192.168.178.100:1234/stream.ts}'

https://pastebin.com/wdpQmjqi

It looks like the data ends without receiving anything. That tells me that it's not streaming. Ie, it's waiting for a file to be finished before playing it.

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 23 guests