ZenphotoCMS Forum
Support of videos for ZenPhoto - 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: Support of videos for ZenPhoto (/thread-769.html)

Pages: 1 2 3 4 5 6


Support of videos for ZenPhoto - aitf311 - 27-07-2007

kenoji, if you look in template-functions.php there is a function printCustomSizedImage()

It looks like you can set the width and height in there but an autodetect script is beyond me.




Support of videos for ZenPhoto - La0c00n - 27-07-2007

I don't think php could autodetect easily the size of a video...
Except using some system calls with ffmpeg




Support of videos for ZenPhoto - jordi-kun - 23-08-2007

I realized that having an album with only videos, no album thumb is shown in the list of albums.

I had to add in the class-album.php/getAlbumThumbImage function:

  `//jordi-kun - no images, no subalbums, check for videos

  $dp = opendir($albumdir);

  while ($thumb = readdir($dp)) {

    if (is_file($albumdir.$thumb) && is_valid_video($thumb)) {

      return new Image($this, $thumb);

    }

  }`

right after the

  `// Otherwise, look in sub-albums.

  $subalbums = $this->getSubAlbums();

  foreach ($subalbums as $subdir) {

    $subalbum = new Album($this->gallery, $subdir);

    $thumb = $subalbum->getAlbumThumbImage();

    if ($thumb != NULL && $thumb->exists) {

      return $thumb;

    }

  }`



Support of videos for ZenPhoto - bouncey - 24-08-2007

This is great! One thing really bothers me though.

The way the player works by default, it has a control bar that covers part of the video. At 320x240 it's a very non-trivial part. If I move the mouse away, after a few seconds the bar goes away too. But that isn't entirely intuitive and I only noticed by accident. Besides, I'd like to leave it visible to give an indication of how much time remains.

I've been looking at the documentation from the apparent original producer of the FLV player (the SWF file). It's possible to control the image size, player bar color, show/hide volume control, etc... But how do I move that control bar [i]under[/i] my movie where it belongs?!? I didn't have much luck finding info about that.

Maybe resize the video area to leave enough pixels for the control bar... But then the movie centers itself vertically, leaving a black bar on the top and an obstructed area on bottom. Ugh.

But otherwise, again, the video mod is well done.




Support of videos for ZenPhoto - bouncey - 24-08-2007

One other suggestion: It would be good to overlay something on the thumbnail image to indicate that it's a movie. That way photos and videos can be mixed in the same album, and people clicking through will know which type is about to be downloaded. Good for those with slow net access.

I wouldn't call it a major problem though. It would be easy enough to separate our movies and stills into different albums with "photo" and "video" in the album names. In my case (for now anyway) they're in completely separate galleries.




Support of videos for ZenPhoto - jordi-kun - 24-08-2007

@bouncey:
this can be done using the watermark hack and forcing to watermark the thumbs of videos.




Support of videos for ZenPhoto - mickey2combs - 27-08-2007

I would be grateful of any help - I have installed the video theme and on first view with the default theme, all appeared to be OK - video uploaded, displayed OK with thumb and played OK when tested. However, when I went into admin>options, it threw up the following error:

Warning: Invalid argument supplied for foreach() in /home/sites/mysite/public_html/zenphoto/zen/kses.php on line 429

It is repeated about 25-30 times before then displaying the list of themes. I tried changing the theme but still get the same error repeated on every page - whatever theme is selected. However, at the end of end of the error messages, it does give me the relevant screen eventually - with the last error message showing

Warning: Cannot modify header information - headers already sent by (output started at /home/sites/mysite/public_html/zenphoto/zen/kses.php:429) in /home/sites/mysite/public_html/zenphoto/index.php on line 9

When I eventaully scroll through all this and get to the relevant links - the video file still works but how do I get rid of this problem as it makes this fantasic feature unuseable at the current time?

I have no knowlege of php so am at a bit of a loss to understand what has gone wrong...

I have downloaded and installed the zenvideo zip file from the earlier link according to the instructions.

Thanks




Support of videos for ZenPhoto - BertSimons - 28-08-2007

hi bouncey

i did add a filmstrip to the videos for thw zenvideo hack like described in this post
http://www.zenphoto.org/support/topic.php?id=1599&replies=4#post-9005

see it at http://www.kiemkracht.com/en/vrij%20werk/homo%20herbarius/

an for the video parameters;
on my own site (under contruction at http://www.bertsimons.nl/wordpress/?p=28 )I used jeroen weijerings flashplayer and added this to my customfunctions.php which is called on my image.php page by printDefaultSizedImageVideo() tu use his player which has a lot of adjustable parameters. ( use it uploading an image and a flv of the same name eg movie.jpg, movie.flv)

// Video integration jeroen weijerings flashplayer

function printDefaultSizedImageVideo($alt, $class=NULL, $id=NULL) {
// [BEGIN] added by cvogt: check for non image data
$file_full = $_SERVER['DOCUMENT_ROOT'].getFullImageURL();
$file_wo_ext = substr($file_full,0,strrpos($file_full,"."));
if( file_exists( $file_wo_ext.".flv" )){
?>

Get Flash to see this player.

var so = new SWFObject("/zenphoto/themes/izen/flvplayer/flvplayer.swf","mpl","520","390","7");
so.addParam("allowfullscreen","true");
so.addVariable("file",".flv");
so.addVariable("displayheight","390");
so.addVariable("autostart","true");
so.addVariable("repeat","true");
so.addVariable("overstretch","true");
so.addVariable("showicons","false");
so.write("player");



Support of videos for ZenPhoto - BertSimons - 28-08-2007

and off course add




Support of videos for ZenPhoto - sunkast - 13-09-2007

Has anyone figured out how to use the watermark hack to apply a watermark only to video thumbnails? If so, can you explain how? I have the video and watermark hack applied but so far I haven't been able to figure out how to apply a watermark only to video thumbnails.




Support of videos for ZenPhoto - jordi-kun - 19-09-2007

I have added support for .mov videos as well as .3gp (not sure if you guys in the states have it).

the patch can be found in the zenvideo ticket here

mov files are heavy, so only intranet use is advised. For both video types, Quicktime plugin for your browser is required.




Support of videos for ZenPhoto - acrylian - 19-09-2007

How heavy .mov files are depends on how you compress them. They look better than most .flv files, I think.
Maybe it would be a good idea to include .mp4-files or .avi/divx-files, too?




Support of videos for ZenPhoto - aitf311 - 19-09-2007

.mov .flv and .3gp videos are now supported in the SVN thanks to jordi-kun




Support of videos for ZenPhoto - jordi-kun - 21-09-2007

@aitf311: in the revision 477, this change was lost. There is no reference in its comments so I'm not sure if it was on purpose or just overlooked.




Support of videos for ZenPhoto - aitf311 - 21-09-2007

jordi-kun, what part is missing? I just checked my template-functions and the major section is still there starting on line 803.




Support of videos for ZenPhoto - jordi-kun - 21-09-2007

well, it's indeed in the functions.php




Support of videos for ZenPhoto - aitf311 - 21-09-2007

But whats missing?




Support of videos for ZenPhoto - jordi-kun - 21-09-2007

the mov+3gp support is reverted back to only .flv videos, isn't it? you can see that in is_valid_video(), is_videoThumb() and checkVideoThumb()




Support of videos for ZenPhoto - aitf311 - 21-09-2007

Would you mind patching it up and putting the php files up on the ticket? I will halt updated until I get this included. Thanks jordi.




Support of videos for ZenPhoto - jordi-kun - 21-09-2007

done, all yours (ticket 54)