How can I stream in MJEPG?
Posted: 02 Jun 2018 20:45
I have a raspberry pi with a camera from which I'm streaming the footage with
This command works fine.
What I need to figure out, is how to change that command so that the stream coming out of it is in the MJEPG format, I tried to change it in various ways, such as
I tried many other variants as well but it never works, usually failing with "floating point error"
If you could tell me how to change the command so it streams in mjepg I would be ETERNALLY grateful.
Code: Select all
raspivid -vf -hf -o - -t 0 -w 1920 -h 1080 -fps 30 -b 1500000 | cvlc -vvv stream:///dev/stdin --sout '#rtp{access=udp,sdp=rtsp://:8554/stream}' :demux=h264
What I need to figure out, is how to change that command so that the stream coming out of it is in the MJEPG format, I tried to change it in various ways, such as
Code: Select all
raspivid -vf -hf -o - -t 0 -w 1920 -h 1080 -fps 30 -b 1500000 | cvlc -vvv stream:///dev/stdin --sout '#transcode{vcodec=MJPG,vb=800}:standard{access=http,mux=mpjpeg,dst=:18223/},#rtp{access=udp,sdp=rtsp://:8554/stream}' :demux=h264
If you could tell me how to change the command so it streams in mjepg I would be ETERNALLY grateful.