Macromedia Flash Server - Re: RE: flv seeking via PHP

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > November 2005 > Re: RE: flv seeking via PHP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: RE: flv seeking via PHP
Naicu Octavian

2005-11-02, 5:45 pm

Hy Luke, I have tried your idea, and even tough theoretically is possible=
I have failed at parsing the byte data with php.
=20
What we are doing now is using a new feature of the FLVMDI that inserts i=
n the metadata of the flv an array with the exact starting position in by=
tes and timecode of each keyframe. Using this info we can ask the php to =
provide data from the flv starting at the exact begininning of a keyframe=
..=20
=20
And It works!
=20

This solution also creates less stress on the php server, because it does=
not have to parse the flv byte by byte to find the seek the position we =
were looking for. The downside is that FLVMDI is currently only available=
for Windows.

"Luke Hubbard (luke-kJunwzwhcwxWk0Htik3J/w@public.gmane.org)" <king.selassie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi Guys,

You might want to take a look at flv reader class in red5. Basically
the flv file is broken into chunks or tags whatever they are called.=20
Each one has a header saying if its audio, video, or data, a size and
a timestamp. If you parsed the headers skipping forward passed the
data it should be possible to skip to a time instead of to x number of
bytes. Hopefully this would improve the start of the playback. I
still need to work out how to identify a keyframe from other frames,
anyone got any ideas? At the moment the class is quite basic but the
info on the headers is in there. This could be used to help with the
php code you are writing. When we are done with the rtmp stuff in red5
i will add an flv servlet for http delivery too using the concept
discussed in this thread for seek. Options are always a good thing.

-- luke

On 11/2/05, Naicu Octavian wrote:
> ok well then the next post should be in a thread with a new name and=

it should contain some info on what has been discussed here in the last =
20-30 posts and where we are now
>
> I am going to look more into this and share the sources and my observat=

ions once I am done.
>
> Stefan Richter wrote:
> I think we should change the name of this thread... I forgot before I
> replied to the previous posts.
>
>
>
>
[i]);[vbcol=seagreen]
ad[vbcol=seagreen]
play[vbcol=seagreen]
sume[vbcol=seagreen]
P?[vbcol=seagreen]
load[vbcol=seagreen]
that[vbcol=seagreen]
he[vbcol=seagreen]
-[vbcol=seagreen]
hmann[vbcol=seagreen]
le's[vbcol=seagreen]
er[vbcol=seagreen]
se,[vbcol=seagreen]
seek[vbcol=seagreen]
ated.[vbcol=seagreen]
d of[vbcol=seagreen]
ime-[vbcol=seagreen]
ata,[vbcol=seagreen]
ee.[vbcol=seagreen]
tring[vbcol=seagreen]
that[vbcol=seagreen]
is[vbcol=seagreen]
et[vbcol=seagreen]
); to[vbcol=seagreen]
on[vbcol=seagreen]
h the[vbcol=seagreen]
s[vbcol=seagreen]
tefan[vbcol=seagreen]
ome[vbcol=seagreen]
ould[vbcol=seagreen]
mm-[vbcol=seagreen]
ochmann[vbcol=seagreen]
ature[vbcol=seagreen]
le to[vbcol=seagreen]
Data[vbcol=seagreen]
king[vbcol=seagreen]
-[vbcol=seagreen]
-[vbcol=seagreen]
>
>
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> ________________________________________
__________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=09
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click. =20

=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com