Read the statement by Michael Teeuw here.
[MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
@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_stream1when 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_stream1I 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 logscommand) 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.
-
i tested the bunny rtsp and another camera that output a “rtsp://ipcamera:554/ch0.h264” link and both work,so i think the camera i want to use that output the “rtsp://ipcamera:554/12” link has a problem with omxplayer.I will look at pm2 logs and i ll get back to you,thanx
edit : the links that worked for me did not auto started but i had to press pause and play again.pm2 log :
/home/pi/.pm2/logs/mm-out.log last 15 lines: 0|mm | Starting stream stream1 with args: [ 0|mm | "--avdict", 0|mm | "rtsp_transport:tcp", 0|mm | "--win", 0|mm | "738, 63, 1090, 305", 0|mm | "--live", 0|mm | "--video_queue", 0|mm | "4", 0|mm | "--fps", 0|mm | "30", 0|mm | "rtsp://admin:@192.168.1.108/12.h264" 0|mm | ] 0|mm | PM2: omx_stream1 already running. Stopping old instance... 0|mm | Starting PM2 for omx_stream1 0|mm | PM2 started for omx_stream1i see no error but no streaming,only the name of the cam and black screen…
-
I found that on my troubleshooting on the internet maybe that helps us?
-
@costascontis said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
i tested the bunny rtsp and another camera that output a “rtsp://ipcamera:554/ch0.h264” link and both work,so i think the camera i want to use that output the “rtsp://ipcamera:554/12” link has a problem with omxplayer.I will look at pm2 logs and i ll get back to you,thanx
edit : the links that worked for me did not auto started but i had to press pause and play again.pm2 log :
/home/pi/.pm2/logs/mm-out.log last 15 lines: 0|mm | Starting stream stream1 with args: [ 0|mm | "--avdict", 0|mm | "rtsp_transport:tcp", 0|mm | "--win", 0|mm | "738, 63, 1090, 305", 0|mm | "--live", 0|mm | "--video_queue", 0|mm | "4", 0|mm | "--fps", 0|mm | "30", 0|mm | "rtsp://admin:@192.168.1.108/12.h264" 0|mm | ] 0|mm | PM2: omx_stream1 already running. Stopping old instance... 0|mm | Starting PM2 for omx_stream1 0|mm | PM2 started for omx_stream1i see no error but no streaming,only the name of the cam and black screen…
Looks like you’re using an older version of the module based on the log. Try pulling the new version and switching to the develop branch… you should see the full omxplayer command line output to the logs, which you can use to test your camera outside of MM and the module.
-
Updated to dev branch and use rotate streams true (3) and after 3 hours it completely locks up my entire RPi and I have to pull the plug and disable same. Seems like it is too much on CPU to keep starting/stopping OMX every 15 seconds to cause the crash? Single stream average RPi temp is 128f but when rotate is on it jumps to 160f. Maybe thats the issue?
-
@swvalenti That could be. OMX player doesn’t switch very easily. VLC switching was working well on the newest version of Rasbian with OpenGL (Fake KMS) enabled.
-
@shbatm said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
@swvalenti That could be. OMX player doesn’t switch very easily. VLC switching was working well on the newest version of Rasbian with OpenGL (Fake KMS) enabled.
How do I make that switch and implement? Sorry for the noob question.
-
@djuscha said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
I found that on my troubleshooting on the internet maybe that helps us?
RTSP-Stream-ViewerThanks for the link. Bits of that script look like the script I saw which originally inspired me to use omxplayer, but it has some additional options (like pushing a video off the screen instead of stopping it) that seem promising. I ended up using
pm2instead ofscreenbecause that’s what most MM users were already using, and it had the auto restart feature built in.I don’t have much time for the next month or so to keep playing with the omx version, so if you wouldn’t mind, please open an issue on GitHub, and if you or anyone has time/skills to implement, I’ll be happy to take a PR.
To-do (notes to myself or anyone that works on this):
- Implement dbus control to move the video off-screen instead of stopping it when we need to hide it: Example dbuscontrol.sh; npm dbus Package
- Implement ffmpeg & vlc’s shutdownDelay option for omx player (e.g. move the video off-screen and stop it after x seconds instead of stopping it immediately when hiding a stream).
-
@swvalenti said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
How do I make that switch and implement? Sorry for the noob question.
Look back at previous posts in this thread, there should be several posts from the past month about switching and upgrading.
-
@djuscha Use the latest
developbranch version if you still want to use omxplayer with OpenGL (Fake KMS). I was stumbling around and found that omxplayer requires the--no-osdflag to work properly with the OpenGL (Fake KMS) driver. -
can someone use vlc instead of omxplayer with your module?If yes whats the pro and con on that?
-
@costascontis said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
can someone use vlc instead of omxplayer with your module?If yes whats the pro and con on that?
I know on the develop branch you can.
Pro: it kept the original aspect ratio.
con: it didn’t work more than once. -
@costascontis said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:
can someone use vlc instead of omxplayer with your module?If yes whats the pro and con on that?
Yes, its still experimental but was working fine for me. If you’re on a Raspberry Pi, it works best if you’re using the newest distro of Raspbian because VLC has Hardware Acceleration enabled.
Your mileage may vary between omxplayer and VLC. OMXPlayer is finicky and doesn’t rotate streams well (will be working on that)–VLC should in theory be much more stable and easy to use, but some people have had issues getting it to respond correctly on the Pi.
Back up a few pages on this thread to find out how to install the
developbranch. -
@shbatm I hope your module will be perfect one day until then I have unfortunately to give up with the channel switching function and set a static Radio/TV stream. :thumbs_up_medium-light_skin_tone:
-
Hi @shbatm ,
how is the bug fixing job doing right now? :)
I’ve done in the meantime some testing both with VLC and OMXplayer options by using different streaming sources like mp3 podcasts, mp4 live channels & some IP cameras (that I’ve got at home).
I can confirm that something is wrong in the module code because the EXACT same issue (wrong stream selected while switching) is happening with the above sources. :confused_face:
-
@shbatm you there mate? :smiling_face_with_open_mouth_cold_sweat:
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login