Read the statement by Michael Teeuw here.
[MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
@djuscha said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
both streams are on stop and error messages
This looks like the same error I got when I tried to use omxplayer with the OpenGL driver enabled inraspi-config
. You’ll have to use the legacy driver if you want to use omxplayer on the most recent version of Raspbian.EDIT 10-Jan-19: Use the latest
develop
branch version. omxplayer requires the--no-osd
flag to work properly with the OpenGL (Fake KMS) driver. -
@shbatm I can confirm that I followed the whole instructions properly and I am using
notification: "RTSP-PLAY", payload: "streamX"
indeed for my 7 different streams (so yes less than 10).All I can say is that it is NOT working as intended. :winking_face:
Anyway I always forgot to post the (latest version) PM2 log so here it is if you can find anything helpful?
I wish I could do more, but again I am not skilled enough sorry… :smiling_face_with_open_mouth_cold_sweat: -
@cr4z33 @evroom the last things I can suggest to try:
- @Cr4z33 Make sure you have
autoStart: false
in your config. @evroom yours should betrue
. - Update the module one more time:
cd ~/MagicMirror/modules/MMM-RTSPStream git fetch --al && git pull rm -R node_modules/ npm install
- Nuke and update your pm2:
pm2 kill rm ~/.pm2/dump.pm2 sudo npm i -g pm2
- Restart the MM script (you’ll have to redo
pm2 save
BEFORE you run any streams if you want the MM to start on boot).
- @Cr4z33 Make sure you have
-
@shbatm I feel sorry, but nothing has improved. :disappointed_face:
-
@shbatm
Performed all steps.
No change: no stream is started (nothing in the pm2 logs).Then deleted the MMM-RTSPStream module completely.
Rebooted.
Installed the module again.
No change: no stream is started (nothing in the pm2 logs).Then performed all steps to get in the develop branch.
No change: no stream is started (nothing in the pm2 logs).I ended up disabling the module and running a script under pm2 control.
Pity, it worked just fine till I started to test the changes.
The ‘pm2 delete omx_stream1’ was the final blow, but should not be the reason for a stream not to appear again.Perhaps a complete re-install of MM is necessary, but that is too much work for now.
Should I be forced to do so in the future, I will give MMM-RTSPStream a try again. -
@cr4z33 Can you please post (or send in chats) your current config. I’m curious if we’re missing something obvious.
@evroom I’m sorry you can’t get it working again. I’m at a loss as to why it’s not starting the streams properly. Everything in your config you sent looks like it should be working from the module’s end. The only thing I can think of is something else is interfering and preventing the module from starting. (Would show up as a “MMM-RTSPStream is suspended…” in the DevTools (web browser) console logs.
-
@evroom I’m sorry but I haven’t read too far back in the posts but have you tried disabling your other modules to determine if there’s a conflict somewhere?
The reason I ask is because shbatm helped me recently with everything setup correctly but stream not displaying. One of the issues turned out to be the GoogleMapsTraffic module. Just wanted to mention that just in case. Good luck!
-
-
hi ,trying to use this module to watch an ip cam.After i start MM i get in the log:
Starting stream stream1 with args: [ "--avdict", "rtsp_transport:tcp", "--win", "738, 63, 1090, 305", "--live", "--video_queue", "4", "--fps", "30", "rtsp://admin:@192.168.1.108:554/12?" ] error: object file .git/objects/0a/340d5d575f5675a19c2108bb1acc9f20576259 is empty error: object file .git/objects/0a/340d5d575f5675a19c2108bb1acc9f20576259 is empty fatal: loose object 0a340d5d575f5675a19c2108bb1acc9f20576259 (stored in .git/objects/0a/340d5d575f5675a19c2108bb1acc9f20576259) is corrupt fatal: The remote end hung up unexpectedly Starting PM2 for omx_stream1 PM2 started for omx_stream1
when i press pause and play again i get:
Stopping stream stream1 Stopping PM2 process: omx_stream1 Starting stream stream1 with args: [ "--avdict", "rtsp_transport:tcp", "--win", "738, 63, 1090, 305", "--live", "--video_queue", "4", "--fps", "30", "rtsp://admin:@192.168.1.108:554/12?" ] Starting PM2 for omx_stream1 PM2 started for omx_stream1
I just get a blank screen.Steam is working nice with vlc,its the second low res stream of this camera.
config:module: "MMM-RTSPStream", position: "top_center", config: { autoStart: true, rotateStreams: true, rotateStreamTimeout: 10, moduleWidth: 354, moduleHeight: 240, localPlayer: 'omxplayer', remotePlayer: 'none', showSnapWhenPaused: false, remoteSnaps: false, stream1: { name: 'bibicam', url: 'rtsp://admin:@192.168.1.108:554/12?', frameRate: undefined, width: undefined, height: undefined, }, } }
any ideas?
-
For the first one:
@costascontis said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
error: object file .git/objects/0a/340d5d575f5675a19c2108bb1acc9f20576259 is empty
That’s a new one by me… maybe time for Google on that one.
For the blank screen: watch all of the PM2 logs (
pm2 logs
command) and see if you see something like this:1|omx_stre | * failed to add service - already in use? 1|omx_stre | /usr/bin/omxplayer: line 67: 15281 Aborted (core dumped)
If you do, you probably have the latest version of Raspbian with the OpenGL driver enabled in
raspi-config
– omxplayer isn’t working properly with the OpenGL driver enabled, if you want to use omxplayer, you’ll have to enable the legacy driver: https://www.raspberrypi.org/forums/viewtopic.php?t=204794If you see anything else in the PM2 logs, let me know.