Author Topic: Simple video gallery  (Read 67264 times)

Offline ToX

  • Posts: 20
Simple video gallery
« on: February 10, 2007, 04:32:07 PM »
hi, i have developed a video gallery module

it is really simple, it just lists your .flv (flash video) files in a directory of your choice, with a thumbnail (shown when the video is stopped) and a description.

here is how it works:

directory/video.flv // this is the real video
directory/video.flv.jpg // thumbnail (optional)
directory/video.flv.txt // text description (optional)

it is based on "another image gallery"

this is a 0.1 version... and this is my first module for wb too, so you can expect some bugs, untranslated text or anything :D


TODO LIST:
- make the "include subdirs" setting work
- make the fullscreen button work




UPDATE: version 0.2, thanks to macsmet
http://forum.websitebaker.org/index.php?action=dlattach;topic=5424.0;attach=1061
  • added a Dutch language file
  • Did some 'hard coded' translations from Italian to English
  • added the latest version 3.5 of the videoplayer by Jeroen Wijering (it was version 3.3)
  • changed the directory location to: $dirmodulo = (WB_URL.'/modules/videogal'); Now it works when WB is installed in the root.

UPDATE: version 0.3, thanks to... me :D
http://forum.websitebaker.org/index.php?action=dlattach;topic=5424.0;attach=1069
  • you can now change the "video" header (you can even set it to null if you don't want it)
  • deleted DE.php and SE.php as they where untranslated

UPDATE: version 0.3.1, thanks to me, macsmet and vincent for the debug
http://forum.websitebaker.org/index.php?action=dlattach;topic=5424.0;attach=1076
  • fixed a bug in update.php

UPDATE: version 0.4
http://forum.websitebaker.org/index.php?action=dlattach;topic=5424.0;attach=1086
  • possibility to choose how many videos are shown in a row
  • ability to change the player's colors
  • added german translation (thanks to Waldschwein)
« Last Edit: February 19, 2007, 10:07:11 PM by ToX »

Offline kweitzel

  • Posts: 6985
    • Weitzel EDV - multilingual IT services
Re: Simple video gallery
« Reply #1 on: February 10, 2007, 08:58:02 PM »
Anyway ... even if only a first ... thanks for the addition. Will give it a go later on and bet Matthias and others will to.

cheers

Klaus
WebsiteBaker Org e.V. - for WebsiteBaker


Offline Nobody

  • Posts: 165
Re: Simple video gallery
« Reply #2 on: February 11, 2007, 08:53:45 AM »
Is ist possible to show .avi files in this gallery, too? Or is it possible to add this feature to the gallery?

Offline Vincent

  • Posts: 376
    • websites voor ondernemers
Re: Simple video gallery
« Reply #3 on: February 11, 2007, 03:25:35 PM »
It works, ToX. A very welcome module! Thanks. I didn't come across any bugs. It would be nice, though, if it could also handle wmv-files. Would that be possible?

Regards, and keep up the good work,

Vincent

Offline ToX

  • Posts: 20
Re: Simple video gallery
« Reply #4 on: February 11, 2007, 08:29:05 PM »
only flv videos, i'm sorry...  :-(

i'm not sure, but i think that this is a limitation in flash.

Waldschwein

  • Guest
Re: Simple video gallery
« Reply #5 on: February 11, 2007, 09:12:51 PM »
Hi! There is a free flv video converter for it. I tested it. Of course it is not very nice, but I don't know some other open source video player...
http://www.rivavx.de/?encoder (In German)
Or in English: http://www.rivavx.de/index.php?id=483&L=3
Of course it would be cool to have some video player like youtube, but it is quite nice right now. ;)

Offline ToX

  • Posts: 20
Re: Simple video gallery
« Reply #6 on: February 11, 2007, 09:30:01 PM »
well if you have linux i'm using a script like this:

