2014-04-12, 10:15
Maybe this subject has been discussed before but I 've searched a lot in the forums and found no definitive answer.
I'm trying to setup a baby monitor through XBMC. The IP camera I am using is a pan-tilt one and produces a h264 stream 1280x720. I have created a sdp file with the rtsp stream so that I view it through XBMC.
When viewed through a web browser in the PC the feed is instant i.e. when I move the camera left right, I get the feed almost instantly in my PC. But the sdp file in XBMC is not instant, there is a lag of 2-3 seconds until the stream is presented on screen. I've read before that this is an issue with omxplayer that needs to buffer some data for live streaming to avoid underbuffering and delayed output.
However this is not the case here. I'm trying to avoid the buffer completely. I need zero buffer so that the stream is instant. I've tried the same with raspbian and commandline omxplayer using popcornmix's documentation the commands:
--audio_fifo 0
--video_fifo 0
--audio_queue 0
--video_queue 0
--threshold 0
--live
but to no result, i.e. the stream remains with a lag of 1-2 seconds at best (sometimes 2 or 3 seconds or more). I've also tried to play at an increased speed so that the buffer never has time to catch up the stream but in omxplayer this never happens. I've had partial success using a nightly build and dvdplayer and seeking with the arrows ahead and immediately after that play at 2x speed. But I need to have dvdplayer play at this increased speed to keep seeing the stream with almost no buffering (miliseconds of lag).
Is there a way to completely disable the buffer in omxplayer or dvdplayer or any other way to achieve this in commandline omxplayer?
I'm trying to setup a baby monitor through XBMC. The IP camera I am using is a pan-tilt one and produces a h264 stream 1280x720. I have created a sdp file with the rtsp stream so that I view it through XBMC.
When viewed through a web browser in the PC the feed is instant i.e. when I move the camera left right, I get the feed almost instantly in my PC. But the sdp file in XBMC is not instant, there is a lag of 2-3 seconds until the stream is presented on screen. I've read before that this is an issue with omxplayer that needs to buffer some data for live streaming to avoid underbuffering and delayed output.
However this is not the case here. I'm trying to avoid the buffer completely. I need zero buffer so that the stream is instant. I've tried the same with raspbian and commandline omxplayer using popcornmix's documentation the commands:
--audio_fifo 0
--video_fifo 0
--audio_queue 0
--video_queue 0
--threshold 0
--live
but to no result, i.e. the stream remains with a lag of 1-2 seconds at best (sometimes 2 or 3 seconds or more). I've also tried to play at an increased speed so that the buffer never has time to catch up the stream but in omxplayer this never happens. I've had partial success using a nightly build and dvdplayer and seeking with the arrows ahead and immediately after that play at 2x speed. But I need to have dvdplayer play at this increased speed to keep seeing the stream with almost no buffering (miliseconds of lag).
Is there a way to completely disable the buffer in omxplayer or dvdplayer or any other way to achieve this in commandline omxplayer?