Is it possible to load video from a http url on windows?


#1

I’m trying to streaming a DSLR live view using a Raspberry pi and then show the live view in oF app on windows in a local network. So far, I’ve completed the Raspberry pi part, which shows the live view of DSLR successfully by ffserver.
Now I’m trying to load the video from the http url, but I cannot find the way.
Does anyone have some ideas?


#2

UPDATE:
I’ve found that ofxGStreamer can load streaming from http url and I succeeded to show the view. However, still have problems. The frames are choppy.

I used ffserver to stream DSLR live view, following is my ffserver configuration:

HTTPPort 8090

HTTPBindAddress 0.0.0.0

MaxHTTPConnections 2000

MaxClients 1000

MaxBandwidth 50000

NoDaemon

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 200M
ACL allow 127.0.0.1
</Feed>

<Stream test.mjpg>
Feed feed1.ffm
Format mpjpeg
VideoFrameRate 25
VideoBitRate 80000
VideoBufferSize 512
VideoSize 640x424
VideoQMin 1
VideoQMax 10
NoAudio
PreRoll 0
</Stream>

<Stream stat.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>

And the http link is like: http://192.168.3.120:8090/test.mjpg

in oF:

ofVideoPlayer player;


void ofApp::setup(){
	ofSetFrameRate(60);
	ofSetVerticalSync(true);
	player.setPlayer(ofPtr<ofGstVideoPlayer>(new ofGstVideoPlayer));
	player.load("http://192.168.3.120:8090/test.mjpg");
	player.play();
}

//--------------------------------------------------------------
void ofApp::update(){
	player.update();
}

//--------------------------------------------------------------
void ofApp::draw(){
	player.draw(0,0);
	ofDrawBitmapStringHighlight("FPS: " + ofToString(ofGetFrameRate()), 20, 20);
}

And, I also tried to replace the http with rtsp.
I only changed the http link to rtsp link “rtsp://192.168.3.120:5544/test.mpeg4”. Is that right? I cannot get any views from rtsp.
But, I tried run “ffplay rtsp://192.168.3.120:5544/test.mpeg4” in command, it shows the live view.

Can someone help me out of this problem?


#3

UPDATE:
Sorry, I did not install all gstreamer modules. After I installed all the modules, the rtsp way is successful. But, it seems that there is some latency. How can I minimize the latency as small as possible?

And still, why the frames get from http are choppy?