Support of videos for ZenPhoto

124»

Comments

  • acrylian Administrator, Developer
    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?
  • .mov .flv and .3gp videos are now supported in the SVN thanks to jordi-kun
  • @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.
  • jordi-kun, what part is missing? I just checked my template-functions and the major section is still there starting on line 803.
  • well, it's indeed in the functions.php
  • But whats missing?
  • 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()
  • 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.
  • done, all yours (ticket 54)
  • Is there anyway to play AVI files with ZEN Photo?
  • In version 1.1 I am not able to get a videothumb, it always shows the defaultvideothumb although I upload an image with the same name. eg. rug.flv and rug.jpg..

    I thougt this should be possible or not?
  • in version 1.1.2 the videothumbs show up again...
  • wrong post!
  • There was a problem with custom video thumbs that was fixed in 1.1.2
  • I need a little help modifying the video code in version 1.1.2. In my previous version, 1.0.8.2 with the video hack added manually, I was able to modify the code to display the still image of the video I had uploaded instead of the video player initially not showing anything except a black screen with the play button. The code I was using doesn't work in the new version. Here is what I had before.

    `so.addVariable("image","http://www.sunkast.com<? echo substr(getFullImageURL(),0,strrpos(getFullImageURL(),".")); ?>.jpg");`

    That would produce the URL I needed to display the image in the video player. How can I do the same thing with the new version?
  • I worked out a solution for myself. For anyone that is looking to do the same, here is what I did.

    In template-functions.php under "//ZenVideo: Show video player with video loaded or display the image." I added

    `function getAlbumLink() {

    global $_zp_current_album;

    return urlencode($_zp_current_album->name);

    }`

    Then I added a new variable to the flash video player

    `so.addVariable("file","image=' . FULLWEBPATH . '/albums/' . getAlbumLink() . '/' . getImageTitle() . '.jpg");`

    On a side note, I've found an awesome gui frontend for ffmpeg to convert my videos into FLV. It's called WinFF. It's free and can also encode other media formats.
Sign In or Register to comment.