forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: esugrue on July 02, 2004, 03:03:18 am

Title: Video Clips in CM Query
Post by: esugrue on July 02, 2004, 03:03:18 am
Hi!

1) With video galleries, is it possible on the displayimage.php page not to attempt to play the video but to have a `Click here to download this video' link. Some of my video clips are large and I want members to download the clip for offline playback!

Thanks
Ernie
Title: Re: Video Clips in CM Query
Post by: omniscientdeveloper on July 02, 2004, 03:22:30 am
You can modify it yourself by editting displayimage.php and changing:

Code: [Select]
            $pic_html = "<object {$image_size['whole']}><param name=\"autostart\" value=\"true\"><param name=\"src\" value=\"". $picture_url . "\"><embed {$image_size['whole']} src=\"". $picture_url . "\" autostart=\"true\"></embed></object><br />\n";
to

Code: [Select]
            $pic_html = "<object {$image_size['whole']}><param name=\"autostart\" value=\"false\"><param name=\"src\" value=\"". $picture_url . "\"><embed {$image_size['whole']} src=\"". $picture_url . "\" autostart=\"false\"></embed></object><br />\n".
                        "<p><a href=\"download.php?pid={$CURRENT_PIC_DATA['pid']}\">Click here to download</a></p>";


Copy the code at the bottom of this thread as a new file "download.php" in your coppermine folder:
http://forum.coppermine-gallery.net/index.php?topic=6464.0


-omni
Title: Re: Video Clips in CM Query
Post by: esugrue on July 02, 2004, 08:47:08 am
Hi Omni:

Thanks for the quick response. I did as you said and it works great!

Thanks
Title: Download Enabled Albums
Post by: liddo on August 26, 2004, 08:06:19 pm
http://forum.coppermine-gallery.net/index.php?topic=7535.0
[download code]

is there a way to have an option if the files in the album will have a download link

for example I have 2 albums .. pictures and videos.

I want the videos to have the download link but not the pictures album

thanks
Title: Re: Video Clips in CM Query
Post by: Joachim Müller on August 26, 2004, 09:57:59 pm
merged your question with the thread you're refering to. Next time, please reply if you actually have a follow-up question on a thread, instead of starting a new thread.
Why don't you just try the code Omni posted? You will find out that it only shows the download link beneath multimedia files, but not beneath regular pics?

GauGau
Title: Re: Video Clips in CM Query
Post by: liddo on September 12, 2004, 03:48:45 am
my pictures are converted to swf
Title: Re: Video Clips in CM Query
Post by: Joachim Müller on September 12, 2004, 08:46:39 am
means what?

Joachim
Title: Re: Video Clips in CM Query
Post by: Zakraket on October 09, 2004, 07:31:18 pm
Another thing for video-files: It would be nice when the displayimage.php would not show the videowindow (WMP) but a preview screenshot of the video - and clicking on the screenshot would start the "save to..." - , so that for video you would need:

- video.avi
- video.jpg
- thumb_video.jpg

I've noticed that thumb preview images are shown correctly :)
Title: Re: Video Clips in CM Query
Post by: Joachim Müller on October 11, 2004, 05:54:24 am
The image libraries "GD" and "ImageMagic" (and the PHP functions that are used with them) that are being used by coppermine to create intermediate sized and thumbnails for pics don't support the movie formats, so you can't build movie thumbnails automatically with them. However, you can upload custom thumbnails that represent the movie by creating them on your client and uploading them separately. This is being covered in the docs.

Joachim
Title: Re: Video Clips in CM Query
Post by: Zakraket on October 11, 2004, 06:38:48 pm
I have done that already for thumbnails (created thumb on my client and uploaded it). However, I would like to see the displayimage.php to show a "video.jpg" for a "video.avi" (or .mpg) instead of the WMP screen.

In other words: same as with pictures, only with a downloadlink for the actual videofile. Or something like that, and NOT the Windows Media Player trying to play the video.

:)
Title: Re: Video Clips in CM Query
Post by: Joachim Müller on October 11, 2004, 09:40:09 pm
then I propose you just upload a jpeg representation of the video in the first place (adding the jpeg the usual way to the coppermine database), upload the video to some folder outside of coppermine and add the video download link in the file description, using bbcode.

Joachim
Title: Re: Video Clips in CM Query
Post by: Zakraket on October 12, 2004, 01:19:14 pm
That's a good solution :), however, my gallery doens't seem to accept urls in file description. Is that perhaps some option I've missed?

http://www.stefijn.com/gallery/displayimage.php?album=1&pos=0
Title: Re: Video Clips in CM Query
Post by: kegobeer on October 12, 2004, 01:24:45 pm
It doesn't work with

Code: [Select]
[url=http://Jouwsite.nl/]Url Text[/url]
in the description field?
Title: Re: Video Clips in CM Query
Post by: Zakraket on October 12, 2004, 01:27:32 pm
It doesn't work with

Code: [Select]
[url=http://Jouwsite.nl/]Url Text[/url]
in the description field?
No, see the link I gave

Btw, its also not possible to enter URL's in comments..they turn up as:  (...)
Title: Re: Video Clips in CM Query
Post by: Zakraket on October 17, 2004, 09:46:21 am
It doesn't work with

Code: [Select]
[url=http://Jouwsite.nl/]Url Text[/url]
in the description field?
So? Is this a "glitch" in CM? Can I enable it somehow?
Title: Re: Video Clips in CM Query
Post by: Joachim Müller on October 17, 2004, 12:44:31 pm
I don't get the point, this works fine for me - see the demo (http://coppermine.sourceforge.net/demo/index.php) (take a look at the link in the description of the "vegetables" album) for album descriptions. A link in the pic description can be found here: http://coppermine.sourceforge.net/demo/displayimage.php?pos=-16

Joachim
Title: Re: Video Clips in CM Query
Post by: Zakraket on October 17, 2004, 02:31:34 pm
The point is...is doens't work on my gallery (latest version) :-\\

see http://www.stefijn.com/gallery/displayimage.php?album=10&pos=2

This URL
google (http://www.google.com/) (which obviously works here)

Comes out only as google[/url ]

It works fine in the albumdescription btw. (http://www.google.com/)
Title: Re: Video Clips in CM Query
Post by: Joachim Müller on October 18, 2004, 09:13:35 am
I get
Quote
Coppermine critical error:
Unable to connect to database !

MySQL said: Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (11)
on your page...

Joachim
Title: Re: Video Clips in CM Query
Post by: Zakraket on October 18, 2004, 11:51:17 am
Indeed...that wasn't the case yesterday  ??? I'll get back to this when it's solved  :-[
Title: Re: Video Clips in CM Query
Post by: Zakraket on October 22, 2004, 11:31:03 am
Indeed...that wasn't the case yesterday  ??? I'll get back to this when it's solved  :-[

It's up again

http://www.stefijn.com/gallery/displayimage.php?album=1&pos=0

Seems it DOES work in picture description. I tried to put it in the picture TITLE
Title: Re: Video Clips in CM Query
Post by: mid0ri on December 02, 2004, 06:15:48 am
I wonder whether Coppermine can be modified to have support for more than one video format (Real Video, Windows Media, MPEG etc.) for each video title.

I want to be able to upload:
thumb_video.jpg
  video.ram
  video.wmv  (the same video title in two formats)
and to display them using the same thumbnail icon. Under the thumbnail icon, there should be little tiny icons which are automatically displayed to show the kind media files available for viewing.

I understand that we can use BBcode to write external link to the corresponding media files, but it wouldn't be practical when users need to hardcode lots of links, everytime new files are uploaded.
Title: Re: Video Clips in CM Query
Post by: Joachim Müller on December 05, 2004, 12:13:12 pm
such a hack would require fundamental recoding of coppermine in many places, as the current relation thumbnail <-> intermediate <-> full-sized file would have to be broken up / modified. If you really need this, you'll have a lot of coding to do - way too much effort for a "nice to have" feature, if you ask me.

Joachim
Title: Re: Video Clips in CM Query
Post by: Cameo on December 06, 2004, 11:39:14 am
Thanks for the code; it was exactly what I was looking for.
I have one additional "wish" which is sort of related to the "video download"-code.
In my online album some visitors want to share Excel- and Word-files.
After implementing the code above I expected those files to be affected as well.
However, they still appear only as an "XLS"- or "DOC"-icon and there is no "click here to download"-line.

I've been looking into the code and it looks as if the "document"-variable is the one that determines if a picture
is shown or a file is downloaded. Am I correct? Does anybody have a suggestion what to do to enable
non-video/non-picture files to be downloaded?

Thanks in advance,
Cameo
Title: Re: Video Clips in CM Query
Post by: mid0ri on December 08, 2004, 05:35:47 am
Thanks for your insight Dear Joachim. I would appreciate if you would consider this as a feature addition request. I'm sorry, I must have been dreaming, but I'm afraid the following feature has become a "must-have"  feature for some people.

- Support for download/play different kinds of media types.
For example: everytime the same video titles in different formats are uploaded, Coppermine shows only one thumbnail for all video files:
  videotitle.ram
  videotitle.wmv
  videotitle.mov
All those files share the same thumbnail: thumb_videotitle.jpg

There should also an option at the control panel, whether to "play" or to "download" files. If the "play" option is checked, beneath the thumbnail there should be corresponding text/buttons/icons for the media types available ("Play Real Video," "Play Windows Media," "Play Quicktime"). Consequently, if the "download" option is checked,  the corresponding "Download Real Video", "Download QuickTime" text/icons should appear beneath the thumbnail.

This feature should also works with audio files in different formats. For regular pictures which only have full-size JPG/GIF/PNG pictures, (as an option) "download full-size image" should appear beneath the thumbnails.

For users who use Coppermine only to display pictures and need no multimedia capability, this feature can be turned off from the control panel.
Title: Re: Video Clips in CM Query
Post by: kegobeer on December 08, 2004, 06:56:40 am
Quote
For example: everytime the same video titles in different formats are uploaded, Coppermine shows only one thumbnail for all video files

1.3.2 comes with a thumbnail for each video type.  If there isn't a custom thumbnail associated with the video, Coppermine looks for and displays a thumbnail for the file type (thumb_wmv.jpg for wmv, thumb_avi.jpg for avi, etc).  The same goes for audio files.

However, since I've never named a video the same thing (with a different filetype) I can't verify the issue you've posted.  I'll have to take a closer look.
Title: Re: Video Clips in CM Query
Post by: mid0ri on December 08, 2004, 02:27:41 pm
Thanks for your quick response Dear kegobeer.
1.3.2 comes with a thumbnail for each video type.  If there isn't a custom thumbnail associated with the video, Coppermine looks for and displays a thumbnail for the file type (thumb_wmv.jpg for wmv, thumb_avi.jpg for avi, etc).

If one album contains more than 10 video clips and at least there are 2 different kinds of video format for each title, then you will end up with too many thumbnails. It doesn't look good, and confusing for users.

Maybe I should rephrase my feature request to become: I want Coppermine to show only one custom thumbnail for different media files of the same video title.

Dear kegobeer, can you help?
Title: Re: Video Clips in CM Query
Post by: kegobeer on December 09, 2004, 02:16:56 am
Quote
If one album contains more than 10 video clips and at least there are 2 different kinds of video format for each title, then you will end up with too many thumbnails. It doesn't look good, and confusing for users.

Huh?  Ten files = ten thumbnails, that's the way it works.  Do you somehow get more than one thumbnail for each of your files?   I don't know how anyone would be confused by a thumbnail with a title underneath it.  Perhaps you could post a link to your gallery that has videos in it so I can see what you're talking about.

As for the feature request - I don't see that happening.  That isn't a feature request, it's more like changing the way files are currently handled to the way you want it, which wouldn't benefit the majority of users.  We have to balance a request with the impact it would have on the userbase.  In this case, I don't see any benefits.
Title: video download link stops at 1.90mb
Post by: graverhead on January 17, 2006, 05:03:47 am
Hello.

I have added the "video download link" mod to my CPG and everytime anyone attempts to download any of the video files, it stops at 1.90mb, no matter how large the file is. What can be done to fix this issue?

All the videos are encoded as WMV v9. The specs can all be seen in the gallery.

My gallery is located at:
Site: www.graverhead.com/gallery
User: guest
Pass: dave

Thanks in advance!
Title: Re: video download link stops at 1.90mb
Post by: Joachim Müller on January 17, 2006, 09:04:36 am
what mod are you refering to? I suspect you just run into a timeout.
Title: Re: video download link stops at 1.90mb
Post by: graverhead on January 22, 2006, 12:48:31 am
I followed the suggestions in this post:
http://forum.coppermine-gallery.net/index.php?topic=9367.0

Whenever anyone goes to download any of the video files from my gallery, it just stops at 1.90mb or 1.91mb. It never gets any further than that.

What do you suspect is going on?

If it's just timing out, why does it timeout for everyone?

What can be done to fix it?

Hopefully this is something simple!
Title: Re: Video Clips in CM Query
Post by: Joachim Müller on January 22, 2006, 11:19:47 am
merged you thread with the one you refered to.
Title: Re: Video Clips in CM Query
Post by: graverhead on February 10, 2006, 07:08:28 am
Does anyone have any suggestions or am I just SOL?
Title: Re: Video Clips in CM Query
Post by: Nibbler on February 10, 2006, 04:45:25 pm
Use the solution discussed in http://forum.coppermine-gallery.net/index.php?topic=19425.msg90404#msg90404