Welcome, Guest. Please login or register.
August 20, 2008, 05:12:42 PM

Login with username, password and session length
Search:     Advanced search
Please check out the Documentation available and use the advanced forum search, before posting in the forum - thanks.
Bitte lies zuerst die Dokumentation und benutze die Advanced Forensuche, bevor Du einen neuen Beitrag erstellst - danke.
Bekijk alstublieft eerst de Documentatie en gebruik de Advanced Forum Zoekfunctie, voor dat u een post maakt in het forum - Hartelijk dank.
60556 Posts in 9791 Topics by 5824 Members
Latest Member: blubb
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Modules
| | |-+  Simple video gallery
Pages: [1] 2 3 Go Down Print
Author Topic: Simple video gallery  (Read 10973 times)
ToX
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« 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 Cheesy


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 Cheesy
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 » Logged
kweitzel
Forum Team
A Baker's Baker
*****
Offline Offline

Posts: 4214


WWW
« 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
Logged

Nobody
Junior Baker
****
Offline Offline

Posts: 107


WWW Email
« 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?
Logged
Vincent
Semi-Master Baker
*****
Offline Offline

Posts: 202


« 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
Logged
ToX
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« Reply #4 on: February 11, 2007, 08:29:05 PM »

only flv videos, i'm sorry...  sad

i'm not sure, but i think that this is a limitation in flash.
Logged
Waldschwein
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 500


330490907
WWW Email
« 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. Wink
Logged

ToX
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« Reply #6 on: February 11, 2007, 09:30:01 PM »

well if you have linux i'm using a script like this:

Code:
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
Logged
Vincent
Semi-Master Baker
*****
Offline Offline

Posts: 202


« 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 » Logged
macsmet
Apprentice Baker
***
Online Online

Posts: 92


« 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
Logged
Vincent
Semi-Master Baker
*****
Offline Offline

Posts: 202


« 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

Logged
ToX
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« 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
Logged
macsmet
Apprentice Baker
***
Online Online

Posts: 92


« 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

Logged
ToX
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« 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 Cheesy
Logged
Vincent
Semi-Master Baker
*****
Offline Offline

Posts: 202


« 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! grin

Thanks for a great job.

Vincent
Logged
macsmet
Apprentice Baker
***
Online Online

Posts: 92


« 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
Logged
Vincent
Semi-Master Baker
*****
Offline Offline

Posts: 202


« 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



Logged
ToX
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« 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! grin

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
Logged
Vincent
Semi-Master Baker
*****
Offline Offline

Posts: 202


« 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.... undecided

Vincent
Logged
ToX
Pending Apprentice Baker
**
Offline Offline

Posts: 17


« 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
Logged
Vincent
Semi-Master Baker
*****
Offline Offline

Posts: 202


« 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.
Logged
Pages: [1] 2 3 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!