-
-
Notifications
You must be signed in to change notification settings - Fork 592
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
Add support for live streaming #90
Comments
I think we'd need to be a lot more careful in implementing such feature. Have you tried streaming videos with omxplayer? I haven't tried yet, so I'm not sure it works. |
Well I guess as with normal videos, omxplayer need to be spoon-fed with the right format, however I had a quick try with VLC today: I just took a h264 BigBuck Bunny and set the streaming assistant of vlc to share it via HTTP. When omxplayer was directed to the stream it just started playing at whatever position VLC was at the moment (there were the usual few distorted frames first, before hitting a new keyframe). So basically omxplayer is capable of doing it. What exactly can be thrown at it might need some futher investigation |
Great. So that confirms that omxplayer can in fact stream video (assuming the format is right). We'll go ahead and add this to the feature request list. |
Was discussing Screenly with a friend at the weekend, and he said he was looking for a system that could be configured for example to switch to a news tv feed at the top of each hour for 10mins or so, then go back to doing something else for the next 50 mins or so... |
+1. It seems setting the video length is currently not possible, even if you upload your own clip? (2015-02-25). I have the same issue with live streams; they work well but can't be timed. I also tried uploading my own MP4 at 133s and I can't set the video to play for anything less than the full length. Video timings do not seem to 'stick'. |
+1 |
I was able to add an HLS stream asset. It plays properly with audio for mulitple hours, but continues playing even when the asset has been turned off. I agree that it would be nice to be able to turn the live stream off and continue to the next asset. However, this would be a great alernative to installating an IPTV set top box for displays that only play the same TV station 24/7. |
We've added a bounty here. Here's what's required for acceptance:
|
As far as I could see the current implementation for a video stream is "start it and wait until omxplayer is finished", however I think it would be useful to optionally specify a duration, in the case of continuous running livestreams:
Switch to the stream for 5 min, then go on to the next asset. As far as I could see omxplayer does not support this directly, but I guess spawning a shell process and doing a "sleep x; kill <omx_pid>" might do the trick just fine (killall omxplayer probably not a good idea, if omxplayer finishes, crashes before the timeout is reached you might accidentally kill another instance already playing the next asset.).
Maybe I will come around to do this myself later this month, however I just thought of putting it here, in case somebody picks it up before me :)
The text was updated successfully, but these errors were encountered: