MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MMM-RTSPStream works... but intermittently



  • Yes, another RTSPStream issues thread!

    Long story short, I’ve been running RTSPStream for years without a problem. About a month ago I wiped out my pi and started fresh with Stretch, reconfigured and even used the same config file as prior with no problems ( using the same camera and same http: link to camera). Now I have issues with my stream going blank randomly. It will work fine for a while when MM boots up then randomly will just go blank. I have spent the past couple weeks digging through this forum researching and reading all the other issue threads related but I am officially out of ideas. This is the troubleshooting I have done so far:

    Disabled GL drivers
    Tweaked config based on suggestions on other threads
    Verified Omxplayer is updated
    Verified stream works fine via VLC
    Tested with both low and high-quality feeds
    Increased GPU memory to 120

    As for logs, I can’t seem to capture any errors or red flags popping up regarding RTSPStream from the ‘mm-out.log’. The only thing I could verify is when the stream is working, omx_stream1 shows online, and offline when it goes blank. If I try to perform ‘pm2 start omx_stream1’ it will revert back to online, but the stream is still blank.

    If anyone has any idea or guidance for me I would greatly appreciate it. It seems the issue happened when switching to Stretch as everything worked perfectly with Jessie. Maybe there are more logs I don’t know of that can help pinpoint this issue?

    Here is the latest from the logs, this is current from today after waiting for the stream to go blank. All the previous logs are the same, just repetitive:

    Starting MagicMirror: v2.6.0
    Loading config ...
    Loading module helpers ...
    No helper found for module: alert.
    Initializing new module helper ...
    Module helper loaded: updatenotification
    No helper found for module: clock.
    No helper found for module: currentweather.
    No helper found for module: MMM-windy.
    Initializing new module helper ...
    Module helper loaded: MMM-WatchDog
    Initializing new module helper ...
    Module helper loaded: MMM-WunderGround
    Initializing new module helper ...
    Module helper loaded: mmm-nest-status
    Initializing new module helper ...
    Module helper loaded: calendar
    Initializing new module helper ...
    Module helper loaded: MMM-MyCommute
    Initializing new module helper ...
    Module helper loaded: MMM-History
    Initializing new module helper ...
    Module helper loaded: mmm-systemtemperature
    No helper found for module: MMM-pihole-stats.
    Initializing new module helper ...
    Module helper loaded: MMM-News
    Initializing new module helper ...
    Module helper loaded: MMM-RTSPStream
    All module helpers loaded.
    Starting server on port 8080 ... 
    Server started ...
    Connecting socket for: updatenotification
    Connecting socket for: MMM-WatchDog
    Starting module helper: MMM-WatchDog
    Connecting socket for: MMM-WunderGround
    MMM-WunderGround helper started ...
    Connecting socket for: mmm-nest-status
    Starting node_helper for module [mmm-nest-status]
    Connecting socket for: calendar
    Starting node helper for: calendar
    Connecting socket for: MMM-MyCommute
    ====================== Starting node_helper for module [MMM-MyCommute]
    Connecting socket for: MMM-History
    Starting module: MMM-History
    Connecting socket for: mmm-systemtemperature
    Starting node helper: mmm-systemtemperature
    Connecting socket for: MMM-News
    Connecting socket for: MMM-RTSPStream
    Sockets connected & modules started ...
    Launching application.
    WatchDog started. Maximum timeout: 10s.
    GET_WUNDERGROUND
    Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/ketz%40gmail.com/private-2d9/basic.ics - Interval: 300000
    Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 300000
    [NEWS] Initialized.
    [NEWS] Articles are aggregated :  10
    Starting stream stream1 with args: [
        "--avdict",
        "rtsp_transport:tcp",
        "--win",
        "63, 1043, 843, 1543",
        "--live",
        "--video_queue",
        "4",
        "--fps",
        "30",
        "rtsp://admin:xxxxxxxx@192.168.0.7:554/h264Preview_01_main"
    ]
    PM2: omx_stream1 already running. Stopping old instance...
    Starting PM2 for omx_stream1
    PM2 started for omx_stream1
    [NEWS] Articles are aggregated :  10
    2019-02-13T15:09:40-05:00 6 MMM-WunderGround: null
    [NEWS] Articles are aggregated :  10
    2019-02-13T15:19:42-05:00 6 MMM-WunderGround: null
    [NEWS] Articles are aggregated :  10
    [NEWS] Articles are aggregated :  10
    [NEWS] Articles are aggregated :  10
    [NEWS] Articles are aggregated :  10
    
    

    and the config:

            {
                module: "MMM-RTSPStream",
                position: "bottom_bar",
                config: {
                    autoStart: true,
                    rotateStreams: false,
                    rotateStreamTimeout: 10,
                    moduleWidth: 780,
                    moduleHeight: 500,
                    localPlayer: 'omxplayer',
                    remotePlayer: 'none',
                    showSnapWhenPaused: false,
                    remoteSnaps: false,
                    stream1: {
                        name: 'Front',
                        url: 'rtsp://admin:xxxxxx@192.168.0.7:554/h264Preview_01_sub',
                        frameRate: undefined,
                        hdUrl: 'rtsp://admin:xxxxxxx@192.168.0.7:554/h264Preview_01_main',
                        width: 780,
                        height: 500,o
                        omxRestart: 24,
                    },
                }
            },
    

    Thanks in advance!


Log in to reply