Page 1 of 1

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

Posted: Tue Mar 12, 2019 3:54 pm
by beta-tester

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://
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
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

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?

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

Posted: Tue Mar 12, 2019 4:23 pm
by beta-tester
oops... i have to use

Code: Select all

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?

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

Posted: Tue Mar 12, 2019 5:46 pm
by beta-tester
ok, solved, i forgot to tell VLC the format of the video stream:

Code: Select all

is doing the job.