On 6/10/05, Alexey Petrov <pe...@gc...> wrote:
> I've found, that frame search in ffmpeg-php works only by looking
> through all frames in the movie... It takes a lot of CPU time and disk
> I/O's to just catch 1 frame from the middle of typical movie (700 MB),
> which usual contain about 100'000 frames.
> The solution is: seek to the nearest keyframe (by movie's index)
> and start search for needed frame from that point. New function
> getNextKeyFrame() from CVS-version doesn't help in that situation,
> because uses full-search too... But I suppose, fast seek is
> already realised in FFMPEG library.
I tried implementing it a while back but had problems getting to the
exact frame I wanted.
Yes ffmpeg supports seeking.but it doesn't work for all formats. I
have some code around somewhere that implements seeking. It still has
some major problems though. It doesn't gracefully fall back to the
linear search method if seek fails and sometimes returns one frame off
from the requested frame.
I need to play around with it some more, but I haven't had the time to
work on ffmepg-php lately.
>=20
> PS: I write phpVideoBrowser, based on ffmpeg-php.
> Implemented features:
> - Browse files/dirs as on FTP server
> - View tech. info about movies
> - Catch random frames from movies (only from first 2000 frames because
> of the subject)
>=20
> Demo-site is here:
> http://alexey.homeftp.net:4080/browser/
> (sorry, only russian interface yet, codepage CP1251 ;)
>=20
> Description of specific movie:
> ("Monsters Inc." extras: "Mike's New Car")
> http://alexey.homeftp.net:4080/browser/info.php?file=3D/%CC%F3%EB%FC%F2%F=
4%E8%EB%FC%EC%FB/%C7%E0%F0%F3%E1%E5%E6%ED%FB%E5/%CA%EE%F0%EF%EE%F0%E0%F6%E8=
%DF%20%CC%EE%ED%F1%F2%F0%EE%E2/extras/Mike%27s%20NewCar.avi
>=20
Fun!
> --
> Alexey Petrov
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games. How far can you sho=
tput
> a projector? How fast can you ride your desk chair down the office luge t=
rack?
> If you want to score the big prize, get to know the little guy.
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=3D20
> _______________________________________________
> Ffmpeg-php-user mailing list
> Ffm...@li...
> https://lists.sourceforge.net/lists/listinfo/ffmpeg-php-user
>
|