Transcoding RTSP to MJPEG and Streaming Locally
Posted: 25 Jun 2020 01:52
Hello, new to the forum and looking for a little help with the following, please and thank you:
I'm trying to use VLC on my Mac to transcode an RTSP stream from a (you guessed it!) IP camera system, and I'd like to end up with a stable MJPEG stream over HTTP on my local network. I have made many, many different attempts via Terminal and the GUI to get this to work, with very limited success:
In Terminal/CLI world, there seem to be many problems on my machine such as "Cannot create vout as Mac OS X interface was not found."
When I attempted to make this all work chiefly through the GUI, I got pretty close, but I was unable to find a place to set the needed "boundary" value which is a must for MJPEG streaming, from what I understand (I was able to set the correct mime value, once I found it in the endless Preferences menu: Preferences > Stream output > Access output > HTTP).
Here is the command that I was most recently attempting to use in Terminal:
/Applications/VLC.app/Contents/MacOs/VLC -I rc -vvv rtsp://admin:######@192.168.1.124:554/cam/realmonitor?channel=4&subtype=00 --sout "#transcode{vcodec=MJPG,vb=1500,scale=1,fps=10,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace;boundary=7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=localhost:8080/videostream.cgi}"
Details:
I am on an older MBP, Mojave 10.14.6, and I have the latest VLC available, 3.0.11
I'm trying to use VLC on my Mac to transcode an RTSP stream from a (you guessed it!) IP camera system, and I'd like to end up with a stable MJPEG stream over HTTP on my local network. I have made many, many different attempts via Terminal and the GUI to get this to work, with very limited success:
In Terminal/CLI world, there seem to be many problems on my machine such as "Cannot create vout as Mac OS X interface was not found."
When I attempted to make this all work chiefly through the GUI, I got pretty close, but I was unable to find a place to set the needed "boundary" value which is a must for MJPEG streaming, from what I understand (I was able to set the correct mime value, once I found it in the endless Preferences menu: Preferences > Stream output > Access output > HTTP).
Here is the command that I was most recently attempting to use in Terminal:
/Applications/VLC.app/Contents/MacOs/VLC -I rc -vvv rtsp://admin:######@192.168.1.124:554/cam/realmonitor?channel=4&subtype=00 --sout "#transcode{vcodec=MJPG,vb=1500,scale=1,fps=10,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace;boundary=7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=localhost:8080/videostream.cgi}"
Details:
I am on an older MBP, Mojave 10.14.6, and I have the latest VLC available, 3.0.11