Video thumbnail trouble Video thumbnail trouble
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Video thumbnail trouble

Started by Islandtime, November 26, 2004, 06:24:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Islandtime

I have just setup coppermine and had no problems until I started adding video. I FTP uploaded my video and corresponding thumbs into the same folder. The video and thumbs are named with the following naming convention:

george1.jpg
george1.mpeg
george2.jpg
george2.mpeg

The thumbs show up fine in the album view but the video shows up as a 1x1pix white square. The video s also show up this way in the "Random Files" and "latest additions" views. There is an error message that is added to each page that has the video thumb error.

QuoteWarning: getimagesize(albums/Video/TS%20Bill/thumb_george3.jpg): failed to open stream: No such file or directory in /www/i/x/htdocs/DISPhoto/include/functions.inc.php on line 1065


I have searched the forum and read through several post on this topic but found nothing that helped me. Thanks for any help that you can provide. Please let me know if you need any additional info.

Here is a link to the page that has the error.
http://dauphinislandsurf.com/DISPhoto/thumbnails.php?album=20

Nibbler

rename the thumbnails to use the thumb_ prefix.

Islandtime

When I uploaded my thumbs, coppermine created it's own thumbs. Do I need to delete these and rename my orriginal thumbs to "thumb_george1.jpg"? Also should I resize my orriginal thumbs to be 100x100?

This pic shows what is uploaded now as well as the thumbs that coppermine created:

Casper

You need to delete the pics you first put up as thumbs, but by using coppermine, not by ftp.

Then ftp the pics with the 'thumb_' prefix into the same folder.  You do not have to try and batch add these pics.

And your thumbs don't have to be 100x100, but would look best at the same height or width setting as your usual thumbs.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Islandtime

Casper, you have me on the right track but I still have errors. After deleting the orriginal images and ftping up the new thumb_prefix images I can see the thumbs when I go to edit files for the particular album. On any other page I get the same white square and error message as before.

Islandtime


Casper

I had this when I first did this, but I cannot remember what I did to cure it.

Have you set the image size for the videos.  Check in the edit pics that they do not say 0 x 0
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Islandtime

The image size is set to 320x240 which is the video size. What file would I need to look at to see my orriginal setup entries. I'm wondering if I should change my path settings. This might not be the problem since everything else(photos) works fine.

Casper

I suspect this may be caused by the fact you have a space in the folder name.  Try creating a new folder, with the space removed, and see if it works there.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Islandtime

#9
Thanks again Casper! 8) I renamed all of my folders to names without spaces and everything is good. All of my mpeg's are using their apprpriate thumbs. The only problem that is still pending is the wmv files. I uploaded 5 wmv movies with their thumbs but the thumbs won't show up. All I get is the standard Coppermine WMV file image.

Here's the page:
http://dauphinislandsurf.com/DISPhoto/index.php?cat=14

Have you got any more ideas, everything that you've suggested so far has helped me. Come on give me one more hint. ;D

Casper

That's an empty cat, with no files???
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Islandtime

#11
I managed to delete the whole album. :( After I created another album I tried to batch add the files to it but I got a "no new files" error when I chose the orriginal folder.  I renamed the folder and was able to add the files to the new album. I still get the same problem with the wmv files. I don't understand why the thumb work for the mpeg's but not for the wmv's.


Here's the link again. This time the files are there.
http://dauphinislandsurf.com/DISPhoto/index.php?cat=14

Casper

What version of include/functions.inc.php and displayimage.php are you using?
You can find the version number in a line that looks like this in the top of each file;

// CVS version: $Id: displayimage.php,v 1.10 2004/08/23 06:39:53 gaugau Exp $

// CVS version: $Id: functions.inc.php,v 1.20 2004/09/15 08:36:33 gaugau Exp $

If yours do not match the versions above, get them from the cvs,  http://cvs.sourceforge.net/viewcvs.py/coppermine/stable/, and see if that cures the problems.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Islandtime

IU updated the displayimage.php and functions.inc.php files to the newest versions. Still no luck. My wmv files still wont associate with the thumb files. I even created a test album(called test) and FTPed different wmv files and thumbs but got hte same result. ???

Islandtime


kegobeer

I visited your site, and looked in the test album.  You have a video called a2.wmv - do you have a custom thumb called thumb_a2.jpg in the same directory as the a2.wmv file?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Islandtime

Yes, there is a custom thumb named thumb_a2.jpg.

Joachim Müller


Casper

Just as a thought, try renaming the file extensions of the wmv files to lower case.

I'd test this myself, but my test site is down at the moment  :-\\
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Islandtime

I tested the idea and that was the problem. I never even thought about the capitalized extentions. Thanks to everyone that has helped me with this problem.(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fforum.msi.com.tw%2Fimages%2Fmsi%2Fsmilies%2Fbiggthumbsup.gif&hash=3f305ae8801bee6b0a10468a2c00ffe8f3a7b957)(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fforum.msi.com.tw%2Fimages%2Fmsi%2Fsmilies%2Fbiggthumbsup.gif&hash=3f305ae8801bee6b0a10468a2c00ffe8f3a7b957)(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fforum.msi.com.tw%2Fimages%2Fmsi%2Fsmilies%2Fbiggthumbsup.gif&hash=3f305ae8801bee6b0a10468a2c00ffe8f3a7b957)