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
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