Anonymousdog / displaycameras

System for displaying RTSP feeds from IP cameras on the Raspberry Pi
Apache License 2.0
565 stars 112 forks source link

Service saying that its playing stream but nothing showing #108

Closed PeterPolacek closed 2 years ago

PeterPolacek commented 2 years ago

pi@raspberrypi:~ $ sudo /usr/bin/displaycameras status NE is Playing http://192.168.1.59:8080/video at 172sec SE is NOT playing South is NOT playing SW is NOT playing West is NOT playing Vestibule is NOT playing

displaycameras.service - Displays camera feeds for monitoring Loaded: loaded (/etc/systemd/system/displaycameras.service; enabled; vendor preset: enabled) Active: active (exited) since Sat 2021-11-27 16:27:09 GMT; 2min 29s ago Docs: man:systemd-sysv-generator(8) Process: 4083 ExecStart=/usr/bin/displaycameras start (code=exited, status=0/SUCCESS) Main PID: 4083 (code=exited, status=0/SUCCESS) Tasks: 10 (limit: 1169) CPU: 25.870s CGroup: /system.slice/displaycameras.service ├─4098 dbus-daemon --fork --print-address 5 --print-pid 6 --session ├─4470 /bin/bash /usr/bin/omxplayer --no-keys --no-osd --avdict rtsp_transport:tcp --win 0 0 959 539 http://192.168.1.> └─4482 /usr/bin/omxplayer.bin --no-keys --no-osd --avdict rtsp_transport:tcp --win 0 0 959 539 http://192.168.1.59:808>

Nov 27 16:27:05 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 1 Nov 27 16:27:06 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 2 Nov 27 16:27:07 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 3 Nov 27 16:27:08 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 4 Nov 27 16:27:09 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 5 Nov 27 16:27:09 raspberrypi displaycameras[4449]: Vestibule failed playback Nov 27 16:27:09 raspberrypi displaycameras[4083]: Camera Display Started Nov 27 16:27:09 raspberrypi displaycameras[4083]: For complete status info, run Nov 27 16:27:09 raspberrypi displaycameras[4083]: /usr/bin/displaycameras status. Nov 27 16:27:09 raspberrypi systemd[1]: Finished Displays camera feeds for monitoring.

But i have no stream on screen. I am using raspberry pi 3b (16gb sd card, 256mb dedicated gpu memory), external monitor connected via hdmi to raspberry Raspberry Pi OS Lite Release date: October 30th 2021 Kernel version: 5.10

its a fresh instalation of OS Lite with rpi-update because of some dependencies with omx player ...

I can see a stream via VLC player ...

Please help! Thank you

Anonymousdog commented 2 years ago

Please try the stream debugging steps toward the end of the README.md file.

On Sat, Nov 27, 2021, 11:32 AM PeterPolacek @.***> wrote:

@.***:~ $ sudo /usr/bin/displaycameras status NE is Playing http://192.168.1.59:8080/video at 172sec SE is NOT playing South is NOT playing SW is NOT playing West is NOT playing Vestibule is NOT playing

displaycameras.service - Displays camera feeds for monitoring Loaded: loaded (/etc/systemd/system/displaycameras.service; enabled; vendor preset: enabled) Active: active (exited) since Sat 2021-11-27 16:27:09 GMT; 2min 29s ago Docs: man:systemd-sysv-generator(8) Process: 4083 ExecStart=/usr/bin/displaycameras start (code=exited, status=0/SUCCESS) Main PID: 4083 (code=exited, status=0/SUCCESS) Tasks: 10 (limit: 1169) CPU: 25.870s CGroup: /system.slice/displaycameras.service ├─4098 dbus-daemon --fork --print-address 5 --print-pid 6 --session ├─4470 /bin/bash /usr/bin/omxplayer --no-keys --no-osd --avdict rtsp_transport:tcp --win 0 0 959 539 http://192.168.1.> └─4482 /usr/bin/omxplayer.bin --no-keys --no-osd --avdict rtsp_transport:tcp --win 0 0 959 539 http://192.168.1.59:808>

Nov 27 16:27:05 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 1 Nov 27 16:27:06 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 2 Nov 27 16:27:07 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 3 Nov 27 16:27:08 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 4 Nov 27 16:27:09 raspberrypi displaycameras[4449]: Waiting for Vestibule omxplayer startup 5 Nov 27 16:27:09 raspberrypi displaycameras[4449]: Vestibule failed playback Nov 27 16:27:09 raspberrypi displaycameras[4083]: Camera Display Started Nov 27 16:27:09 raspberrypi displaycameras[4083]: For complete status info, run Nov 27 16:27:09 raspberrypi displaycameras[4083]: /usr/bin/displaycameras status. Nov 27 16:27:09 raspberrypi systemd[1]: Finished Displays camera feeds for monitoring.

But i have no stream on screen. I am using raspberry pi 3b (16gb sd card, 256mb dedicated gpu memory), external monitor connected via hdmi to raspberry Raspberry Pi OS Lite Release date: October 30th 2021 Kernel version: 5.10

Please help! Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKLK6YCJAINQ7JCLLNDUOEBZZANCNFSM5I4LE3JQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

PeterPolacek commented 2 years ago

Its seems like omx player wont play stream .. url si fine

Anonymousdog commented 2 years ago

You may need to change encoding parameters on the camera/DVR end. Omxplayer only does hardware decode; so, it depends on the codecs licensed in you particular GPU. They removed a bunch on RPi4. h264 is on all models IIRC.

Figure out the omxplayer command line you'd need, and I'll help you patch the main script to use the options in the working command.

Thanks, Andy

On Sun, Nov 28, 2021, 2:38 PM PeterPolacek @.***> wrote:

Its seems like omx player wont play stream .. url si fine

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Anonymousdog/displaycameras/issues/108#issuecomment-981139651, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYIKJVFMX4IJKYUFVVAP3UOKALHANCNFSM5I4LE3JQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.