jvcleave / ofxOMXPlayer

OpenMax accelerated video player for openFrameworks on the Raspberry Pi 0-3. Does not work with RPI4
GNU General Public License v2.0
180 stars 61 forks source link

Reading from MJPEG and h264 streams #113

Closed steeley closed 5 years ago

steeley commented 6 years ago

Can this player read from a network stream of any sort? MJPEG from mjpeg-streamer, or h264 from FFMpeg would be great. I did try but it rejected the string I gave it.

thx.

timonsku commented 6 years ago

See the stream example: https://github.com/jvcleave/ofxOMXPlayer/blob/master/example-http-stream/src/ofApp.cpp

RTSP is supported by ffmpeg: http://ffmpeg.org/ffmpeg-protocols.html#rtsp

steeley commented 6 years ago

Thanks very much - I will give it a go.

steeley commented 6 years ago

Unfortunately although it basically works the performance is slow and jerky. The same videos play perfectly in VLC on the PI.
ofxOMXplayer plays local video files in the examples ok.

hgshoggins commented 6 years ago

Considering that "Majority of the code is based off of https://github.com/popcornmix/omxplayer" and that OMXPlayer can handle SDP files with streaming RTP H264, is it safe to assume that somehow one could feed an SDP file to ofxOMXPlayer and get it working ?

I'm asking this because I intend to use ofxPiMapper which depends on ofxOMXPlayer on Raspberry Pi, and I'm in need of such a feature : https://github.com/kr15h/ofxPiMapper/issues/69

timonsku commented 6 years ago

Likely, try it out I guess. SDP is just a meta data descriptor though, in the end the actual stream transport will be something like RTSP, which is definitely supportes.

⁣Sent from TypeApp ​

On 24 Dec 2017, 11:54, at 11:54, hgshoggins notifications@github.com wrote:

Considering that "Majority of the code is based off of https://github.com/popcornmix/omxplayer" and that OMXPlayer can handle SDP files with streaming RTP H264, is it safe to assume that somehow one could feed an SDP file to ofxOMXPlayer and get it working ?

I'm asking this because I intend to use ofxPiMapper which depends on ofxOMXPlayer on Raspberry Pi, and I'm in need of such a feature : https://github.com/kr15h/ofxPiMapper/issues/69

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/jvcleave/ofxOMXPlayer/issues/113#issuecomment-353777943