Code: [Select]
for file in $(ls *.[aAwWmM][vVmMoO][iIvV]); do
mplayer -vo jpeg -ss 0:0:2 -frames 1 $file;
mogrify -resize 150x100! 00000001.jpg;
mogrify -fill white -pointsize 25 -draw 'text 2,23 "Video"' 00000001.jpg;
mv 00000001.jpg $file.jpg;
done
for file in $(ls *.[aAwWmM][vVmMoO][iIvV]); do
ffmpeg -i $file -ab 56 -ar 22050 -b 500 -s 640x480 $file.flv
rm $file
done


you need imagemagik and ffmpeg, it converts every avi, mov or wmv file into flv, and it creates a thumbnail :p

Offline Vincent

  • Posts: 376
    • websites voor ondernemers
Re: Simple video gallery
« Reply #7 on: February 12, 2007, 07:21:29 AM »
I used Super to convert wmv to flv. This tool converts about every format to whatever format you want. Very simple, very efficient. It's free.
http://www.erightsoft.net/SUPER.html#Dnload

Regards,
Vincent
« Last Edit: February 12, 2007, 07:24:40 AM by vincent »

Offline macsmet

  • Posts: 250
Re: Simple video gallery
« Reply #8 on: February 14, 2007, 09:03:16 PM »
Hi there,

I made some changes and additions:
- added a Dutch language file
- Did some 'hard coded' translations from Italian to English
- added the latest version 3.5 of the videoplayer by Jeroen Wijering (it was version 3.3)
- changed the directory location to: $dirmodulo = (WB_URL.'/modules/videogal'); Now it works when WB is installed in the root.

Attached you find version 0.2!

greetings,

MacSmet

[gelöscht durch Administrator]

Offline Vincent

  • Posts: 376
    • websites voor ondernemers
Re: Simple video gallery
« Reply #9 on: February 15, 2007, 05:47:07 PM »
Perfect, macsmet!
Would it be possible to choose whether you want the header 'video' or not?
The button for a whole screen version doesn't seem to work yet...

Maybe good to mention that the script is licensed under a Creative Commons License.
And that Jeroen distributes licenses of the script for 15 euros.

If it's on the addons page, he should be notified, so he can put a link to the WB plugin on his page.

Regards,

Vincent


Offline ToX

  • Posts: 20
Re: Simple video gallery
« Reply #10 on: February 15, 2007, 07:25:20 PM »
Hi there,

I made some changes and additions:
- added a Dutch language file
- Did some 'hard coded' translations from Italian to English
- added the latest version 3.5 of the videoplayer by Jeroen Wijering (it was version 3.3)
- changed the directory location to: $dirmodulo = (WB_URL.'/modules/videogal'); Now it works when WB is installed in the root.

Attached you find version 0.2!

greetings,

MacSmet

cool! i'll update my first post with your changes :p

Offline macsmet

  • Posts: 250
