-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VLC Player issues #33
Comments
To tackle the first problem of half the video showing, do an experiment and delete the two lines in You can also try adding I'll look at the traffic module tomorrow. |
Please check the DevTools console (Ctrl+Shift+I on the Mirror's screen) and see if you have any errors. If it's not trying to start the stream then it's never getting a signal from the front-end that its ready to start. |
Hi there! Ok, i just got back to the office. Will spend some time working on this and also the changes you requested to figure out the placement. Will get back to you shortly with updates. Thanks! |
Am I looking for anything specific? When I mentioned I don't see it loading, if you look at the pm2 logs above when GoogleMapsTraffic is enabled with RTSP I don't see VLC trying to load, when GoogleMapsTraffic is disabled I see it load: 0|MagicMirror | Starting stream stream1 using VLC with args --width 352 --height 242 -I dummy --no-video-deco --no-embedded-video --video-title=stream1 The 1 error I see in the console from RTSP module is: Uncaught TypeError: console.log is not a function |
Although GoogleMapsTraffic loads and displays the correct data I am getting the following errors in console: Uncaught TypeError: Cannot read property (MMM-GoogleMapsTraffic.js:77) You have included the Google Maps Javascript API multiple times on this page. This may cause unexpected errors. (:121) |
I saw you opened a bug for this on MMM-GoogleMapsTraffic. I'll let them sort it out, but the simplest fix for now looks like it would be to add |
Yep, the only way I could get it to work was by removing the markers section. Before then I was just get "Loading..." so yeah I don't think that is affecting the RTSP module. Did you get anything from the RTSP error above? |
Actually, that only fixes part of the problem. vicmora/MMM-GoogleMapsTraffic#15 is the real problem child. Update this line: https://github.com/vicmora/MMM-GoogleMapsTraffic/blob/master/MMM-GoogleMapsTraffic.js#L106 to say: |
Ok, added markers: [], and edited line 106 and now my stream is working!!! You got it. Thank you! Now, on to the last issue of placement. Its still not filling the entire box. I'm going to make the changes you suggested last night and report back. |
Ok so I commented out the 2 I decorate lines and took this picture for you to see how it looks. Not sure what this means or how to fix it though. It seems like the full image isn't being displayed as you can see the date is cut off:
|
With the undecorate lines commented out, I also added --autoscale arg but it doesn't make a difference. The right edge is still missing :( |
So because that blue title bar goes all the way to the right of the module
box, that means it's VLC screwing up, not the module. I'm not sure why
though. With it like that, you can try resizing that VLC window with a
mouse and see what happens (if it fills the window or not). It looks like
an aspect ratio or some other issue with VLC playing the video stream.
|
Well, when I updated undecorate lines were re-enabled. I will double check but does that mean every time the mirror restarts I have to comment out undecorated , and manually adjust/resize for it to fit in the box and show full video? Also; could I execute anything in the args to have it show the full picture? This is a 4PM camera with high resolution but that wouldn't be an issue right? Since the sub stream uses a lower resolution which is what VLC is streaming? |
The commented lines coming back is just because you updated the module. It should stay throughout normal restarts. It could be that the lower resolution stream is a different aspect ratio. You can try changing the module or stream size in the config. There may be some vlc command line options you can play with, it should output the VLC command used in the console log... Just play w that without the mirror running. So when you resize the window it goes to full window? You can try the alternative method for moving windows... Near the undecorate lines there should be a set_window_geometry( line, try set_window_geometry2( |
Thanks a lot. So you're saying to close MagicMirror and try to run VLC from terminal on the desktop to troubleshoot? Could you recommend some vlc command line options to try? I am completely new to all of this but have just been doing as much research/reading as possible so please forgive me as you have been extremely responsive and helpful to my nagging self :) 👍 |
No problem. I've gotten a lot of help trying to learn all this stuff (I
didn't know much about Node or Javascript when I started with the mirror,
so happy to give back)
Yeah, try some trial and error with a lot of Google for VLC and see if you
can get it to work the way you want. I don't have any more experience w
VLCs commands... Everything I've done so far w the module this week has
been creative googling.
…On Fri, Jan 4, 2019, 10:08 PM anthony6608 ***@***.*** wrote:
Thanks a lot. So you're saying to close MagicMirror and try to run VLC
from terminal on the desktop to troubleshoot? Could you recommend some vlc
command line options to try? I am completely new to all of this but have
just been doing as much research/reading as possible so please forgive me
as you have been extremely responsive and helpful to my nagging self :) 👍
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AROK4Bbyv9pWvk0Gzp9nx6OGanZ1w8xIks5vACUvgaJpZM4ZpIXl>
.
|
Sounds good, I’ll do some research when I get back. Haven’t had a chance yet to do anything today.
I was thinking do you think it has anything to do with my ip camera specifically? I mean I don’t have any issues viewing it anywhere else but is just a thought.
Do you know of any public rtsp streams I can maybe test with?
Thanks again
|
Look for the big buck bunny test stream (should be a link in the defaults
in the MMM-RTSPStream.js file.
It could be the camera, but could be a lot of other things too...
…On Sat, Jan 5, 2019, 1:18 PM anthony6608 ***@***.*** wrote:
Sounds good, I’ll do some research when I get back. Haven’t had a chance
yet to do anything today.
I was thinking do you think it has anything to do with my ip camera
specifically? I mean I don’t have any issues viewing it anywhere else but
is just a thought.
Do you know of any public rtsp streams I can maybe test with?
Thanks again
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AROK4EmrjZ5i2xLXO79priSRtjHvfaFiks5vAPp9gaJpZM4ZpIXl>
.
|
Thank you, going to try that shortly. Most likely this is a vlc player issue. I’m going to mess with the rags and stuff now but if all fails, knowing that I have a fresh install and configured only for vlc, what changes do I need to make to switch and test it with oxmplayer? Thanks again 🙏 |
Ok, so using the big buck bunny test steam proves that its something with VLC player and not my camera, therefore I think anyone using the VLC method is going to run into this problem. Ive tried with a couple different videos from local lan and same thing as well, the right portion of the video is missing. Any ideas here? I'm not sure what else to do. Also, I may just switch back to omxplayer. What do you think and what changes need to be made to switch over smoothly to oxmplayer? Thanks! |
Quick Google for 'vlc cutting off right side' comes back that it has
something to do with the video output module. So, yes, it could be
something with your version of VLC or one of the command line options, or
it could be the OpenGL driver on the Pi.
To get back to omxplayer, you'll need to disable OpenGL driver (enable
Legacy Driver in raspi-config) and then change your config back to
`localPlayer: 'omxplayer' `.
BTW, to get all of the VLC command line options, you can run: `vlc -H
--advanced --help-verbose`
|
Thanks a lot, for now I reverted back to omxplayer and not having any problems however I only have 1 camera added right now and will be adding more soon and enabling rotation. Hopefully I can retry vlc player soon. When you use the vlcplayer, did you encounter the same issues I am having? I did try uninstalling the default vlc version that comes with raspbian stretch however I couldn't get the older version installed for some reason. Also I noticed on the downloads page, the dates did not match the version number for some reason? For example, 3.0.4 came out in august and 3.0.5 came out in December. If I recall correctly, during the bootstrap command it stopped and gave me an error that lua wasn't installed although it is? Lastly, I was to place the stream on the right side bottom, how can I make the line under "LIVE FEED" smaller so it doesn't stretch across the screen? It seems like its configured for middle placement. Thanks again for all your help! I will do more testing on vlc and report back anything I find soon. |
It may be worth starting with a fresh download of the current version of Raspbian Stretch (do it on a different SD Card or backup your image first) and just see if a clean install gives the same issues. I did not see any of the issues you described with my 5 Hikvision cameras.
Make sure you're using |
FWIW, I tried VLC - and it didn't work either - my fix was to go back to the legacy screen driver. (Works for OMXPLayer and FFMPeg too) |
This problem is related to screen rotation.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Thank you again for updating and yes, I chose to go the VLC route :)
Ok, so I decided to create an issue here just to keep things neat and easier to track for anyone in the future having these issues. I apologize in advance for the messy post, Ive been posting all over today, lol.
So initially I was attempting to configure omxplayer but you said there may have been something broken in the master branch so I could either downgrade? or try the new VLC player configuration.
I had a fresh install of Raspbian (Nov 2018) with the latest MagicMirror2. Followed all the instructions from the forum post.
First of all, I know I initially was getting some permission errors when running 'npm install' in the RTSP directory. Also, I have a 4MP Dahua camera, is there a way to stream the highest resolution in the little box on my MagicMirror instead or would this not work and I have to used Sub stream?
The major issues I have noticed while trying to get this to run right:
With GoogleMapsTraffic ENABLED (apologize for the lengthiness)
PM2 | Stopping app:MagicMirror id:0
0|MagicMirror | Shutting down server...
0|MagicMirror | Stopping module helper: updatenotification
PM2 | pid=25411 msg=failed to kill - retrying in 100ms
PM2 | App [MagicMirror:0] exited with code [0] via signal [SIGINT]
PM2 | pid=25411 msg=process killed
PM2 | App [MagicMirror:0] starting in -fork mode-
PM2 | App [MagicMirror:0] online
0|MagicMirror | > [email protected] start /home/pi/MagicMirror
0|MagicMirror | > sh run-start.sh
0|MagicMirror | Starting MagicMirror: v2.6.0
0|MagicMirror | Loading config ...
0|MagicMirror | Loading module helpers ...
0|MagicMirror | No helper found for module: alert.
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: updatenotification
0|MagicMirror | No helper found for module: clock.
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: calendar
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: MMM-GoogleMapsTraffic
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: MMM-MyCommute
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: MMM-RTSPStream
0|MagicMirror | No helper found for module: currentweather.
0|MagicMirror | No helper found for module: weatherforecast.
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: newsfeed
0|MagicMirror | All module helpers loaded.
0|MagicMirror | Starting server on port 8080 ...
0|MagicMirror | Server started ...
0|MagicMirror | Connecting socket for: updatenotification
0|MagicMirror | Connecting socket for: calendar
0|MagicMirror | Starting node helper for: calendar
0|MagicMirror | Connecting socket for: MMM-GoogleMapsTraffic
0|MagicMirror | Starting node_helper for module: MMM-GoogleMapsTraffic
0|MagicMirror | Connecting socket for: MMM-MyCommute
0|MagicMirror | ====================== Starting node_helper for module [MMM-MyCommute]
0|MagicMirror | Connecting socket for: MMM-RTSPStream
0|MagicMirror | PM2: Stopping all OMXPlayer Streams...
0|MagicMirror | Connecting socket for: newsfeed
0|MagicMirror | Starting module: newsfeed
0|MagicMirror | Sockets connected & modules started ...
0|MagicMirror | Launching application.
0|MagicMirror | libGL error: MESA-LOADER: failed to retrieve device information
0|MagicMirror | MESA-LOADER: failed to retrieve device information
0|MagicMirror | MESA-LOADER: failed to retrieve device information
0|MagicMirror | ATTENTION: default value of option force_s3tc_enable overridden by environment.
0|MagicMirror | Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
0|MagicMirror | Working notification system. Notification: MMM-GOOGLE_MAPS_TRAFFIC-GET payload: { style: 'black' }
0|MagicMirror | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
With GoogleMapsTraffic DISABLED
M2 | Stopping app:MagicMirror id:0
0|MagicMirror | Shutting down server...
0|MagicMirror | Stopping module helper: updatenotification
PM2 | pid=25411 msg=failed to kill - retrying in 100ms
PM2 | App [MagicMirror:0] exited with code [0] via signal [SIGINT]
PM2 | pid=25411 msg=process killed
PM2 | App [MagicMirror:0] starting in -fork mode-
PM2 | App [MagicMirror:0] online
0|MagicMirror | > [email protected] start /home/pi/MagicMirror
0|MagicMirror | > sh run-start.sh
0|MagicMirror | Starting MagicMirror: v2.6.0
0|MagicMirror | Loading config ...
0|MagicMirror | Loading module helpers ...
0|MagicMirror | No helper found for module: alert.
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: updatenotification
0|MagicMirror | No helper found for module: clock.
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: calendar
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: MMM-GoogleMapsTraffic
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: MMM-MyCommute
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: MMM-RTSPStream
0|MagicMirror | No helper found for module: currentweather.
0|MagicMirror | No helper found for module: weatherforecast.
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: newsfeed
0|MagicMirror | All module helpers loaded.
0|MagicMirror | Starting server on port 8080 ...
0|MagicMirror | Server started ...
0|MagicMirror | Connecting socket for: updatenotification
0|MagicMirror | Connecting socket for: calendar
0|MagicMirror | Starting node helper for: calendar
0|MagicMirror | Connecting socket for: MMM-GoogleMapsTraffic
0|MagicMirror | Starting node_helper for module: MMM-GoogleMapsTraffic
0|MagicMirror | Connecting socket for: MMM-MyCommute
0|MagicMirror | ====================== Starting node_helper for module [MMM-MyCommute]
0|MagicMirror | Connecting socket for: MMM-RTSPStream
0|MagicMirror | PM2: Stopping all OMXPlayer Streams...
0|MagicMirror | Connecting socket for: newsfeed
0|MagicMirror | Starting module: newsfeed
0|MagicMirror | Sockets connected & modules started ...
0|MagicMirror | Launching application.
0|MagicMirror | libGL error: MESA-LOADER: failed to retrieve device information
0|MagicMirror | MESA-LOADER: failed to retrieve device information
0|MagicMirror | MESA-LOADER: failed to retrieve device information
0|MagicMirror | ATTENTION: default value of option force_s3tc_enable overridden by environment.
0|MagicMirror | Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
0|MagicMirror | Working notification system. Notification: MMM-GOOGLE_MAPS_TRAFFIC-GET payload: { style: 'black' }
0|MagicMirror | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
PM2 | Change detected on path config/config.js for app MagicMirror - restarting
PM2 | Stopping app:MagicMirror id:0
0|MagicMirror | Shutting down server...
PM2 | pid=25866 msg=failed to kill - retrying in 100ms
PM2 | App [MagicMirror:0] exited with code [0] via signal [SIGINT]
PM2 | pid=25866 msg=process killed
PM2 | App [MagicMirror:0] starting in -fork mode-
PM2 | App [MagicMirror:0] online
0|MagicMirror | > [email protected] start /home/pi/MagicMirror
0|MagicMirror | > sh run-start.sh
0|MagicMirror | Starting MagicMirror: v2.6.0
0|MagicMirror | Loading config ...
0|MagicMirror | Loading module helpers ...
0|MagicMirror | No helper found for module: alert.
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: updatenotification
0|MagicMirror | No helper found for module: clock.
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: calendar
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: MMM-MyCommute
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: MMM-RTSPStream
0|MagicMirror | No helper found for module: currentweather.
0|MagicMirror | No helper found for module: weatherforecast.
0|MagicMirror | Initializing new module helper ...
0|MagicMirror | Module helper loaded: newsfeed
0|MagicMirror | All module helpers loaded.
0|MagicMirror | Starting server on port 8080 ...
0|MagicMirror | Server started ...
0|MagicMirror | Connecting socket for: updatenotification
0|MagicMirror | Connecting socket for: calendar
0|MagicMirror | Starting node helper for: calendar
0|MagicMirror | Connecting socket for: MMM-MyCommute
0|MagicMirror | ====================== Starting node_helper for module [MMM-MyCommute]
0|MagicMirror | Connecting socket for: MMM-RTSPStream
0|MagicMirror | PM2: Stopping all OMXPlayer Streams...
0|MagicMirror | Connecting socket for: newsfeed
0|MagicMirror | Starting module: newsfeed
0|MagicMirror | Sockets connected & modules started ...
0|MagicMirror | Launching application.
0|MagicMirror | libGL error: MESA-LOADER: failed to retrieve device information
0|MagicMirror | MESA-LOADER: failed to retrieve device information
0|MagicMirror | MESA-LOADER: failed to retrieve device information
0|MagicMirror | ATTENTION: default value of option force_s3tc_enable overridden by environment.
0|MagicMirror | Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
0|MagicMirror | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
0|MagicMirror | Starting stream stream1 using VLC with args --width 352 --height 242 -I dummy --no-video-deco --no-embedded-video --video-title=stream1 rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1...
0|MagicMirror | DP2: Running window resizers...
0|MagicMirror | DP2: Running window resizers...
The text was updated successfully, but these errors were encountered: