RTSP not working after upgrade to version 1.1.0

Hi All,

Not sure what is wrong - But I do have a simple flow to test my camera image from NodeRED.
It was working all along with older version - Just when I have upgraded lately - I can NOT test my RTSP any more.
Every time I do the test I am getting error rc-2.


Not sure why I am getting that. I have worked with the same flow for almost a year now and I was able to scream without any issues and test my cameras.

Here is my flow - Need to change IP address and user and password for it to work (if it will at all) - Standard code from the internet not my coding.

[
  {
    "id": "9acfcc68.0f5ad",
    "type": "tab",
    "label": "Flow 2",
    "disabled": false,
    "info": ""
  },
  {
    "id": "497d43dc.b2a29c",
    "type": "exec",
    "z": "9acfcc68.0f5ad",
    "command": "ffmpeg -f rtsp -i \"rtsp://username:password@10.xx.xx.xx/live\" -f image2pipe pipe:1",
    "addpay": false,
    "append": "",
    "useSpawn": "true",
    "timer": "",
    "oldrc": false,
    "name": "Decode RTSP stream",
    "x": 520,
    "y": 240,
    "wires": [
      [
        "17660224.5db19e",
        "de6a4858.e592a8"
      ],
      [
        "16a580d2.67418f"
      ],
      [
        "e4ae4fca.f6ed6"
      ]
    ]
  },
  {
    "id": "681e4977.f13fb8",
    "type": "inject",
    "z": "9acfcc68.0f5ad",
    "name": "Start stream",
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "x": 190,
    "y": 240,
    "wires": [
      [
        "497d43dc.b2a29c"
      ]
    ]
  },
  {
    "id": "2a763216.ffd9ee",
    "type": "inject",
    "z": "9acfcc68.0f5ad",
    "name": "Pause all streams",
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "SIGSTOP",
    "payloadType": "str",
    "x": 200,
    "y": 280,
    "wires": [
      [
        "6fa1c4f4.44c08c"
      ]
    ]
  },
  {
    "id": "3c0dccfd.8f1f74",
    "type": "inject",
    "z": "9acfcc68.0f5ad",
    "name": "Resume all streams",
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "SIGCONT",
    "payloadType": "str",
    "x": 210,
    "y": 320,
    "wires": [
      [
        "6fa1c4f4.44c08c"
      ]
    ]
  },
  {
    "id": "6fa1c4f4.44c08c",
    "type": "change",
    "z": "9acfcc68.0f5ad",
    "name": "",
    "rules": [
      {
        "t": "set",
        "p": "kill",
        "pt": "msg",
        "to": "payload",
        "tot": "msg"
      }
    ],
    "action": "",
    "property": "",
    "from": "",
    "to": "",
    "reg": false,
    "x": 390,
    "y": 320,
    "wires": [
      [
        "497d43dc.b2a29c"
      ]
    ]
  },
  {
    "id": "697d4e76.39621",
    "type": "inject",
    "z": "9acfcc68.0f5ad",
    "name": "Stop all streams",
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "SIGTERM",
    "payloadType": "str",
    "x": 200,
    "y": 360,
    "wires": [
      [
        "6fa1c4f4.44c08c"
      ]
    ]
  },
  {
    "id": "17660224.5db19e",
    "type": "debug",
    "z": "9acfcc68.0f5ad",
    "name": "",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": true,
    "complete": "payload",
    "targetType": "msg",
    "x": 710,
    "y": 100,
    "wires": []
  },
  {
    "id": "16a580d2.67418f",
    "type": "debug",
    "z": "9acfcc68.0f5ad",
    "name": "",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": true,
    "complete": "payload",
    "targetType": "msg",
    "x": 770,
    "y": 320,
    "wires": []
  },
  {
    "id": "e4ae4fca.f6ed6",
    "type": "debug",
    "z": "9acfcc68.0f5ad",
    "name": "",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": true,
    "complete": "payload",
    "targetType": "msg",
    "statusVal": "payload",
    "statusType": "auto",
    "x": 710,
    "y": 380,
    "wires": []
  },
  {
    "id": "de6a4858.e592a8",
    "type": "jimp-image",
    "z": "9acfcc68.0f5ad",
    "name": "",
    "data": "payload",
    "dataType": "msg",
    "ret": "img",
    "parameter1": "",
    "parameter1Type": "msg",
    "parameter2": "",
    "parameter2Type": "msg",
    "parameter3": "",
    "parameter3Type": "msg",
    "parameter4": "",
    "parameter4Type": "msg",
    "parameter5": "",
    "parameter5Type": "msg",
    "parameter6": "",
    "parameter6Type": "msg",
    "parameter7": "",
    "parameter7Type": "msg",
    "parameter8": "",
    "parameter8Type": "msg",
    "parameterCount": 0,
    "jimpFunction": "none",
    "selectedJimpFunction": {
      "name": "none",
      "fn": "none",
      "description": "Image loading.",
      "parameters": []
    },
    "x": 710,
    "y": 160,
    "wires": [
      [
        "fcea118c.5f2c8"
      ]
    ]
  },
  {
    "id": "fcea118c.5f2c8",
    "type": "image",
    "z": "9acfcc68.0f5ad",
    "name": "",
    "width": 160,
    "data": "payload",
    "dataType": "msg",
    "thumbnail": true,
    "active": true,
    "x": 860,
    "y": 160,
    "wires": []
  }
]

I would be happy to know what is the issue I am having and how I can overcome it?
Please assist.

Thanks,
Arye

Try to run ffmpeg in terminal to see any problem. I test and everything run fine

Thanks!
You just gave me the answer I needed. ffmpeg was broken after upgrade and reinstalling it did the trick!
Thank you! @linhtranvu

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.