![]() |
|
An idea for image preview video - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: An idea for image preview video (/thread-10452.html) |
An idea for image preview video - ThiagoPedro - 2012-09-28 I use flowplayer3. What do yours think of: Rather than manually add an image with the same file name. An idea for image preview video - acrylian - 2012-09-28 The problem is that this is not as easy as it sounds because neither GD libary nor Imagick can do that. This will require that special extensions like ffmeg or similar are installed on the server. Since Zenphoto is made with the goal to run on standard shared hosts and not custom dedicated servers basically no one will be able to use that. But that should not keep you from creating a plugin for this if you need and want to do this. An idea for image preview video - ThiagoPedro - 2012-09-28 I find what I need to do. I'll find stuff. An idea for image preview video - acrylian - 2012-09-28 Well, sorry, then you have to live with the way it is now. Even if we had a tool for this you would have to install something on your server (and I am not talking about installing something like Zenphoto) An idea for image preview video - ThiagoPedro - 2012-09-28 I got the code. //Return the duration of a movie or audio file in seconds. if ( ! extension_loaded ( 'ffmpeg' ) ) exit ( 'ffmpeg is not load!' ); //class ffmpeg_movie of ffmpeg-php // instancia a classe ffmpeg_movie para pegarmos as informações que queremos o vídeo $thumbnailOf = round ( $movie->getFrameCount() / 2 ); // precisamos criar uma imagem GD para o ffmpeg-php trabalhar nela An idea for image preview video - acrylian - 2012-09-28 Still all this requires a native php server extension called ffmpeg you need to install as binaries. Not even I know how to do that on a server. Needless to say that my server does not support that. But as said we welcome third party contributions in form of plugins. |