Hi together,
first of all sorry for the new thread regarding RTSP streaming. I know that there are older threads regarding the same topic, but they weren’t really able to help me.
At the moment we’re using a custom solution for streaming media content to our local media system (about 30 screens). Since file support is limited in this solution and we wanted to use more features, I started looking into Xibo and so far it fits almost perfectly. The only mandatory feature that we need, and is not working yet, is live streaming of a desktop.
To achieve this we’re using ffmpeg to capture the screen and send it to an RTSP server (https://github.com/aler9/rtsp-simple-server). I use this server in Xibo to retrieve the stream. While the rtsp:// link works fine in VLC, Xibo for Android can’t play the video for some reason (Method: XFA:VideoMedia. Message: Cannot display video). Tested with a Xiaomi 9T Pro (Android 10), as well as a Android 7 (x86) and Android 9 (x86) VM. The goal was to get it running on an Intel NUC.
The ffmpeg command I use to record and stream a screen: ffmpeg -video_size 1360x768 -framerate 24 -f x11grab -i :0.0 libx264 -tune zerolatency -f rtsp -rtsp_transport tcp rtsp://server:8554/desktop.
I was easily able to get a stream running with HLS, but the latency is just to high for this purpose. Also, another post here recommended to try to stream rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov, but the link is not working for me either (with VLC).
Update: In the meantime I’ve tried another RTSP Server as well (https://github.com/kzkysdjpn/rtsp-server). Unfortunately it’s still the same issue. While VLC works perfectly with the stream, Xibo for Android fails to play the video (Cannot display video. Uri=rtsp://server:5544/desktop. What=100. Extra=0). According to this error I figured, that MEDIA_ERROR_SERVER_DIED is the corresponding problem, but I still have no clue about the exact source of the issue. I guess the RTSP servers aren’t really compatible…
Update 2: This seems to be the background of the playback problem: http://fabiensanglard.net/mobile_progressive_playback/index.php
Any help would be really appreciated.
Kind Regards,
Andreas