@dasbooter
No :(
Read the statement by Michael Teeuw here.
Posts
-
RE: Carousel and omxplayer moving
Hi yams,
From what I understand is that I do not just do a kill of omxplayer because the RTSPStream module reopens.
I need to make a stop stream of the RTSPStream module.
In fact I tried to make OMXPlayer kill from the MMM-OnScreenMenu module by modifying the shutdown entry to make a kill to omxplayer but after a while the stream reappears!
So my purpose would be to stop the stream when they are on pages that do not display it (pages 1, 2, 4) and open it only on page 3Thanks, Alberto
-
RE: Carousel and omxplayer moving
Goodmorning,
I’m trying to insert a command to the MMM-RTSPStream module, which stops the rtsp flow from all the pages that do not contain the frame that displays the stream but I can not figure out how to do it.
I have inserted this part of code in the MMM-Carousel.js file from row 131:
Stream view is on page 3:// Update the current index if (goToIndex === -1) { // Go to a specific slide? if (goDirection === 0) { this.currentIndex += 1; // Normal Transition, Increment by 1 if (this.currentIndex != 2) this.Notification("STOP_ALL_OMXSTREAMS", "") } else { console.log("Currently on slide " + this.currentIndex + " and going to slide " + (this.currentIndex + goDirection)); this.currentIndex += goDirection; // Told to go a specific direction if (this.currentIndex != 2) this.sendNotification ("STOP_ALL_OMXSTREAMS", "") } if (this.currentIndex >= resetCurrentIndex) { // Wrap-around back to beginning this.currentIndex = 0; this.sendNotification("STOP_ALL_OMXSTREAMS", "") } else if (this.currentIndex < 0) { this.currentIndex = resetCurrentIndex - 1; // Went too far backwards, wrap-around to end this.sendNotification("STOP_ALL_OMXSTREAMS", "") } } else if (goToIndex >= 0 && goToIndex < resetCurrentIndex) { this.currentIndex = goToIndex; // Go to a specific slide if in range if (this.currentIndex != 2) this.Notification("STOP_ALL_OMXSTREAMS", "") }I entered this line where I think the page is being checked:
this.sendNotification("STOP_ALL_OMXSTREAMS", "")I certainly miss something in sendnotification or/and in code placement
If possible, would you give me a hand?
Thanks, Alberto
-
Run module
Good evening,
do you know if there is a module running a command that runs an external program?
I use the Carousel module and I would like to be able to insert a command in some slides that does something.Thank you, Alberto
-
Carousel and omxplayer moving
Good evening,
I use MMM-Carousel.
My question is:
you can move somehow omxplayer to scroll pages.
At this time the player when it is open is fixed at the position where it opens.
Do you think there are possibilities and / or solutions?Thank you, Alberto
-
RE: MMM-RTSPStream dosent work in my case
Thanks barnosch,
I think I’ve solved the problem: D
I think because I’m working remotely and I can not see if the stream is shown or not but I trust.
I practically lost a pass that eliminated the sound.
So I think that everything is resolved.
I see the stable connection from the remote console and then almost for sure that the module now works.
I find it in issue.
The command it solves is:
git fetch - all
git checkout nosoundI’ll let you know as soon as I see it with my eyes
:) -
RE: MMM-RTSPStream dosent work in my case
Sorry if I keep on this monologue but I’m going crazy !!
I’ve tried MagicMirror with only the standard modules and the MMM-RSPSream module.
Created the code to enter in config.js
Enter the code in config.js
Starting npm start I see the frame of rtsp stream but I do not see anything.
If I hit the frame I see the play icon if I get it I see the pause icon as if the stream was played but I see nothing.I’m really tired of this thing.
I know it might go but it does not go and I just miss this form to close the project.Really give me a hand please
Thank you, Alberto
-
RE: MMM-RTSPStream dosent work in my case
@alverman said in MMM-RTSPStream dosent work in my case:
So I think I’ve solved the problem of why the console flow is interrupted!
from console I have to give this command:
omxplayer -n -1 --timeout 0 --avdict rtsp_transport: tcp “rtsp://10.0.0.60:554/h264/?ch=1&subtype=1& authbasic = admin:123456”So now how can I add the switches:
-n -1 --timeout 0 --avdict rtsp_transport: tcpin config.js?
Any help please?
Thank you, Alberto -
RE: MMM-RTSPStream dosent work in my case
So I think I’ve solved the problem of why the console flow is interrupted!
from console I have to give this command:omxplayer -g -n -1 --timeout 0 --avdict rtsp_transport: tcp "rtsp://10.0.0.60:554/h264/?ch=1&subtype=1& authbasic = admin:123456"So now how can I add the switches:
-g -1 --timeout 0 --avdict rtsp_transport: tcpin config.js?
Any help please?
Thank you, Alberto
-
RE: MMM-RTSPStream dosent work in my case
Another problem, always in console, is that if the stream tends to lower itself, the omxplayer closes
-
RE: MMM-RTSPStream dosent work in my case
Good morning,
I made a small step but I have not been able to solve it yet.
Until now I have tried console to display rtsp stream from my dvr without result.
Just putting the line -n -1 (no audio) succeeded, from the command line, to display the flow.
Then in the configuration file (config.js) or the MMM-RTSTStream module you should enter the parsing -n -1 !!
But how do I do it?Thank you, Alberto
-
RE: MMM-RTSPStream dosent work in my case
Hi barnosch,
I ran npm install in the module MMM-RTSPStram folder.
I had already tried the normal MagicMirror css and went the same way.
On pi3 I have two versions of MagicMirror installed.
An original and one with all the modules I need.
To try one or the other version, rename the Home/pi/MagicMirror folder and test itThanks for your attenction, Alberto
-
RE: MMM-RTSPStream dosent work in my case
hi barnosch,
the string is just that inserted in the forum has taken this look.
The string in the configuration is right.
One test I did not do is the one you have proposed.
after I put the video file on my desktop I changed the form string with:{ module: "MMM-RTSPStream", position: "slide1mods_bottom_left", header: "Video Surveillance", config: { autoStart: true, rotateStreams: true, rotateStreamTimeout: 10, moduleWidth: 3, moduleHeight: 240, localPlayer: "omxplayer", remotePlayer: "ffmpeg", showSnapWhenPaused: true, remoteSnaps: true, stream1: { name: 'Cam1', // url: "rtsp://10.0.0.60:554/h264/?ch=1&subtype=1&authbasic=admin:123456" url: '/home/pi/Desktop/test.h264', frameRate: '15', protocol: 'tcp', hdUrl: 'none', snapshotType: 'url', snapshotRefresh: 10, width: undefined, height: undefined, ffmpegPort: 9999, }, } },But you see nothing.
Performing the console test file with:omxplayer /home/pi/Desktop/test.h264I see the movie !!
I do not know what else to try !! -
MMM-RTSPStream dosent work in my case
good night
It’s all day that I try to run the MMM-RTSPStream module without results.
My cameras are connected to a dvr and the stream I need to view takes it from the dvr with this string:
rtsp: //10.0.0.60: 554/h264/?ch=1&subtype=1&authbasic=admin:123456Using vlc on a regular pc all works at the first shot.
Using ffplay on a regular pc works
If I use ffplay on raspberry, outside mmm, it works but after about a minute the flow stops.
If I use the form in magicmirror I see a window without stream.My configuration in config.js is:
{ module: "MMM-RTSPStream", position: "slide1mods_bottom_left", header: "Video Surveillance", config: { autoStart: true, rotateStreams: true, rotateStreamTimeout: 10, moduleWidth: 3, moduleHeight: 240, localPlayer: "omxplayer", remotePlayer: "ffmpeg", showSnapWhenPaused: true, remoteSnaps: true, stream1: { name: 'Cam1', url: "rtsp: //10.0.0.60: 554 / h264 /? ch = 1 & subtype = 1 & authbasic = admin: 123456" frameRate: '15', protocol: 'tcp', hdUrl: 'none', snapshotType: 'url', snapshotRefresh: 10, width: undefined, height: undefined, ffmpegPort: 9999, }, } },When magicmirror runs, I see:
…
Create new news fetcher for url: http://www.repubblica.it/rss/cronaca/rss2.0.xml - Interval: 300000
Starting WebSocket server on port 9999. Waiting for connections …
Starting stream stream1 with args: [
“–avdict”
“Rtsp_transport: tcp”
“–win”
“139, 1546, 491, 1788”
“–live”
“–video_queue”
“4”
“–fps”
“30”,
“Rtsp: //10.0.0.60: 554 / h264 /? Ch = 1 & subtype = 1 & authbasic = admin: 123456”
]
Starting PM2 for omx_stream1
PM2 started for omx_stream1It looks okay but I do not see the stream
If I run console omxplayer I see:
pi $ pi3mmm: ~ / MagicMirror $ omxplayer “rtsp: //10.0.0.60: 554 / h264 /? ch = 1 & subtype = 1 & authbasic = admin: 123456”
Video codec omx-h264 width 320 height 240 profile 77 fps 15.000000
Audio codec pcm_alaw channels 1 samplerate 8000 bitspersample 8
Subtitle count: 0, state: off, index: 1, delay: 0
V: PortSettingsChanged: 320x240@15.00 interlace: 0 deinterlace: 0 anaglyph: 0 par: 1.00 display: 0 layer: 0 alpha: 255 aspectMode: 0and I can not see any streams open
If I run ffplay from console I see:
Input # 0, rtsp, from ‘rtsp: //10.0.0.60: 554 / h264 /? Ch = 1 & subtype = 1 & authbasic = admin: 123456’:
Metadata:
title: ZNRTSPServer
Duration: N / A, start: 2.133311, bitrate: N / A
Stream # 0: 0: Video: h264 (Main), yuv420p (tv, bt709, progressive), 320x240, 15 fps, 15 tbr, 90k tbn, 30 tbc
Stream # 0: 1: Audio: pcm_alaw, 8000 Hz, 1 channel, s16, 64 kb / syou open a window where I see the stream but after about a minute it locks.
Help, advice?
Thank you, Alberto
-
MM locked when include modules in config
Re: MMM-ImagesPhotos - Show images from a directory
Hi,
when include your module in config.js and start magic mirror is all black, nothing module work.
Advise ?
Thanks, Alberto -
RE: Multiple Pages of Modules using CSS
Hello,
I installed your fork and it works just fine.
That was what I was looking for with a touchscreen: D
But now I have a problem.
If I take the comment to activate other pages and check to a widget, the reference to page 3 is not displayed and the points to touch are just two.Is there anything else to modify in the main.js file?
Thank you, Alberto
-
RE: Diego Vieria Random-Photo read image from PI ?
I did not specify what I did just because I removed and reinstalled in the form and everything worked immediately all.
For the fact that change size and position of the image I was trying to change the form css but if you tell me that there is not enough to put your hand means that this change but the issue is more complex then await the development of your work.Congratulations for your job
Thank you, Alberto