Re: Simple video gallery
« Reply #11 on: February 15, 2007, 07:45:44 PM »
@ Vincent: the header 'Video' is hardcoded now.
You can delete it yourself in 'view.php' . Making it optional by adding code takes time. The first option is much easier.
The button for wide screen is also not coded yet...maybe later ( I really don't need it myself)
Maybe ToX want's to do this?

greetings,

MacSmet


Offline ToX

  • Posts: 20
Re: Simple video gallery
« Reply #12 on: February 16, 2007, 11:30:27 AM »
@ Vincent: the header 'Video' is hardcoded now.
You can delete it yourself in 'view.php' . Making it optional by adding code takes time. The first option is much easier.
The button for wide screen is also not coded yet...maybe later ( I really don't need it myself)
Maybe ToX want's to do this?

greetings,

MacSmet



i'll make the "video" header optional, or maybe i'll set an optional value in the admin panel, so that you can even change it as your needs.
for the wide screen button i don't really know how to fix it :D

Offline Vincent

  • Posts: 376
    • websites voor ondernemers
Re: Simple video gallery
« Reply #13 on: February 16, 2007, 11:42:18 AM »
Great!

Since you guys already digged into this stuff: do you think it's easy/possible to also implement Jeroen's  flash mp3 player in a WB module? I'm not a programmer, but I imagine that with some adjustments your module would also suit the mp3 player.... Which would be Super! :-D

Thanks for a great job.

Vincent

Offline macsmet

  • Posts: 250
Re: Simple video gallery
« Reply #14 on: February 16, 2007, 12:49:11 PM »
@ Vincent: I will look into this but give me some time because I am very busy at the moment. I won't be that difficult!

greetings,

MacSmet

Offline Vincent

  • Posts: 376
    • websites voor ondernemers
Re: Simple video gallery
« Reply #15 on: February 16, 2007, 01:05:01 PM »
Hi MacSmet, take your time, I'll be patient, but am really looking forward to this - it would make a great addition to the cms, and I'm sure many more people will welcome it!

Regards,
Vincent




Offline ToX

  • Posts: 20
Re: Simple video gallery
« Reply #16 on: February 16, 2007, 02:10:47 PM »
Great!

Since you guys already digged into this stuff: do you think it's easy/possible to also implement Jeroen's  flash mp3 player in a WB module? I'm not a programmer, but I imagine that with some adjustments your module would also suit the mp3 player.... Which would be Super! :-D

Thanks for a great job.

Vincent


i already did something like that for my website, it should be easy to integrate into a wb module.

this is what i did for my website, if you want to check it out...
http://www.emanueletoscano.it/?pag=Vari/musica/index.htm

actually, it is based on a xml file which contains all the informations (file name, artist, title)... it should be easy to make it more "dynamic" too, with no need for that file

Offline Vincent

  • Posts: 376
    • websites voor ondernemers
Re: Simple video gallery
« Reply #17 on: February 16, 2007, 02:19:20 PM »
ToX, that looks just fine!
The challenge is to go around the xml-sheet, indeed. Easy? Not for me.... :|

Vincent

Offline ToX

  • Posts: 20
Re: Simple video gallery
« Reply #18 on: February 16, 2007, 02:50:15 PM »
here we are, version 0.3

UPDATES:
- you can now change the "video" header (you can even set it to null if you don't want it)
- deleted DE.php and SE.php as they where untranslated

[gelöscht durch Administrator]

Offline Vincent

  • Posts: 376
    • websites voor ondernemers
Re: Simple video gallery
« Reply #19 on: February 16, 2007, 03:05:12 PM »
Unfortunately I get an error:  Unknown column 'mod_header' in 'field list' ...
But at least the word video disappeared.

Offline ToX

  • Posts: 20
Re: Simple video gallery
« Reply #20 on: February 16, 2007, 03:08:30 PM »
Unfortunately I get an error:  Unknown column 'mod_header' in 'field list' ...
But at least the word video disappeared.

lol :D


when did you get that error? while updating or when modifying the settings?

Offline Vincent

  • Posts: 376
    • websites voor ondernemers
Re: Simple video gallery
« Reply #21 on: February 16, 2007, 03:16:17 PM »
Hi ToX,

I got the error message when I tried to modify the settings of the video which I already used.

Vincent

Offline macsmet

  • Posts: 250
Re: Simple video gallery
« Reply #22 on: February 16, 2007, 05:54:57 PM »
@Vincent: you're right. The update script doesn't work.
@Tox: Parse error: parse error, unexpected T_VARIABLE in update.php on line 31

I deleted version 0.2 and uploaded version 0.3. This works for now!

MacSmet
« Last Edit: February 16, 2007, 06:34:00 PM by macsmet »

Offline ToX

  • Posts: 20
Re: Simple video gallery
« Reply #23 on: February 16, 2007, 10:25:08 PM »
@Vincent: you're right. The update script doesn't work.
@Tox: Parse error: parse error, unexpected T_VARIABLE in update.php on line 31

I deleted version 0.2 and uploaded version 0.3. This works for now!

MacSmet

thanks, i'll fix it as soon as possible :-P

Offline ToX

  • Posts: 20
Re: Simple video gallery
« Reply #24 on: February 17, 2007, 03:13:11 PM »
i've found a bug in update.php... it should be fixed now


[gelöscht durch Administrator]

 

postern-length