dakboard / Cloud-Platform

Feature requests, enhancements and anything you'd like to see in DAKboard!
https://dakboard.com
168 stars 39 forks source link

RTSP Not Working #2180

Closed rodkvan closed 2 months ago

rodkvan commented 3 months ago

Describe the bug RTSP not working. Attempted to setup as per https://dakboard.freshdesk.com/support/solutions/articles/35000196882-rtsp-in-dakboard-screen

To Reproduce Followed setps per https://dakboard.freshdesk.com/support/solutions/articles/35000196882-rtsp-in-dakboard-screen and did not work. Get error when using PuTTY, "Failed to connect with rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4"

Tried to substitute "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4" with "http://pendelcam.kip.uni-heidelberg.de/mjpg/video.mjpg" --> Can play within VLC with command in PuTTY (but still won't show on DAKboard of course): cvlc --loop "http://pendelcam.kip.uni-heidelberg.de/mjpg/video.mjpg"

Substituting the following into run.sh (change video stream and use IP instead of localhost) means I can open the stream on another device on the same network using VLC viewer, so would appear cvlc is working cvlc --loop "http://pendelcam.kip.uni-heidelberg.de/mjpg/video.mjpg" :network-caching=1000 --sout '#transcode{gather:std,vcodec=theo,vb=800,scale=Auto,acodec=vorb,ab=128,channels=2,samplerate=44100} :standard{access=http,mux=mux_ogg,dst=192.168.8.204:8080}' :sout-all :sout-keep &

Substituting the following into run.sh (using localhost instead of IP with the stream from above that works) still does not have the stream show up on the DAKboard cvlc --loop "http://pendelcam.kip.uni-heidelberg.de/mjpg/video.mjpg" :network-caching=1000 --sout '#transcode{gather:std,vcodec=theo,vb=800,scale=Auto,acodec=vorb,ab=128,channels=2,samplerate=44100} :standard{access=http,mux=mux_ogg,dst=localhost:8080}' :sout-all :sout-keep &

In all above scenarios, greyed out stream icon (similar to https://www.pngwing.com/en/free-png-hzgar) shows in the top of where the widget area would be.

Also tried the URL/embed option with http://pendelcam.kip.uni-heidelberg.de/mjpg/video.mjpg and with http://192.168.8.204:8080, neither worked.

Expected behavior DAKboard CPUv4 should show RTSP per https://dakboard.freshdesk.com/support/solutions/articles/35000196882-rtsp-in-dakboard-screen

Device: CPUv4

Additional context Add any other context about the problem here.

jatoric commented 2 months ago

I was unable to recreate this issue with our RTSP documentation.

Using this entry in ome/dakboard/startup/run.sh:

cvlc --loop "http://77.222.181.11:8080/mjpg/video.mjpg" :network-caching=1000 --sout '#transcode{gather:std,vcodec=theo,vb=800,scale=Auto,acodec=vorb,ab=128,channels=2,samplerate=44100} :standard{access=http,mux=mux_ogg,dst=localhost:8080}' :sout-all :sout-keep &

With the widget block configured with:

I had no issues getting the stream to work on my DAKboard.

Rodkvan - If you are having issues with getting the RTSP stream working on your DAKboard please open a Support ticket so we can help get it working for you. Unable to provide any troubleshooting help on github due to its public nature please use our Support ticket system for problems with documentation related issues.

You can open up a support ticket HERE

rodkvan commented 2 months ago

@jatoric

If you update the packages on the pi, which I needed to do for other reasons, RTSP will stop working.

I suspect this means some future update to the DAKboard OS may cause RTSP to stop working.

For now going back to the default latest version of DAKboard OS and selecticely updating the packages, inctead of all packages, being careful to not update VLC or browser, seems to allow RTSP to work.

Thanks for your guidance!