Well there have been several requests in the past about CPG supporting video. Frankly I don't have a Video Cam nor the bandwidth to post such things on my website - consequently I am reluctant to code anything with doesn't have any tangible benifits - yeah selfish BUT thats the way it is.
However nothing prevents anyone who is interested to code such a feature and it will be included in a future release if the code is at par with the other in CPG.
So here it goes....
[edit GauGau 2005-02-18]
Although video support has been integrated into coppermine since cpg1.2.1, there are still people who request it as a feature or even reply to this thread, asking how to apply it. Let me clarify: this hack only applies for coppermine version cpg1.2.0! All previous versions (cpg1.0, cpg1.1.0, cpg1.1.1) can not be modified to have video support, all newer versions (cpg1.2.1 or better) already come with video support, so there's no need to apply this hack. This hack is only valid for users of cpg1.2.x who wish to have video support, but can not (for some obscure reason) upgrade to the most recent stable versions.
As support for cpg1.2.x is running out, I locked this thread - you should definitely upgrade, especially if you need video support.
Joachim
[/edit]
tarique I do not seem to be able to vote in this forum...
QuoteYou can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
No worries oasis... I can't either ;)
Coppermine should also allow sounds ;). Not big MP3's, not the illegal way, but some sounds that I have recorded. So my visitors can listen to the (short) songs, and that they can comment it...
I also like video in coppermine in the future ;) Good suggestion suggestie
I think supporting sound and video is silly. This is a Photo album app!!! If you want a video...why not just use BBCODE to place a link to a vid file in the descritiption or something?
Actually, I'm for this in general. Making this the Coppermine Multimedia Gallery. Not howling for it or anything, but if someone wanted to do the work, I wouldn't be opposed.
OK deteleted the poll :oops:
In this case ... it would be interesting to "redo" the structure
Example ...
http://www.sortons.net/photos/thumbnails.php?album=209
Gallery is in a DIV ...
on the right we could have
"See the Video"
"See The Interview"
"See the Article"
...
But ... Coppermine would become a Multimedia Nuke ... and I'm not sure it's a good idea (FOR THE MOMENT) : Coppermine is great, a lot of things should have to be modified, exploited ... before to do that, even if it would be a dream to have a great tool like this.
Don't forget all is free, so ... don't abuse :)
I must admit that I have been contemplating a way to include flash movies and sound files in the gallery. As others have discussed, a linking system with place holder thumbnails seems to be the most natural way of accomplishing this.
So you have to create for each video/sound file a new picture?
lasa, this is "general discussion" - there won't be any code on this thread (at least not that soon) that you could copy and paste into your gallery.
GauGau
No, I only want to know what they do with their sounds/video's to intergrate into coppermine....
lasa,
The integration we are discussing is theoretical. To my knowledge, no one has any code to do this as of yet. We are discussing the usefulness and possible methods of integration, so all plans are just now being put on the drawing board.
The method I mentioned would allow a person to have a default image or a custom image for a file type, and when the link is followed they would go to a page where the content is delivered.
-Hyperion
It'll be nice to have video support, specifically quicktime and Flash. I have a HTML "gallery", manually done for quicktime panoramas and some flash map. I tried to modify CPG to "support" it but didn't get far
:?
I don't think the inclusion of any video format would worry about GD or IM libs - perhaps as early idea you just add a link to the video, a custom image to click on before it plays..
Let's say an extra button at the Display image page beside the e-card icon or something.
A movie icon (which is ofcourse turned on/off in picture pref screen) which links to a popupwindow with the movie in it.
Then we only have to add 1 extra field in cpg_pictures which includes the path to the movie. (or add upload field)
If path/movie exists ShowButton() :D
And create a file that generates the page with movie.
Quote from: "DJMaze"Let's say an extra button at the Display image page beside the e-card icon or something.
A movie icon (which is ofcourse turned on/off in picture pref screen) which links to a popupwindow with the movie in it.
This is one of the best options that I have heard on this one - but what about the UI for uploading/editing etc - that is a whole can of worms
Well the uploading is the same as jpeg/png but instead of reading and writing it like a picture. We only "move" the uploaded file to a movies directory (or in same dir as picture)
Or just let people upload the movies themselves and just a extra field at the Picture edit: moviepath=
editOnePic.php?id=15&what=picture
DON'T grab a picture from movie, people always want to place their own picture about the movie.
and in cpg_pictures we add the xtra field (say movie_path) the path to the movie. Or a seperate table and cpg_pictures only stores the MovieID.
If someone finds a PHP source that can read the movieclip info and save the width, height and length in DB. That would be perfect.
Tarique,
I was thinking we could make use of the image_processor module. It could easily check the file extension, and if swf, mp3, etc. files were detected it could generate a new form to ask for the thumbnail placeholder. That form could accept a custom or default picture. Then it could deliver the info to db_input, which would get the image path and the movie/music path, and store them in the appropriate folders. The link would go in the database associated with the picture, so a button or clicking on the picture could generate a new page with the embedded content (or activate an external player) and the comments available as usual. As DJMaze said, we could check and see if the movie/music path was set and toggle the link in the HTML depending on the outcome.
It certainly won't be minor, but it would be well worth it. Coppermine would become the most versatile free multimedia gallery available.
Hmmm... Today / some day I will look into how the Gallery folks are handling it.
How far have you guys gotten with this? If it's still in the "theoretical" stage, let me know. I've peeked at the code, and I'm sure I can do it without modifying the database.
Go ahead do it -show us :)
It seems the key file in all of this is the db_input.php file. Line (263) being the beginning of the problems. There should be a file extension check there to keep it from falling into the trap on (273). I tried to comment out (273-275) but it got caught on (281)....close but no cigar. Anyway, since it seems to be a go for this, I should have an alpha for this by the weekend....hopefully.
Dudes!!!
I think I did it! I haven't had a chance to test the code yet, because I typed it all at work. (Shhh. Don't tell anyone.)
Here are the files that I've modified so far:
db_input.php (1 function added; modifed rest of code to use function; and changed the order of some if statements)
functions.inc.php (added 7 functions; modified code to use functions)
init.inc.php (added 3 arrays for file types; constants for browser types; and modified code)
I have yet to modify the following:
editpics.php
thumbnails.php
index.php
...and probably a few more, but these are the ones that I figure do the most of the work. (anything else I should be looking at....I'll figure it out anyway, once I get back to my computer.)
Since I'm not that good of an artist, can someone make the three images that will function as the thumbnails for the files when they can't be embeded? I figure the images should be about 320x240, so they can be scaled down if needed. Here are the new types: movie, document (as in pdf or txt), and audio.
One more thing: Is it ok for me to modify it, so if an GD/Imagemagick isn't present, it'll just squeeze/inflate the image using height/width parameters?
Once complete, it should be able to accept anything from txt files to avis....Sorry, no zip support....although, it'll be easier to add it now.
Quote from: "omniscientdeveloper"One more thing: Is it ok for me to modify it, so if an GD/Imagemagick isn't present, it'll just squeeze/inflate the image using height/width parameters?
Since either GD or Image Magick is minimum requirement to run Coppermine I'd say "go": if someone's foolsih enough to run Coppermine just to be able to have video files without fullfilling the min requirements (not having GD/IM) he/she deserves to be "punished" with scaled down full-sized pics :wink:
GauGau
I have a question.
Would you guys be opposed to storing the files in the database? It's possible to have it work both ways for backward compatibilty. I know it'll pose a performance penalty, but in the long run, it'll make it more flexible....OR it could use unique file names which are stored in the database.
Let me know, and I'll code a patch for it. (I'm using coppermine for two projects that I'm doing, that's why I'm making all these changes.)
you mean storing the files themselves as blobs in the database? I don't favor this option, because databases can become too big to handle (especially do backups over http) when using blobs, especially when it comes to (potentially large) video files. I'd favor having only the links/paths inside the db (same as with pics).
GauGau
OK...No problem. I just want to make sure that I do something that could get used.
So....unique file names stored in the database is a go? What do you think about... http://forum.coppermine-gallery.net/index.php?topic=3069
Here are a couple things I'm considering:
#1
I haven't modified the db structure yet, but I was thinking that there should be a field for the mime type of the file so it wouldn't have to keep checking. That can be intergrated into the init.inc.php file so it can add it if it isn't there. It would then have to scan the db and all the files to insert the mime type. (This would require a PHP 4.3 installation to work with videos, etc.)
#2
Putting all configs in the db except for username and password info for the db.
#3
Seperating the functions.inc.php file so that functions that are normally used together are in one file and the core ones are in a (core.functions.inc.php???) file. (I think this'll speed it up some.)
I must this progress looks very promising - waiting in anticipation for this one.
The document idea is particularly nice. I would never have thought of it, but I can already imagine some excellent applications.
Quote from: "omniscientdeveloper"#2
Putting all configs in the db except for username and password info for the db.
Could you clarify? Are you proposing to move the database server name, database name, and table prefix into the database itself?
No...basically I was talking about the config variables that are in the init.inc.php file. The ones in the config.inc.php file are fine.
I think it'd be horror to try to put all those different types in one album, though it'll be possible. I think it'd look much cleaner having a document album, movie album, etc. (I started to program it this way, but figured that I'd be microsofting people into my way of thinking.)
I just setup a demo site with the changes that I've made.
It's about 90% complete, so I should be done really soon. It's still a tad bit buggy, since I have about three more pages to edit.
Here's the site:
{edit: site deleted}
The document types are not viewable yet.
I tested it in IE 6.1. If some of you guys, that have other browsers, can tell me if it looks ok for you, that'd be sweet.
looks great - I'm looking forward to the upload facility and the other "backend" functions :wink:
GauGau
I'm about 95% done now. I was out all day today....church, so I only got about 1 1/2 hours of coding done. I just have the batch upload and ecard parts to do now, so I'll be done tomorrow. :)
I downloaded some icons from deviantart.com. I'm supposing that they're freeware, but I'll ask the author anyway. I use these to display the file types.
I uploaded the changes to the my test site again, so you can check out the changes. I'm still having problems with the document types though. I think I'm going to just make those links open in a new window for any view other than thumbnail.
I may also make the user manually type in the dimensions of the video files, so they get rendered correctly.
...Oh...Everything but the images look like crap in NN 7.1. :cry:
Looking forward to this :) If it works.. :)
I have been using cpg for some time now, and I love it, but I have always missed to be able to upload small video files and so on. Most digital cameras have a video function, and the clips arent much bigger than the pics taken with the same camera, so the ability to share those small clips along with the pics is a must I think. So I am trembling inmy pants here, and hoping you will get it to work 100%, or 95% sounds good to me aswell :)
Finished!!!
I used the release version.
Notice: The menus still look the same as before, so to upload a video, etc., you just click the "upload picture" link or use the batch add mode.
WARNINGS:
1. If you have any mods installed, you may have to reinstall them.
2. MAKE SURE YOU BACKUP YOUR CURRENT FILES BEFORE INSTALLING (ESPECIALLY IF YOU HAVE MODS INSTALLED)!!!!!!
3. It's still buggy in netscape navigator when viewing movies.
4. Be careful of the file names. It can throw faulty "file type" errors.
5. These installation files may only work with ENGLISH because of changes to the english language file. If you're setup with a different language, then you may want to ask the translator for your language to update the language file. You can install it, however, but you may have problems with the editpics.php page.
INSTRUCTIONS FOR USE:
If you upload a movie, especially quicktime, make sure you enter the width and height of the video. (I have yet to add support for REAL video formats.)
MODIFICATION INSTRUCTION:
The file types are hard-coded into the init.inc.php file. If you want to add a new file type (you'll have to do this if you get file type errors) you can add it to one of the arrays there. I think it's pretty complete though.
Once installed, you should be able to add extra file types.
I've also upgraded my site, so you can see it in work:
http://www.brownfloyd.com/bgallery/
I had only a rough look over it, but I'm very impressed!
I packaged this up for the download section (http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=98542&release_id=192577) into two packages:
- cpg1.2.1_mod_video_hack.zip (http://prdownloads.sourceforge.net/coppermine/cpg1.2.1_mod_video_hack.zip?download)
as provided by omniscientdeveloper with only the files that were changed (meant for an upgrade of an existing coppermine1.2.1 install)
- cpg1.2.1_mod_video_full.zip (http://prdownloads.sourceforge.net/coppermine/cpg1.2.1_mod_video_full.zip?download)
a full installation package of cpg1.2.1 with the hack included[/list:u]Please note: this mod hasn't been tested intensively on various platforms, there will surely be some issues to be ironed out - that's why I'd label this *beta*-software! Do not use it on live/production sites! Use it at your own risk. Backup your files before applying the mod!
This great mod will almost certainly go into the next release... :D :D :D
GauGau
Bravo!!! Three cheers for omniscientdeveloper
Great work!!
Folks please download and test as throughly as possible (I am doing it as well) so that we can integrate it in the next release
hmmm.. I tried uploading both an avi file, and a mpg file to my gallery.. It shows a "thumb" that says there is a mpeg file there, but when I click it, I only get a small dot showing.. What did I do wrong? I hava a standard installation, with no modifications of cpg.. *sniff*
nevermind :) Dont know what it was, I copied the cpg files and overwrote the excisting files, and now it works. Maybe there was some file left from my old "Non modded" cpg there... or my cache in the browser or something... But Hurray! it works! :)
This guy who did this deserves a beer, or 20 :)
Thanks, but I don't drink. :wink:
For those of you that can code a bit, here are the language file changes that I made:
Add this entry to the "ecard.php" section of your language file:
'error_not_image' => 'Only images can be sent as an ecard', // Translate 'Only images can be sent as an ecard' to your language.
Add the following changes in the "editpics.php" section of your language file:
'pwidth' => 'width', // Translate 'width' to your language.
'pheight' => 'height', // Translate 'height' to your language.
'pic_info_str_movie' => ' - %s KB - %s views - %s votes', // Translage 'views' and 'votes' to your language.
NOTE: Your language file is found in the 'lang' folder. These changes aren't necessary if you're using English.
This should help out the translators a bit.
I've just updated my gallery with your mod omniscientdeveloper, and just wanted to say thanks. It works wonderfully.
Excellent work! Trying it out now.
Sweet.. it works great! Had to disable the watermarking mod though to get it working - a pity but makes sense. I was hoping there was an option to upload a custom thumbnail representation of the particular video, not just file types.
:) (I've already thought of that.)
Like gaugau said, this is more of a beta release. The final version will have that capability. It'll be accomplished by uploading a pic with "thumb_" as the prefix (or whatever is set in the config) and the extension being either a jpg or png.
Example:
video name: myvideo.wmv
thumb name: thumb_myvideo.jpg or thumb_myvideo.png
(ofcourse coppermine can do the resizing, so the user won't have to do it)
i can't view the thumbs and and the videos doesn't start....
is there a conflict with the watermark hack???
:?:
Most likely. See the previous poster. He had to uninstall the watermark mod. I'll download it, when I get some time later this week, and see how it works so I can make them work together.
in my watermark hack, i replaced only one line in functions.inc.php:
original code
return $url_prefix[$pic_row['url_prefix']]. path2url($pic_row['filepath']. $pic_prefix[$mode]. $pic_row['filename']);
with this code
return 'logo.php?picturename='.$url_prefix[$pic_row['url_prefix']]. path2url($pic_row['filepath']. $pic_prefix[$mode]. $pic_row['filename']);
and here is the logo.php
<?
// SCHIPT BY DJ AXION
// e-mail: DJ@the-expansion.com
// Enjoy this script!
// GET SOURCE PICTURE FROM FORM INPUT
$b = imagecreatefromjpeg($picturename) or die ("Could not create from JPEG");
$bx = imagesx($b); // source width
$by = imagesy($b); // source height
$lm = $b;
if ($bx > 200 and $bx < 600 ) { // this ensures no watermark is added to small images (e.g. thumbnails)
// ADD WATERMARK (medium Image)
$pos = "bottomright"; //where is the watermark displayed...
if ($pos == "topleft") {
$src_x = 0;
$src_y = 0;
} else if ($pos == "topright") {
$src_x = $bx - 193;
$src_y = 0;
} else if ($pos == "bottomleft") {
$src_x = 0;
$src_y = $by - 187;
} else if ($pos == "bottomright") {
$src_x = $bx - 105;
$src_y = $by - 26;
}
// THIS IS THE CODE FOR THE WATERMARK
ImageAlphaBlending($lm, true) or die ("Could not alpha blend"); // Enable when on GD 2+
$logoImage = ImageCreateFromPNG('logo_small.png'); // logo.png is a watermark it add's...
$logoW = ImageSX($logoImage);
$logoH = ImageSY($logoImage);
ImageCopy($lm,$logoImage,$src_x,$src_y,0,0,$logoW,$logoH);
}
if ($bx > 600) { // this ensures no watermark is added to small images (e.g. thumbnails)
// ADD WATERMARK (Big Image)
$pos = "bottomright"; //where is the watermark displayed...
if ($pos == "topleft") {
$src_x = 0;
$src_y = 0;
} else if ($pos == "topright") {
$src_x = $bx - 193;
$src_y = 0;
} else if ($pos == "bottomleft") {
$src_x = 0;
$src_y = $by - 187;
} else if ($pos == "bottomright") {
$src_x = $bx - 580;
$src_y = $by - 160;
}
// THIS IS THE CODE FOR THE WATERMARK
ImageAlphaBlending($lm, true) or die ("Could not alpha blend"); // Enable when on GD 2+
$logoImage = ImageCreateFromPNG('logo_big.png'); // logo.png is a watermark it add's...
$logoW = ImageSX($logoImage);
$logoH = ImageSY($logoImage);
ImageCopy($lm,$logoImage,$src_x,$src_y,0,0,$logoW,$logoH);
}
Imagejpeg($lm,'',80); //80 means JPEG quality
imageDestroy($lm);
?>
Which function is the line you replaced in?
i don't know... this code is not from me..... :lol:
:?
I don't understand. Are you saying that you didn't write that code or that it didn't come from your site?
the watermark hack hardlocke is referring to can be found on the old board: http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=961
I wouldn't spend too much time on fixing it: using the watermark hack is not recommended, because it applies the watermark to every pic that is requested from the server (this way, it consumes large server ressources) - can only be used on sites with very little traffic (and a webhost who is very tolerant :wink: ).
Hopefully there'll be an additional feature in coppermine instead in a future version that will batch-add watermarks images (or text) to multiple pics only once (for those who can't/won't apply watermarks on their pc before uploading the pic).
I used to be worried in the first place when the watermark hack was submitted that it'll cause troubles with other mods, as it doesn't use displayimage.php, but uses a separate file (logo.php) which just isn't state-of-the-art any longer (sorry to say that, DJAxion).
GauGau
It could "possibly" be fixed by caching the watermarked file. From looking at the code, it doesn't look like it does that.
Maybe "wmk_" as a prefix?
split unrelated posting into separate thread (http://forum.coppermine-gallery.net/index.php?topic=3288). Do not hijack other's threads :evil:
GauGau
Quote from: "omniscientdeveloper"It could "possibly" be fixed by caching the watermarked file.
Yes caching of watermarked files is the answer and watermarking itself should be an upload time as well as Admin settable option.
This combine with your Picture URL obscuring script has got great potential in Stock Photo (and such) sites which show watermarked pictures to unsubscribed users....
I have a problem uploading video files. I tried both the xp publish wizard, and the upload file function in the gallery.
I only get a message that it isnt a picture file. And I get an empty album, with no name on it, so I am not able to delete it, since I dont get any edit, delete ... buttons on it.
It was an wmv file I tried uploading, maybe that is the problem?
Hmm.. Now I tried uploading 2 files to an album.. 2 files that were 2.48 and 2.45 mb... in mpg format, with the mpeg extension to the filenames. The 2.48 mb file uploaded nicely, and worked fine, but the 2.45 mb file I got an
" No picture was uploaded !
If you have really selected a picture to upload, check that the server allows file uploads... ! error... What could cause this? since the files are about the same size + they have the same extension.. non of the files has illigal characters in their name either, one is called mcsplash.mpeg, the other hjelle.mpeg .. strange...
I never editted the xp_publish file, so I don't know how it works. Post a link. If your site isn't porn I'll check it out.
hehe.. no porn, maybe as far away from porn that you can get :p
http:galleri.flyby-fester.no
and I made a test account
login: testuser
pass: test
hehe.. no porn, maybe as far away from porn that you can get :p
http://galleri.flyby-fester.no
and I made a test account
login: testuser
pass: test
I can't upload, so I can't test it. :P :roll:
Cant you make your own album and upload to that ? Dont know how to change max filesize for registred users to more than 1 mb... I changed the options in the admin panel, but dont know id that is a global change, or just for the admins upload accounts
Hi - I have a copperminre viral site and I want my users to be able to send videos by email as well. At present whenever I try to send video or text it says - only images can be send out.
Is there a way around this?
Thank you all!!!
video support has been added only recently as a modification (read: not an official part of coppermine, therefor unsupported).
I moved your posting to the thread that deals with the video mod.
As stated above, the mod is provided "as-is" and must be considered "beta" status. Only use it if you're feeling comfortable with beta software.
GauGau
I installed this (new install) but when i submit a clip to be uploaded even after i added size. When i hit submit it just takes me to a page, then isent there (404)
never post links when asking for support. They must remain secret! :wink:
GauGau
Hey, great add-on. Thanks for it. :D
There is only one small problem. For some reason, whenever I add an AVI file, it won't play back afterwards. It says that there is an invalid source when I click on 'error report' afterwards, or something along those lines.
I have made sure that the dimensions are correct, and I have tried different files (so the actual file I'm adding is not corrupt).
Any ideas?
Thanks.
-Pete
EDIT: This is the exact error message (after I have right clicked on the window and selected 'Error details):
Cannot open. Please verify that the path and filename are correct and try again. (Error=800C0006)
Thanks again
I was very excited when I first saw this mod starting off... looking forward to trying it out.
I have a query though:
is the only way to upload a video through the upload page? Is it possible to upload to the server via FTP, then use the Batch Add page?
I ask because my webserver puts a limit on the size of files that can be uploaded using PHP, so the only feasible way for me to transfer videos is using an FTP program.
Thanks for any help.
Quote from: "AndrewH"Is it possible to upload to the server via FTP, then use the Batch Add page?
I'm guessing that you didn't try it before asking. :? :roll:
Quote from: "james"whenever I try to send video or text it says - only images can be send out.
Is there a way around this?
Nope.
Quote from: "omniscientdeveloper"I'm guessing that you didn't try it before asking. :? :roll:
No, I haven't been able to get it working yet... but I'd just like to know whether it'll be worth the effort to do so. I mean, if there is no way to upload my videos onto my Coppermine gallery, then there wouldn't be any point in trying to get this video hack working.
I take it the answer is no?
OK,
Everything is working fine with this Mod,
EXCEPT:
After a user uploads a vid to their Album, the thumb in User Galleries is their last uploaded file. But if it is a vid (avi, mpg) their is not a thumbnail there.
Did I miss something (I uploaded upgrade mod twice to be sure).
Thx in advance
t3kn0byt3
Quote from: "omniscientdeveloper"Quote from: "AndrewH"Is it possible to upload to the server via FTP, then use the Batch Add page?
I'm guessing that you didn't try it before asking. :? :roll:
I tried using ftp and batch add, it does work AndrewH. I used an mpg, have not tried other file types.
Quote from: "t3kn0byt3"I tried using ftp and batch add, it does work AndrewH. I used an mpg, have not tried other file types.
Thanks for that t3kn0byt3.
I've actually just managed to get the video hack working... tried uploading via FTP as well, and I'm happy to say that it all works perfectly! Thanks for the great work omniscientdeveloper - for me, this video capability has added an exciting feature to Coppermine.
I do have another question if you don't mind:
I noticed that the user has to enter the dimensions of the video clip on the Upload page - why is this necessary? I uploaded video clips via FTP, and the video gets played back correctly, before and after I had manually entered the dimensions on the Edit Pictures page. I'm just curious to see if you had identified issues with not having the dimensions known beforehand.
Quote from: "t3kn0byt3"OK,
Everything is working fine with this Mod,
EXCEPT:
After a user uploads a vid to their Album, the thumb in User Galleries is their last uploaded file. But if it is a vid (avi, mpg) their is not a thumbnail there.
Did I miss something (I uploaded upgrade mod twice to be sure).
Thx in advance
t3kn0byt3
Admin can edit the album properties of albums in user galleries, so just change the properties for the thumbnail from 'last uploaded' to a pic you select from the list.
Quote from: "AndrewH"I'm just curious to see if you had identified issues with not having the dimensions known beforehand.
Quicktime videos don't get rendered correctly, so to be safe you can enter it. It's not necessary though.
My dilemma is still there. Here is a link to my site so you can see for yourself.
User: test
Pass: test
Click on user galleries and you will see the broken image. It's looking for a thumbnail_image of the mpg file.
Thx
Quote from: "casper"Quote from: "t3kn0byt3"OK,
Everything is working fine with this Mod,
EXCEPT:
After a user uploads a vid to their Album, the thumb in User Galleries is their last uploaded file. But if it is a vid (avi, mpg) their is not a thumbnail there.
Did I miss something (I uploaded upgrade mod twice to be sure).
Thx in advance
t3kn0byt3
Admin can edit the album properties of albums in user galleries, so just change the properties for the thumbnail from 'last uploaded' to a pic you select from the list.
@t3kn0byt3 : I've the same problem, i think i miss nothing too.
@casper : This is a manual workaround, it is not a viable solution :lol:
Jean-Denis
Quote from: "t3kn0byt3"Here is a link to my site so you can see for yourself.
Where?
GauGau
whoops:
http://lbd1956.com
Hi,
Here's my symptom :
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.accro-photo.com%2Fphotos-site%2Fbugs%2Fvideothumb.jpg&hash=801c2c6a59d4f5568ad0829c965aaf52b2c16b90)
The last upload for my Gallery is a video. The thumb is not displayed in index.php?cat=1. Elsewhere, no problem.
Jean-Denis
If I have 1.2.0full installed...which video mod should I add ? The hack or the full ? All i want to do is upgrade basically. Will the upgrade change the configurations I have saved already and change things like my theme modifications etc ? Also, when I install the video mod, will it upgrade my gallery to version 1.2.1 ?'
Thnx :D
Most likely, you both didn't update all your pages.
:| @ that video
Quote from: "marcamillion"If I have 1.2.0full installed...which video mod should I add ? The hack or the full ? All i want to do is upgrade basically. Will the upgrade change the configurations I have saved already and change things like my theme modifications etc ? Also, when I install the video mod, will it upgrade my gallery to version 1.2.1 ?'
Thnx :D
[moved/merged your posting to the thread that deals with video mod]
First of all, you have to understand that the video mod is still in beta phase (meaning "use at your own risk").
If you're running cpg1.2.0, you're encouraged to update to cpg1.2.1 anyway (since it doesn't contain new features, but only fixes some bugs). Using the full package will upgrade your gallery to 1.2.1 (remember running the upgrade script!), so it's the option to go for.
GauGau
Sorry if this has already been asked...I skimmed through this thread and didn't find anything...
Can this hack be used with the Nuke version of coppermine? If not, are there any plans for a modified hack that can?
This whole system is great. Thank you guys for your passion.
this board is only for the standalone version of cpg, the nuke support can be found elsewhere. To answer your question: no, this mod will only work for the standalone, not the nuke version at the moment. I'm sure the nuke team will implement it for a future release, as soon as the small issues that exist with video mod have been ironed out.
GauGau
split/moved unrelated postings dealing with "random pics not displaying properly" to separate thread, as it's not related to this thread: http://forum.coppermine-gallery.net/index.php?topic=3661
GauGau
I uploaded some mpgs and I can't get any videos. I can only hear sound. I upload them via ftp and batch add them to their respective album.
Also after you upload the videos files is there a way to add a thumb for the video instead of the generic video icon.
Thanks for the all of the help this is a great hack or mod.
at: http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=98542
there are two video mods (full and another) Whats' the difference?
will they work on 1.2.1 ?
Quote from: "tarr"at: http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=98542
there are two video mods (full and another) Whats' the difference?
will they work on 1.2.1 ?
They are both 1.2.1 files..
cpg1.2.1_mod_video_full.zip <--- CPG 1.2.1 With Video Mod (Full Install)
cpg1.2.1_mod_video_hack.zip <--- Just the changed files for use with 1.2.1
Quote from: "salvemeum"Hmm.. Now I tried uploading 2 files to an album.. 2 files that were 2.48 and 2.45 mb... in mpg format, with the mpeg extension to the filenames. The 2.48 mb file uploaded nicely, and worked fine, but the 2.45 mb file I got an
" No picture was uploaded !
If you have really selected a picture to upload, check that the server allows file uploads... ! error... What could cause this? since the files are about the same size + they have the same extension.. non of the files has illigal characters in their name either, one is called mcsplash.mpeg, the other hjelle.mpeg .. strange...
I never saw the outcome of this , I am having a very similar problem, except everytime I try to upload a small video I get that error. I haven't had one upload correctly. I set my max file size to 50 meg just to be safe, and can't think of anything else that needs changed. I am able to upload pictures properly. I found out the size via properties and entered the values correctly. But always get the "If you have really selected...." , I also added AVI and MPG to the accepted file extentions in the config section although I'm not sure that did anything.
I can provide a link if needed, its a reef aquarium site.. so its safe :)
A few more details: I installed the full video install from scratch . Added no mods.
Thanks very much for your help.
--- edit --- The file I was trying to upload was approx 3 meg in size. I tried uploading the "parent" file to that clip which is 15 meg and it did try a bit longer then gave this error:
Script called without the required parameter(s).
All larger files I try to upload give that error. Mpg and Avi
Sounds like the same issue: Not all of your files are updates. If so, then maybe the package is missing a file, which I doubt because most people say it works fine. At any rate, if you're having persistant problems, I suggest that you uninstall the mod.
I downloaded the "full install" video mod package, and installed it in a seperate folder than my running coppermine, created a different database for it too. I tried everything I could to make it a completely seperate install.
did I do that correctly? was the full package meant to be a completely new install?
Verify that you have the correct upload page. It is correct, if you can see fields for height and width. If not, then most likely, that's your problem. Also, try clearing the cache on your browser. It is possible that you could be looking at an old page, even after updating the one on the server.
Yup, I have the size fields.
To enter the size for the AVI's I used to values that windows XP shows as the size ( its included in my Details listing ) and for mpeg I downloaded an mpeg properties program.
Could it be timing out?
Thanks for this GREAT mod its working perfectly ;)
Im just curious if there is going to be a feature to have a thumb of the movie instead of the "moviejpgs" ?
Thx again for the time u spent with this great mod. Of course a big THX to all the cpg authors !! :D
If I have time to add it.
Hi, guys, I got a standalone installation working ok(using cpg1.2.1_mod_video_full.zip), but it does not work with my phpnuke 7.
I am getting messages like:
Fatal error: Failed opening required 'include/config.inc.php' (include_path='.:/usr/local/lib/php')
Any help is greatly appreciated.
Quote from: "luhong"Hi, guys, I got a standalone installation working ok(using cpg1.2.1_mod_video_full.zip), but it does not work with my phpnuke 7.
I am getting messages like:
Fatal error: Failed opening required 'include/config.inc.php' (include_path='.:/usr/local/lib/php')
Any help is greatly appreciated.
Ok, I just solved that by adding a ini_set(...) line to phpnuke's modules.php. However, I am getting a new error
Coppermine critical error:
Unable to load template file template.html!
Is cpg1.2.1_mod_video_full.zip really working with phpnuke?
Quote from: "luhong"Is cpg1.2.1_mod_video_full.zip really working with phpnuke?
No, and nobody claimed it would. This whole board is for the standalone version of coppermine only. The nuke dev team will surely port the mod once it's done and mature, please watch the nuke board for details or announcements.
GauGau
Great mod guys. I 2nd that notion to get a thumbnail taken of the initial vid shot.
Quote from: "jeeplaw"Great mod guys. I 2nd that notion to get a thumbnail taken of the initial vid shot.
It doesn't have to be that difficult. You could just mod the code so that you could substitute the thumbnail for a thumb that you've created yourself, whether it be a still of a frame in the video or whatever.
Interesting thought there, but would coding it to have the program create a thumb of the first frame for each vid be just as convenient? I don't know, just a though. Because I may be looking at having a gallery of over 100 vids..might get a little cumbersome to make thumbs for each one, but it would be doable.
Also, right now the gallery is streaming the vid, is there an option to implement a save feature so people can save these videos as well?
I installed using the update zip package. But now I cannot connect to my coppermine gallery. Get this error
Coppermine critical error:
Unable to connect to database !
MySQL said: Access denied for user: 'mcgs@localhost' (Using password: YES)
I'm lost :?
I have coppermine integrated with phpBB2 bulletin board...is that the hangup...duh...guess it is...have to edit the init.inc file again...going to try that
Quote from: "ludedude"I installed using the update zip package. But now I cannot connect to my coppermine gallery. Get this error
Coppermine critical error:
Unable to connect to database !
MySQL said: Access denied for user: 'mcgs@localhost' (Using password: YES)
I'm lost :?
I have coppermine integrated with phpBB2 bulletin board...is that the hangup...duh...guess it is...have to edit the init.inc file again...going to try that
Tried that, no success, now it says:
Coppermine critical error:
Unable to connect to database !
MySQL said:
It says nothing....hmmm...got it running as a fresh intsall on my test site (have trouble with .wmv files...some will upload but not play, others will not load)...love it...just need to get it working on my regular site.
edit: working now did update/full install 1.2.1 works now! Thanks
I too have the issue of no thumnail in the user gallery section. The "mpeg" thumbnail shows up in the random section though :?
Does anyone know of a reason why this mod , the full install zip , would not work on a "standard" slackware 'out of the box' install?
I have tried to get this mod working many times. I have a clean slackware box now with a fresh install of the full mod. I have two avi's I am testing with. One is about 3 meg the other about 15. Both are 320x240 .
I am able to upload photos fine, but when I try videos , entering the title, description, etc... and the size values , I always get an error. The first error, which is always associated with the smaller avi file is this:
No picture was uploaded !
If you have really selected a picture to upload, check that the server allows file uploads...
File: /var/www/htdocs/Test/cpg1.2.1_video/db_input.php - Line: 197
The error I always get with the larger of the two files is this:
Script called without the required parameter(s).
File: /var/www/htdocs/Test/cpg1.2.1_video/db_input.php - Line: 39
The smaller of the two files takes almost no time to give an error, the larger file seems like its uploading , gets about 1/2 done then gives the error.
Is there a php setting that is messing it up? Mysql? I can upload photos just fine. Could it be a problem with the video format? I just don't understand as everyone seems to have it working without a hitch.
--- edit ---
I have also tried the Hack on a working install and got the same errors.
Be sure to check the upload config in php.ini. Also take a look at this thread:
http://forum.coppermine-gallery.net/index.php?topic=3759
Many thanks Hyperion , the php.ini settings did it!
I have some users that are getting videos that are not filling the screen...
You can see what I mean here:
http://www.45thparallel.net/coppermine_dir/thumbnails.php?album=32
I can't try the mov types..I don't have quicktime at work, and I can't view any at home on dial-up....freezes IE.... :cry:
Is this most likely due on their end? Need updated plugins?
Well done... nice hack!
Everything works great for me except AVI's and MPEG movies don't play in the browser. Any idea?
Here is an example:
AVI: http://www.rcflying.net/gallery/displayimage.php?pos=-1210
MPEG: http://www.rcflying.net/gallery/displayimage.php?pos=-1212
WMV's work great...
WMV: http://www.rcflying.net/gallery/displayimage.php?pos=-1282
WreckRman2 I think it's browser related....I can watch different formats from work than I can from home....others have issuses with formats I do not...this is all within my site...
Quote from: "WreckRman2"Well done... nice hack!
Everything works great for me except AVI's and MPEG movies don't play in the browser. Any idea?
Here is an example:
AVI: http://www.rcflying.net/gallery/displayimage.php?pos=-1210
MPEG: http://www.rcflying.net/gallery/displayimage.php?pos=-1212
WMV's work great...
WMV: http://www.rcflying.net/gallery/displayimage.php?pos=-1282
See I can't view the wmv from work...
The mpeg works fine
the AVI loads and plays(scroll bar moves) but it doesn't change from the media logo
Weird... oh well. :) Good hack... any word on the thumbnails yet?
If there's a problem with the video not filling the video size not being correct, you'll have to set the video size manually in the editpics section. This usually only happens with quicktime (MOV) videos.
I'm still having troubles with this...
A member uoloaded videos tonight .wmv format..I can't view them...but if I download them via ftp from the server I can view them....so it's not a matter of plugins...right?
Video size is correct....they just load and then stay on the Mindows Media logo... :cry:
I currently use IDS (http://ids.sourceforge.net) for my galleries. It is a perl script and will do thumbnails for image files, and display icons for other file types (any files, you set it in the configuration) so I can have my mpegs and so on in the gallery, even though they don't have a thumbnail, just an icon. This functionality is very important to me... is there a way to get Coppermine to do this? Or is there another php gallery that will do it?
Hi opalcat,
there is a mod available for that now, and it is a standard feature in the next release, if you can wait.
Look in the stickies in the mod forum if you want to do it now.
Great! Thanks :)
Yes, I have coppermine doing this with same thumbnail image for each video regardless of what is on video.
I'm trying to find way of having individual thumb pics for each video, but haven't found way yet. I made movie thumbs and then upload them and name them thumb_moviename.jpg but nothing yet. Anyone got a hack for something like this?
I would be interested in that feature as well--being able to manually make and upload thumbs for movies.
@ opalcat and bulldozer
Moved this topic to the thread dealing with video file uploads. Please read it through, as there has been discussion on the thumbnails for these files.
Quote from: "jeeplaw"Interesting thought there, but would coding it to have the program create a thumb of the first frame for each vid be just as convenient?
That might work for some things... but sometimes a video may have, say, a black screen as the first frame. Or something else that doesn't really "id" the clip. I think that in a perfect universe, the option to have thumbs generated or upload your own should be a choice you get to make... but if I could only have one of the two, I'd opt for uploading my own.
I have to leave in like 10 minutes but I thought I'd post this anyway so I'll read the reply by the time I get back :P
I've installed the latest cpg video mod. I've also modified some stuff to parse the template so I can use includes.
Now for some strange reason it suddenly gives an error message as follows:
QuoteFatal error: Call to undefined function: is_movie() in /home/vuurwerk/public_html/*******/editpics.php on line 199
The URL is:
http://www.vuurwerklook.com/*******/
The piece of code it's referring to is as follows:
function form_pic_info($text)
{
global $CURRENT_PIC, $THUMB_ROWSPAN, $CONFIG, $lang_byte_units, $lang_editpics_php;
if (UPLOAD_APPROVAL_MODE) {
$pic_info = $CURRENT_PIC['pwidth'] . ' × ' . $CURRENT_PIC['pheight'] . ' - ' . ($CURRENT_PIC['filesize'] >> 10) . $lang_byte_units[1];
if ($CURRENT_PIC['owner_name']) {
$pic_info .= ' - <a href ="profile.php?uid=' . $CURRENT_PIC['owner_id'] . '" target="_blank">' . $CURRENT_PIC['owner_name'] . '</a>';
}
} elseif (!is_movie($CURRENT_PIC['filename'])) {
$pic_info = sprintf($lang_editpics_php['pic_info_str'], $CURRENT_PIC['pwidth'], $CURRENT_PIC['pheight'], ($CURRENT_PIC['filesize'] >> 10), $CURRENT_PIC['hits'], $CURRENT_PIC['votes']);
} else {
$pic_info = '<input type="text" name="pwidth'.$CURRENT_PIC['pid'].'" value="'.$CURRENT_PIC['pwidth'].'" size="5" maxlength="5" class="textinput" /> x ';
$pic_info .= '<input type="text" name="pheight'.$CURRENT_PIC['pid'].'" value="'.$CURRENT_PIC['pheight'].'" size="5" maxlength="5" class="textinput" /> - ';
$pic_info .=($CURRENT_PIC['filesize'] >> 10)."KB - ";
$pic_info .=$CURRENT_PIC['hits']." views - ";
$pic_info .=$CURRENT_PIC['votes']." votes";
}
I'm hoping someone can fix this for me cuz I've got too big a headache and too many other worries besides all this right now. (please note that I only learnt how to work with PHP 2 weeks ago :P)
Hello,
I've got basic questions considering themes I'd like to ask you before I make any mistake : ;)
I've installed Coppermine 1.2.1_mod_video_full. Should I
- use 1.2 themes ?
- use 1.2.1 themes ?
Thx a lot for your help
Regards
ToToRo
PS : sorry moderators, but I couldn't create a new topic in the Mod/Hack forum
Hi Totoro,
moved your post to the thread dealing with this mod. There was no need for another topic.
as the mod name says 1.2.1, I'd go for 1.2.1 themes as well, but why don't you just try for yourself? Just download an 1.2 theme, upload it to your server and test-drive it...
GauGau
Quote from: "gaugau"as the mod name says 1.2.1, I'd go for 1.2.1 themes as well, but why don't you just try for yourself? Just download an 1.2 theme, upload it to your server and test-drive it...
GauGau
I'll try !
Thx a lot :)
@totoro
I don't see why it wouldn't work. The code that displays the image is part of the core, not the theme, so it should work.
@burpee
Make sure is_movie() is in your functions.inc.php file--that's where it should be for that version of the mod. If it's not, then your functions.inc.php file is incorrect. You can also look in the init.inc.php file, but I'm sure it's in the functions.inc.php file.
Quote from: "omniscientdeveloper"@burpee
Make sure is_movie() is in your functions.inc.php file--that's where it should be for that version of the mod. If it's not, then your functions.inc.php file is incorrect. You can also look in the init.inc.php file, but I'm sure it's in the functions.inc.php file.
Thnx lol
When I modified the functions.inc.php to parse the templates I modified
the non-video version and uploaded it (I think :P).
Now on to the next obstacle in customizing... trying to combine phpBB's
cascading style sheet and Coppermine's... *deep sigh*
is there going to be support for Real Media (RM) files?
Thanks omniscientdeveloper, just what I needed.
The issue I have seems to fall in line with others:
Inconsistency in video playback. For the most part, the videos play fine. I am on winxp, and I have windows media player set as my default mpeg player. However, sometimes when I click on a MPEG link, The full size flashes, then the movie area shrinks, and only the control buttons show, then IE crashes, quickly. I then restart, and it crashes again. Then I reboot my box, and it works....until I try an hour later. I can reproduce this at home. At work, with the same version of IE, same patches, it never crashes...fascinating.
Anyone else experience IE crashing?
what would you expect from Redmond? An OS that never crashes? :wink:
GauGau
Quote from: "omniscientdeveloper":) (I've already thought of that.)
Like gaugau said, this is more of a beta release. The final version will have that capability. It'll be accomplished by uploading a pic with "thumb_" as the prefix (or whatever is set in the config) and the extension being either a jpg or png.
Example:
video name: myvideo.wmv
thumb name: thumb_myvideo.jpg or thumb_myvideo.png
(ofcourse coppermine can do the resizing, so the user won't have to do it)
Please forgive me if the nature of this question is 'noobish'. I don't know too much of PHP, nor of complicated programs such as this (though I love it). I do not think I have GD or ImageMagick installed, nor do I know if that would solve my problem, but above you mentioned being able to submit a thumbnail along with your file. The thumbs for my documents and non-image files in my album listing (http://me.warcry.com/content/fanart/index.php) display as the icon(s) made for this mod - is there a way to have a custom thumb for each file?
Again, I apologize if this sounds utterly uninformed and/or redundant, but I wasn't able to find any other information on this, or at least recognize it with my limited knowledge of this sort of program.
Thanks in advance for your help.
at the moment, this feature doesn't exist yet.
GauGau
Is there anyway to allow only admins publish non-images?
Or put something in the 'Groups' page permissions?
When I try to batch add my movies I get that broken picture "X" thing in the result column. Is this a GD issue? Does this only work with IM?
Curious what I am doing wrong.
Thanks,
dondo521
I am trying to upload an mp3 file, except it says no file was selected :(
@lance:
Question #1: The feature you're requesting isn't possible right now.
Question #2: Make sure you select the folder you want it to be uploaded to. That error is most likely caused when you don't select an upload folder.
@dondo:
Neither GD nor IM handle videos, so no it's not an IM issue. Verify that your files are url friendly, ie., no spaces, no quotes, etc. Sometimes you can get away with it. Sometimes you can't.
@ lancefiasco,
a not very pretty workaround, to prevent users from uploading non image files, would be to remove the other files from the 'allowed file types' in config.
Then just put it back in temporarily when you want to upload.
as I said, not very pretty.
Quote from: "omniscientdeveloper"@lance:
Question #1: The feature you're requesting isn't possible right now.
Question #2: Make sure you select the folder you want it to be uploaded to. That error is most likely caused when you don't select an upload folder.
@dondo:
Neither GD nor IM handle videos, so no it's not an IM issue. Verify that your files are url friendly, ie., no spaces, no quotes, etc. Sometimes you can get away with it. Sometimes you can't.
I may sound like a complete moron, but how do I select an upload folder?
Do I need to alter those?
Accepted file extensions for uploaded pictures
Allowed image types (only valid for ImageMagick)
Is there a way to have a video or flash mov album?
The minimum i would think is at least be able to have a still image, but when you click it opens up a window and plays the mov in a new window.... is this possible??\
What about audio files?
Yes, you can download the mod for 1.2.x, or you can dolwnload the 1.3 beta where it is standard.
Sorry for being stupid! :roll:
...but maybe someone can help me to get started (post-installation)?
If your problem is still with mp3s then you need to make sure the variable ALLOWED_SND_TYPES (I think), in the init.inc.php file has an entry for mp3s, which it should, if you're using the original mod. If you're using CPG version 1.3 then your problem is something else.
Everything is working now :)
What was the fix?
Quote from: "omniscientdeveloper"What was the fix?
Nothing. I just used 'Batch Add', instead of manual upload, which for some reason wasn't working.
I too really need the thumbnails...if anyone can help soon rather than later that would be greatly appreciated, as there is an obvious demand present for such.
Quote from: "lancefiasco"I too really need the thumbnails...
I don't think that
being demanding is the right step for our thumbnails problem :!:
It's not gonna motivate our Coppermine Heros 8)
I am considering different methods of uploading the thumbnails for the different filetypes. I want to make it as easy as possible, both the uploading and coding portions. When will I get the chance to code it? I don't know. I'll try to do it soon, but don't be surprised if it's not in the final 1.3 release, as it's feature-locked.
Quote from: "maZoo"Quote from: "lancefiasco"I too really need the thumbnails...
I don't think that being demanding is the right step for our thumbnails problem :!:
It's not gonna motivate our Coppermine Heros 8)
Sorry if you are getting the wrong idea...I just want the developers to see that's it's a needed feature.
I think it's fairly obvious Omni (and the other devs know this), and is working on the best solution. But remember, we all have priorites,and it will be done when Omni has the time. Please remember we are all unpaid for the work on coppermine, and have our real jobs and family lives to live as well.
In other words, please be patient, or even have a go at doing it yorself, and posting your solution.
^I wish I was capable of doing this stuff. You guys deserve a lot of credit. :!:
Why does the config.inc.php file need to be overlayed? Looks like all that is different is the userdefined db prefs?
I have uploaded everything (but the config.inc.php since it was the same) and at first glance seems okay, but when I try to upload .mpeg, .avi - I get the "no picture was uploaded" message from the gallery.
Any ideas???
Thanks
Phil
Try using 'Batch Add Pictures' from the admin menu. I have a similar problem, but the admin upload via FTP seems to work.
lance,
Well it worked doing that. Thanks for the tip. There must be something we are missing though. That is not very useful for members to upload their movies. Do you have a work around for this?
Thanks,
Phil
Phil,
You files most likely exceed the PHP's default 2MB upload limit or one of the other upload relevant php.ini settings.
I downloaded the latest version and was able to upload a movie. However it would be nice to have a separate thumbnail upload.
How it would work would be like this...
Once the program notices that the selected file is not an image file it would ask the user if they had their own thumbnail for the multimedia file that they would like to upload.
That way it could be sound or whatever.
How can I add a thumbnail for a movie format right now?
Thanks
Merged your posting with the thread that already contains a lengthy discussion about the video thumbnails.
GauGau
It wasnt so much video question.
Just a request to make the program have an option to have a manual upload for a thumbnail.
So it could be a sound, with a thumbnail, a zip file, with a thumbnail. No just video related.
It it was done this way I think it would avoid many questions.
the so-called video mod let's you upload all sort of files (sounds, documents etc.). If there was an uploadable thumbnail, it could be used for all sorts of files. I just wanted to point out that there has been a discussion on this. Why don't you go ahead and code a mod that will let you add custom thumbnails...?
GauGau
I have no idea how to make one... sorry :'(
Quote from: group54 on April 22, 2004, 03:21:34 AM
lance,
Well it worked doing that. Thanks for the tip. There must be something we are missing though. That is not very useful for members to upload their movies. Do you have a work around for this?
Thanks,
Phil
Well actually I don't want my members to upload video, so it works for now. :lol:
Hmm... Suggestion:
Wouldn't it be a good idea to not display movies/large files in their own screen. Watching a movie in explorer doesn't cache the video.
So like this:
if filesize > 2mb { link directly to file }
... but then in real php :D
And ofcourse as an admin-settable option
And another thing, what happened to the idea of uploading thumbnails along with alternative filetypes?
@Burpee: You can upload thumbnails along with alternate file types: just name it thumb_filename. When you batch add, it finds the thumbnail and uses it for the description image. I'm not sure if this works with a member upload, but in theory it should.
I also hate waiting for a movie to load - but since I don't use IE that much it doesn't bother me too much. ;) But seriously, the movies I post on my site are small (<300k) so I keep my members from waiting too long. I think a good way around the problem would be to make a low-res verison of the movie, and zip the high res version and add it as a separate download. Not a perfect solution, but it's a good stop-gap measure.
Quote from: kegobeer on July 25, 2004, 02:53:07 PM
@Burpee: You can upload thumbnails along with alternate file types: just name it thumb_filename. When you batch add, it finds the thumbnail and uses it for the description image. I'm not sure if this works with a member upload, but in theory it should.
Figured that out about 30 minutes after I posted the message... it's still not a very pretty solution though :-\\
Quote from: kegobeer on July 25, 2004, 02:53:07 PM
I also hate waiting for a movie to load - but since I don't use IE that much it doesn't bother me too much. ;) But seriously, the movies I post on my site are small (<300k) so I keep my members from waiting too long. I think a good way around the problem would be to make a low-res verison of the movie, and zip the high res version and add it as a separate download. Not a perfect solution, but it's a good stop-gap measure.
Which would in effect mean that every movie would take up 30% more space than it would normally... I'm sharing primarily movies of 10mb+ so adding small extra movies would be a lot of extra work and a lot of extra space...
I still think it shouldn't be
too difficult to tell it to give a direct link when the movie is larger than a certain size... I just have no idea how to do it :D
Quote from: kegobeer on July 25, 2004, 02:53:07 PM
@Burpee: You can upload thumbnails along with alternate file types: just name it thumb_filename. When you batch add, it finds the thumbnail and uses it for the description image. I'm not sure if this works with a member upload, but in theory it should.
I also hate waiting for a movie to load - but since I don't use IE that much it doesn't bother me too much. ;) But seriously, the movies I post on my site are small (<300k) so I keep my members from waiting too long. I think a good way around the problem would be to make a low-res verison of the movie, and zip the high res version and add it as a separate download. Not a perfect solution, but it's a good stop-gap measure.
Anyway to add thumnails AFTER the fact of uploading?
@ludedude: just upload the thumb_filename.jpg image into the movie's directory.
@Burpee: So, you're looking for something along the lines of this: When a user clicks on a thumbnail of a movie, if the movie is larger than a specific size, a simple link is shown. Clicking on that link will cause the member's movie player to open instead of being embedded in the intermediate screen.
Quote from: kegobeer on July 26, 2004, 06:04:18 AM
@Burpee: So, you're looking for something along the lines of this: When a user clicks on a thumbnail of a movie, if the movie is larger than a specific size, a simple link is shown. Clicking on that link will cause the member's movie player to open instead of being embedded in the intermediate screen.
Exactly!
It'd be nice to somehow not have to click twice for a movie, but you do also want to display information
I think this should do the trick: In displayimage.php, in function html_picture(), search for if ($mime_content['content']=='image'). The else statement (right after the elseif statement) will be changed from:
} else {
$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
} else {
if (filesize($picture_url) > 1048500) {
$pic_html = "<a href=\"$picture_url\">Click to view movie</a><br />\n";
} else {
$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";
}
}
1048500 is approximately 1mb. Change it to whatever cutoff you want.
Hmm... I could kiss you... :-*
Works like a charm :)
Quote from: kegobeer on July 26, 2004, 05:58:29 AM
@ludedude: just upload the thumb_filename.jpg image into the movie's directory.
I tried, but no change :| It still shows the generic mpeg icon thumb ???
It should work. If your video name is Untitled.mpg, your thumb should be thumb_Untitled.jpg. Upload it via FTP to the same directory Untitled.mpg is in.
I tried a test mpg on my site and it worked.
Quote from: kegobeer on July 26, 2004, 06:33:50 PM
It should work. If your video name is Untitled.mpg, your thumb should be thumb_Untitled.jpg. Upload it via FTP to the same directory Untitled.mpg is in.
I tried a test mpg on my site and it worked.
I'll have to check things out then...thanks for testing it ;)
I decided not to go with only the "Open/Save" link...
Instead, I went for another plan.
I want to create two links, one saying "Open in browser", one saying "Open/Save" ...
- The Open/Save button would just be a regular link directly to the file
- The Open in Browser button would be a popup window (such as the "fullsize" popup window) in which the movie is displayed.
So I decided to try and mod this. All the necessary code is in displayimage.php.
A few lines above the line kegobeer modified, there's "
if ($mime_content['content']=='image') {" in which a popup link to the fullsize image is located.
I changed the lines for movies to the same popup link, but now I changed
fullsize=1 to
movie=1 in the link.
Then, with my far too limited knowledge of php I decided to attempt to modify the underlying code to show a small html file for a movie.
My attempt was to copy the
function display_fullsize_pic() and rename it to
function display_movie() and copying the html under it as well, and then modifying it. I think this is pretty much the only solution, except I just can't get it to work!
I actually tried to change it so that the the links would be located at the thumbnails, but seeing as I can't figure out how to make it create a different type of thumbnail for a movie when
$mime-content = movie I didn't have any luck again (I know, I need to learn php lol).
@ludedude: Question... Are you not seeing the custom thumbnail on the Coppermine main page and albums pages, or are you not seeing it on another page stored outside the coppermine directory?
It's been a while since I revisted this thread--also haven't upgraded to the latest version yet. Anyhow - has there been any new developments as far as moving this mod into the official version of CPG is concerned?
Any reason the code posted on page 2 by omniscientdevelope would not work on 1.3.2 (or is this already included and I am a few months behind)?
Thanks!
It's all included in 1.3x.