Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 3 4 [5] 6 7 8 9 ... 22   Go Down

Author Topic: Displaying videos from Youtube in Coppermine.  (Read 431871 times)

0 Members and 1 Guest are viewing this topic.

ashelby

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
    • ArmedForcesPhotos.com
Re: Displaying videos from Youtube in Coppermine.
« Reply #80 on: February 28, 2007, 05:52:30 pm »

Does this actually upload the youtube file to my server?  Or is it linking to youtube?  I'm looking around the coppermine forums and it is a question I am curious of.  I read there is no remote storage option for coppermine, does this hack null that.  This might be another subject all together, but would it be possible to feed video through coppermine from other sites.  Take a url from somesite.com/videos/video_x.wmv and play that video on the coppermine page without storing the file locally.

I am looking at this for my site and giving away the original URL is no problem, in fact I want it displayed for credit purposes and I've added a field for the video creator to put their website address on every video.

Thanks the excellent support and excellent script,

Aric
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #81 on: February 28, 2007, 06:16:40 pm »

A already answered this question - it is just a link. The thumbnail is copied to the server but that is all.

You can add code to stream videos from anywhere you like.
Logged

ashelby

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
    • ArmedForcesPhotos.com
Re: Displaying videos from Youtube in Coppermine.
« Reply #82 on: February 28, 2007, 06:47:25 pm »

Awesome, I will take a much closer look at your code today (I have the YOUTUBE working) and see if I can massage it into what I need. 

Any quick tips on doing this?

This really helps my effort.  I was getting frustrated with godaddy's file size limits.

I will post what I can figure out on changing the godady limit to 8MB, as well as the streaming other formats.

Aric

video-tutorials.com
Logged

webslingers

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #83 on: February 28, 2007, 09:14:50 pm »

I have put in all the code, can upload a youtube video fine, but when it comes to display on the theme, there is only a small thumbnail. Clicking on the thumbnail does nothing. Can someone tell me where I may have messed up? I've tried using a upload.php from a working source which tells me it might be a server thing. Thanks for any help.
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #84 on: February 28, 2007, 09:20:22 pm »

You probably missed the change to your theme. post your code.
Logged

ashelby

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
    • ArmedForcesPhotos.com
Re: Displaying videos from Youtube in Coppermine.
« Reply #85 on: February 28, 2007, 09:21:52 pm »

Yes, I had the same when I switched themes.  You have to make the changes in every theme.php file or you will just get the thumbnail.

Aric
Logged

P1mm3l4ug3

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #86 on: February 28, 2007, 11:49:50 pm »

Hi

I have a small Problem

The Upload works fine, then i select the album and then i got this message

The previous file could not be placed.

You have successfully placed all the files.


What i have to do
Logged

webslingers

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #87 on: March 01, 2007, 12:29:28 am »

I uploaded the script to my production server to work out all the bugs there and not have to do it twice. All works well until I go to view the newly uploaded video. I get a white box. www.frankandmarywatson.com/vids

I have entered the code to work with PHP4 and made all the needed chmod adjustments.

Thank you.
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #88 on: March 01, 2007, 12:35:46 am »

You have some issue with duplicate files. Add a video you have never added before.
Logged

webslingers

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #89 on: March 01, 2007, 12:43:11 am »

You have some issue with duplicate files. Add a video you have never added before.

Ok, I uploaded a new video and it worked. Awesome! How do I clear all the history of all vids to start over? Is there a way to dissallow or change dup uploads?
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #90 on: March 01, 2007, 12:47:00 am »

Duplicates are normally handled fine by Coppermine, but since this is just a hack it is not so clean. You need to delete the thumbnails of the youtube videos from your FTP (thumb_youtube_xxx.jpg)
Logged

webslingers

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #91 on: March 01, 2007, 01:04:26 am »

Duplicates are normally handled fine by Coppermine, but since this is just a hack it is not so clean. You need to delete the thumbnails of the youtube videos from your FTP (thumb_youtube_xxx.jpg)

and those are in albums/userpics/xxx   ?

I've delete those, didn't fix the white vids. Did I miss something?
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #92 on: March 01, 2007, 01:13:15 am »

It won't fix existing problems. It will stop it happening for future videos.
Logged

webslingers

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #93 on: March 01, 2007, 01:24:07 am »

It won't fix existing problems. It will stop it happening for future videos.

Ok, that works for me. Seems to have done the trick. I have one more question. Is it my understanding that if you have private vids only, this is not for you? There is no way to add the site as a user somehow and allow viewing of private vids?
Logged

Nibbler

  • Guest
Re: Displaying videos from Youtube in Coppermine.
« Reply #94 on: March 01, 2007, 01:26:30 am »

I don't know.
Logged

webslingers

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #95 on: March 01, 2007, 01:29:12 am »

Ok, so it works great! Thank you for this!

If anyone has info on how to display private vids on your website without the user being logged into youtube as well, that would be great information. Maybe the site can have an open session with youtube and be listed as a friend somehow...? What are the thoughts on this? Can it be done?

Thanks Nibbler... Thanks to anyone else who posts!
Logged

P1mm3l4ug3

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #96 on: March 01, 2007, 10:20:53 am »

Hi

I have a small Problem

The Upload works fine, then i select the album and then i got this message

The previous file could not be placed.

You have successfully placed all the files.


What i have to do


aNY iDEA
Logged

ashelby

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
    • ArmedForcesPhotos.com
Re: Displaying videos from Youtube in Coppermine.
« Reply #97 on: March 01, 2007, 02:08:04 pm »

Nibbler has explained this, you are probably uploaing duplicate files.  Try uploading something you have never uploaded before and see if it comes out successfully.  If it works, then you should just have to change the file names for uploading the duplicate files.

Aric
Logged

P1mm3l4ug3

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #98 on: March 02, 2007, 09:24:06 am »

its not an duplicate file i have test it with many different video's and pictures

its always the same message

upload ok, i choose the album and the title and then

The previous file could not be placed.

You have successfully placed all the files.

and the files are 100% not a duplicate
Logged

P1mm3l4ug3

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Displaying videos from Youtube in Coppermine.
« Reply #99 on: March 02, 2007, 09:30:47 am »

Here is my Upload.php file

possibly anyone can find the error i build in, in the script ;D
Logged
Pages: 1 2 3 4 [5] 6 7 8 9 ... 22   Go Up
 

Page created in 0.037 seconds with 19 queries.