This is a message.

Forum user: leithold

Basic information

Registered Dec 17, 2008
Last login Jan 15, 2010
Forum posts 3
Direct URL http://www.flowplayer.org/forum/users/7096

Latest forum posts

Posts:

Registered:

Seek with a mp4 file

Posted: Jan 15, 2010

Well.. this thing has been around for a while, and even though I saw a lot of threads on the subject, I haven't seen anyone trying to do it in such a low level.

The thing is that I'm working on an interface between a video server of my own (property of the lab I' working at) and flowplayer. Everytime the user "seeks" the video, flowplayer sends a seek request to this interface of mine, which in turn asks the server for the video file. My server can only split the file at a single point, but it cannot generate the new header that this partial file would require so that a player could understand it.

So I rely on the h264 streamming module from apache to do the trick. It usually behaves by splitting the file, and generating a special header for this partial file which it attaches to the beggining of it. But since my server already splits the file, I modified it so that it could give me only the header, which is the only thing that I need.

I then attach the header given by apache to the partial file returned by my server and voila! save the partial file in disk.
This "broken" file runs perfectly at mplayer and some other players, but whenever I try to return it as a response to a seek request from a user, flowplayer won't play it. Instead the player freezes and nothing happens.

The question is, what am I doing wrong? I clearly have a valid file, because I can play it with mplayer, but it seems to me there is something else flowplayer expects before it can render the stream.

Am I missing something here?

Best regards
Nelson R. Pérez
PS. For more info about h264 streamming module look athttp://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Apache-Version2

Posts:

Registered:

» » Simple Pseudostreaming

Posted: Dec 17, 2008

Done.. that was it!

Thanks API!

Posts:

Registered:

Simple Pseudostreaming

Posted: Dec 17, 2008

Hi everyone! well, it seems like this topic has already been discussed. But I still can't make the pseudostreaming plug-in work.

I have a very fuzzy idea of how a queryString should work and honestly don't want to mess with it yet, unless it is strictly necessary. For now, I just want to implement the pseudostreaming with a lighttpd server.

For that I basically just copied the source from http://flowplayer.org/plugins/streaming/pseudostreaming.html#download

That code goes like this:

<script language='javascript'>
$f("lighty", "/swf/flowplayer-3.0.2.swf", {
	
	// configure clip to use "lighthttpd" plugin for providing video data
	clip: {
		url:'http://flowplayer.org/video/Extremists.flv', 
		provider: 'lighttpd'
	},
	
	// streaming plugins are configured normally under plugins node
	plugins: {
		lighttpd: { 
			url: 'flowplayer.pseudostreaming-3.0.1.swf' 
		}
	}
});
</script>
Simple, right? no queryStrings whatsoever.
Well, now MY code on the other hand goes like this:
	
<script language="JavaScript">
$f("lighty", 'flowplayer-3.0.1.swf',{	
//		plugins:{
//			lighttpd:{
//				url:'flowplayer.pseudostreaming-3.0.1.swf'
//			}
//		},
		clip:{					
			url:'Extremists.flv'
//			provider:'lighttpd'
		}
	});
</script>
<!-- Container -->  
<div id="lighty" style="width:425px; height:295px"></div>
Even simpler. Note that all necessary .js and .swf files are already in my folder and the player works well with the comments. But as soon as I remove the comments and try to implement pseudostreaming the player stops workig. I mean, It still loads, but the screen goes black and nothing happens.

I believe lighttpd is correctly configured as I've been using it before for pseudostreaming with flowplayer version 2. And I don't think there should be a huge difference between version 3.0.1 and 3.0.2 so I suppose the problem is with me. But I can't find it.

Any ideas?
Thank you very much
Nelson R. Pérez