beta-tester
Posts: 1221
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

[solved] how to use ?: raspivid -l -o tcp://0.0.0.0:1234

Tue Mar 12, 2019 3:54 pm

hello,

i read in the documentation that it is possible to "stream?" the video of raspicam by using:

Code: Select all

raspivid -t 0 -n  -l -o tcp://0.0.0.0:1234
but how can i connect me to that stream on windows 10. i tried to use VLC as media player, but when i try to connect to the server

Code: Select all

http://192.168.1.100:1234/
raspivid starts to sending data but then i get always an error

Code: Select all

mmal: Failed to write buffer data (xxx to yyy) - aborting
on the console. (xxx and yyy are buffer sizes/lengths)
and VLC shows an error as well, that it could not open the media.

what i am doing wrong?

previous i tried to use:

Code: Select all

raspivid -t 0 -n -o - | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:1234/}' :demux=h264
and to open i used on Windows in VLC

Code: Select all

rtsp://192.168.1.100:1234/
this is working...

but my hope is i can bypass the cvlc part and let raspivid do the whole job with streaming, to minimize cpu usage.
how can i manage this?
Last edited by beta-tester on Tue Mar 12, 2019 5:47 pm, edited 2 times in total.
{ I only give negative feedback }
RPi Model B (rev1, 256MB) & B (rev2, 512MB) & B+, RPi2B (1GB), 64GB microSDXC1 class 10, HDMI 1920x1080, keyboard-mouse-combo (wireless), PiCamera, ethernet-cable, 5V/1.2A power supply, Wifi dongle (rt5370)

beta-tester
Posts: 1221
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: how to use ?: raspivid -l -o tcp://0.0.0.0:1234

Tue Mar 12, 2019 4:23 pm

oops... i have to use

Code: Select all

tcp://192.168.1.100:1234
on the VLC site.

then raspivid and VLC do not break the connection :)
no error message...
i can see the RPi is sending data to the Windows PC.
but VLC does not show the video... i can press the pause and play button, but nothing is shown up.
when i open the Codec information in VLC it is blank - no codec information available.

on the statistics tab of VLC i can see the media size is growing and growing and the input bitrate is at around 17000kb/s.
all other values are 0 (zero).

why don't i see the video? what is raspivid sending to VLC?
{ I only give negative feedback }
RPi Model B (rev1, 256MB) & B (rev2, 512MB) & B+, RPi2B (1GB), 64GB microSDXC1 class 10, HDMI 1920x1080, keyboard-mouse-combo (wireless), PiCamera, ethernet-cable, 5V/1.2A power supply, Wifi dongle (rt5370)

beta-tester
Posts: 1221
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: how to use ?: raspivid -l -o tcp://0.0.0.0:1234

Tue Mar 12, 2019 5:46 pm

ok, solved, i forgot to tell VLC the format of the video stream:

Code: Select all

tcp/h264://192.168.1.100:1234
is doing the job.
{ I only give negative feedback }
RPi Model B (rev1, 256MB) & B (rev2, 512MB) & B+, RPi2B (1GB), 64GB microSDXC1 class 10, HDMI 1920x1080, keyboard-mouse-combo (wireless), PiCamera, ethernet-cable, 5V/1.2A power supply, Wifi dongle (rt5370)

Return to “Troubleshooting”