Hello,
@shbatm thanks for the great module!
In order to make my camera work in omxplayer, I need to enter the following command before the RTSP streaming URL in Terminal:
omxplayer --avdict rtsp_transport:tcp
The RTSP stream works fine with the added command in omxplayer. Full working command for reference:
omxplayer --avdict rtsp_transport:tcp rtsp://admin:admin@192.168.0.130:10554/tcp/av0_1
Is there a way to add the command to the config in order for the camera to work?
When looking at node helper.js I see the following reference:
if (this.config[payload.name].protocol !== "udp") {
args.unshift("--avdict", "rtsp_transport:tcp");
I’ve tried to switch the protocol in the config to ‘udp’ (as well as ‘tcp’) to no avail. I hope you could point me in the right direction in order to solve this issue.
Full config below for reference:
{
module: 'MMM-RTSPStream',
position: 'middle_center',
config: {
autoStart: true,
rotateStreams: false,
rotateStreamTimeout: 10,
showSnapWhenPaused: false,
moduleWidth: 354,
moduleHeight: 240,
moduleOffset: 0,
localPlayer: 'omxplayer',
stream1: {
name: '360 Cam',
url: 'rtsp://admin:admin@192.168.0.130:10554/tcp/av0_1',
protocol: 'udp',
snapshotUrl: '',
snapshotRefresh: 10, // Seconds
frameRate: "5",
port: 9999,
}
}
Thanks in advance!