[Embed Video] A simple module to embed youtube, google, or remote .flv videos

apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2008-02-29 04:52
eyalw wrote:
Hey,
I have a small problem.
when I embed a .flv file from my server to my gallery it always comes out in 170X150.
but when i embed it in debug mode, it comes at the size I want.
what am I doing wrong?

I've never heard or seen this type of behavior before. The debug mode you can run the embedvideo module in is a passive mode. it simply controls whether various print statements are executed or not, but does not control or affect the video size in any way, shape, or form! You can try posting your debug output to the forum so we can take a look at it. Unfortunately, nothing is coming to mind as to why you are seeing this behavior.

 
eyalw

Joined: 2008-02-20
Posts: 5
Posted: Sun, 2008-03-02 09:07

Hello apippin,
I'll just use google videos for that.

this only accure when I try and use a video from my server.
if you still want the debug

Quote:
--------------------------------------------------------------------------------

Variable Parameters
debugOutput=true
useInternalFlvPlayer=true
youtubeDevId=
youtubeShowRelated=false
width=512
height=418
externalFlvPlayer=
externalFlvPlayerVars=
flvThumbnail=
useRemoteSize=false
autoStart=true
watermarkVideos=false
watermarkImage=
watermarkAlignment=left
wordwrapSummary=0
wordwrapDescription=0

--------------------------------------------------------------------------------

Item Parameters
url: http://eyeclick.com/eyestep2.flv
title: eyestep2
thumbnailUrl: http://media.eyeclick.com/modules/embedvideo/images/G2video_thumbnail.jpg

summary:
eyestep2

description:

eyestep2

thumbnail: /home/eyeclick/G2data/55231G2data21/tmp/addSdbtz2.jpg
mimeType: image/jpeg
fileName: eyestep2
width: 512
height: 418

--------------------------------------------------------------------------------

Thumbnail Resize
Checking to see if a toolkit that can resize images was found.
Found thumbnail size in album preferences: 150
Using ratio from original thumbnail of 1.13636363636. Resizing thumbnail image to 170 x 150: /home/eyeclick/G2data/55231G2data21/tmp/addSdbtz2.jpg -> /home/eyeclick/G2data/55231G2data21/tmp/add4m3Faw.jpg

--------------------------------------------------------------------------------

Video Successfully Added to your Gallery Album

--------------------------------------------------------------------------------

 
Ezeke

Joined: 2008-03-03
Posts: 9
Posted: Mon, 2008-03-03 22:09

Hey! I'm quite new to G2... I wanted to edit your module so that it wont display this thumbnail previews below the actual videos... but I just can't find out how to do it :( Please help me ^^
Im using the Matrix theme btw...

 
nautiboy

Joined: 2007-04-20
Posts: 42
Posted: Mon, 2008-03-03 22:54
Ezeke wrote:
Hey! I'm quite new to G2... I wanted to edit your module so that it wont display this thumbnail previews below the actual videos... but I just can't find out how to do it :( Please help me ^^
Im using the Matrix theme btw...

So far there have been two options presented to do this. There's the one I did, explained here:

http://gallery.menalto.com/node/65656?page=3#comment-262855

And the one that someone else did explained here:

http://gallery.menalto.com/node/65656?page=3#comment-263014

Both take a little bit of "know-how", but aren't too difficult to do.

 
Ezeke

Joined: 2008-03-03
Posts: 9
Posted: Mon, 2008-03-03 23:10

Thanks :P I'll try it out now... you posted the same link twice btw^^

*edit*
Made it yay! thx :]

 
nautiboy

Joined: 2007-04-20
Posts: 42
Posted: Mon, 2008-03-03 22:52
Ezeke wrote:
Thanks :P I'll try it out now... you posted the same link twice btw^^

Haha, you're right. So much for my preview/check.

The other link was supposed to be:
http://gallery.menalto.com/node/65656?page=3#comment-262855

 
gdfwilliams

Joined: 2007-03-13
Posts: 20
Posted: Tue, 2008-03-04 01:21

To remove the thumbnail, try replacing your photo.tpl file with this one:
http://gallery.menalto.com/files/photo.tpl__0.txt

(I've tested this with the Matrix theme and it works for me. Admittedly, it's not the best approach, but gets the job done...)

GDW

 
fifik

Joined: 2008-03-09
Posts: 2
Posted: Sun, 2008-03-09 14:55

Hi all,

Great Modules! I've installed this mod, and definitly open a lot of possibilities for my website.Anyway what i can't understand why it works very well on Firefox (Gecko/20080201 Firefox/2.0.0.12) and NOT with IE (v7.0.5730). I use the default MATRIX template.With Ebony template it doesn't work at all. So i'm resigned.:-(

Here the links to test with FF or IE

Dailymotion Embeded: http://www.tounsi.fr/photos/main.php?g2_itemId=269

YouTube Embeded:http://www.tounsi.fr/photos/main.php?g2_itemId=265

I'm just about to release my website, and this issue block me.

Does anyone could you please help me in this way, it will be very nice!!

Thanks in advance,

Raf

Thanks,

Raf

 
gdfwilliams

Joined: 2007-03-13
Posts: 20
Posted: Sun, 2008-03-09 15:25

Raf,

Works for me on IE x7.0.5730.11

GDW

 
fifik

Joined: 2008-03-09
Posts: 2
Posted: Sun, 2008-03-09 15:26

Thanks GDW for your fast reply! So i guess it's my browser?

Raf

 
dcnc

Joined: 2006-05-30
Posts: 19
Posted: Tue, 2008-03-18 02:35

nm...

 
GBUMoon
GBUMoon's picture

Joined: 2008-03-19
Posts: 2
Posted: Wed, 2008-03-19 15:06

I tried loading a video from YouTube:
http://www.youtube.com/watch?v=i-yYjLAKqwA

And I received this error:

Error (ERROR_CONFIGURATION_REQUIRED) : Invalid/missing YouTube developer ID:
* in modules/embedvideo/ItemAddEmbedVideo.inc at line 158 (gallerycoreapi::error)
* in modules/core/ItemAdd.inc at line 84 (itemaddembedvideo::handlerequest)
* in main.php at line 231 (itemaddcontroller::handlerequest)
* in main.php at line 94
* in main.php at line 83

So I converted the original AVI files to FLV and hosted them here:
http://www.comember.net/sales_training/

When I tried one of the FLV files I received this error:

Error (ERROR_BAD_PATH) : Unable to find the video at url: http://www.comember.net/motivational/vacation.flv - HTTP/1.1 404 Not Found
* in modules/embedvideo/ItemAddEmbedVideo.inc at line 409 (gallerycoreapi::error)
* in modules/core/ItemAdd.inc at line 84 (itemaddembedvideo::handlerequest)
* in main.php at line 231 (itemaddcontroller::handlerequest)
* in main.php at line 94
* in main.php at line 83

anyone?? thanks!

I'm using embedvideo module 1.0.4 and Gallery 2

 
GBUMoon
GBUMoon's picture

Joined: 2008-03-19
Posts: 2
Posted: Wed, 2008-03-19 19:45
GBUMoon wrote:
I tried loading a video from YouTube:
http://www.youtube.com/watch?v=i-yYjLAKqwA

And I received this error:

Error (ERROR_CONFIGURATION_REQUIRED) : Invalid/missing YouTube developer ID:
* in modules/embedvideo/ItemAddEmbedVideo.inc at line 158 (gallerycoreapi::error)
* in modules/core/ItemAdd.inc at line 84 (itemaddembedvideo::handlerequest)
* in main.php at line 231 (itemaddcontroller::handlerequest)
* in main.php at line 94
* in main.php at line 83

So I converted the original AVI files to FLV and hosted them here:
http://www.comember.net/sales_training/

When I tried one of the FLV files I received this error:

Error (ERROR_BAD_PATH) : Unable to find the video at url: http://www.comember.net/motivational/vacation.flv - HTTP/1.1 404 Not Found
* in modules/embedvideo/ItemAddEmbedVideo.inc at line 409 (gallerycoreapi::error)
* in modules/core/ItemAdd.inc at line 84 (itemaddembedvideo::handlerequest)
* in main.php at line 231 (itemaddcontroller::handlerequest)
* in main.php at line 94
* in main.php at line 83

anyone?? thanks!

I'm using embedvideo module 1.0.4 and Gallery 2

ooh, nevermind, when I inserted my developer ID from YouTube it worked, thanks!

 
BrennanBones

Joined: 2008-03-22
Posts: 4
Posted: Sat, 2008-03-22 00:11

Is it possible to make is so that I don't have to specify a width/height? My videos don't have all the same width and height, and so I'd like the player to become the size of the video it's playing?

I'm using an external player, and a link to a video, both of which are on my website.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sat, 2008-03-22 05:46
BrennanBones wrote:
Is it possible to make is so that I don't have to specify a width/height? My videos don't have all the same width and height, and so I'd like the player to become the size of the video it's playing?

I'm using an external player, and a link to a video, both of which are on my website.

You can try to comment out line 856, which is the line that tacks on a width and height for the external flash player. Let me know what happens. At the time I wrote this script, the embedded video players required a width and height to be specified. They didn't seem to do the right thing if I didn't specify the width and height. That is the reason why the module does that. If the embedded players have improved to the point where that is no longer required, that would be good to know. It would be fairly easy to modify the script to have an "auto" setting for width and height that does away with the width and height specification given to the embedded video players, if they can support that.

 
BrennanBones

Joined: 2008-03-22
Posts: 4
Posted: Sat, 2008-03-22 07:34
Quote:
You can try to comment out line 856, which is the line that tacks on a width and height for the external flash player.

I can try to do it and see what happens, but which file am I supposed to comment the line out?

Also, would it be possible to tell me exactly what the line says? All I have to open these fils on my mac is 'TextEdit' (that I know of, anyways)... and I can't see what lines they are...

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sat, 2008-03-22 14:58
BrennanBones wrote:
Quote:
You can try to comment out line 856, which is the line that tacks on a width and height for the external flash player.

I can try to do it and see what happens, but which file am I supposed to comment the line out?

Also, would it be possible to tell me exactly what the line says? All I have to open these fils on my mac is 'TextEdit' (that I know of, anyways)... and I can't see what lines they are...

Here is the additional information you requested that should help. Open the ItemAddEmbedVideo.inc file, and comment out this line for the external flash player which should then look something like this:

/* $description.= 'width="'.$width.'" height="'.$height.'" '; */

However, I did some additional research in the area of width and height, and discovered the problem may not be with the embedded players themselves, but in the "<embed> ... </embed>" HTML tag that is used to embed these players. Unlike images such as GIF and JPEGs, embedded objects do not necessarily have an inherent dimensions. Different browsers render different media types differently, and make different decisions about what to do if the object isn't exactly the height they want. Leaving out the HEIGHT and WIDTH attributes can be problematic. I have run across a few plugins that give various error messages if these attributes are missing. So, you are welcome to try, but you may not get your expected results.

It would be nice if there was an easy way to obtain the dimensions of a video being played, and automatically set that as the height and width of the embedded object. However, with remote video embedding, I haven't found any way to do this. For each of the video sites I support embedding, I can detect what size the video is being played back with on the remote server (by parsing their video page), and I set that as the size to playback the video with in the embedded object in gallery. For .flv files stored remotely or locally, I don't know how to extract the dimensions of those videos in an OS independent fashion so that I can autosize the embedded object. Instead, I ask the user to provide those dimensions.

When the rewrite of the module occurs, and a new embedded object type is created in gallery, it will have width and height attributes that can be changed on a per item basis.

 
BrennanBones

Joined: 2008-03-22
Posts: 4
Posted: Sat, 2008-03-22 16:26

I tried it... it didn't work. It made the video even smaller than the 320x340 than it gave me before. Oh well, I'll just change it in the description whenever I get a different sized video.

 
kiama

Joined: 2003-04-19
Posts: 22
Posted: Mon, 2008-03-24 15:23

This module doesnt work on my Gallery 2.2.4. Add Items leads to a blank page on Firefox. Did the patches as told but nothing shows up.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2008-03-24 15:54
kiama wrote:
This module doesnt work on my Gallery 2.2.4. Add Items leads to a blank page on Firefox. Did the patches as told but nothing shows up.

I think there is something else going on with your installation related to this module. I am running Gallery 2.2.4, and everything is working fine for me with this module. I also know of many others that are doing the same thing. A blank page usually indicates a PHP issue of some kind. If you check your web server error logs, there should be an explanation of the issue you are running into in those log files. I've seen this same type of error when editing my script, and accidentally making a PHP code error that prevents the page from being parsed.

 
nautiboy

Joined: 2007-04-20
Posts: 42
Posted: Mon, 2008-03-24 15:56
kiama wrote:
This module doesnt work on my Gallery 2.2.4. Add Items leads to a blank page on Firefox. Did the patches as told but nothing shows up.

I'm running 2.2.4 and the module works with it. The only thing different I've found with 2.2.4 is that you need to make the GalleryUtilities change for it to work at all, not just so that you can edit it.

I use both firefox and IE and both work fine.

 
dcnc

Joined: 2006-05-30
Posts: 19
Posted: Tue, 2008-03-25 03:15

Any support for the new higher resolution format going to be available?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2008-03-25 03:29
dcnc wrote:
Any support for the new higher resolution format going to be available?

DCNC, can you help me out a little more with what you are asking about? I think you are asking when will the module support a higher resolution format for embedded videos. Is that correct? If so, which service has upgraded their embedded videos to utilize higher resolutions? I do have some "default" sizes hard-coded in the code for the video sizes each remote site is using for google and youtube. If you set the useRemoteSize parameter to true, it can parse out what the video size is on the remote server, and use that instead of the width and height specified by the parameters in the module. However, for youtube and google, I wasn't able to autoparse this information, so I had to hard code it in the module. I wonder if those numbers are now incorrect, and youtube or google has upsized their videos since I set these? Here's what I have them set to today in ItemAddEmbedVideo.inc:

/* We can't extract the server size from google video */
$googleWidth="400";
$googleHeight="326";

/* We can't extract the server size from youtube */
$youtubeWidth="425";
$youtubeHeight="350";

I don't do this for any other video service but youtube and google, as the comment indicates. Have these sizes now changed?

 
dcnc

Joined: 2006-05-30
Posts: 19
Posted: Tue, 2008-03-25 17:56

Sorry - I wasn't very clear and it was late at the time.
I was referring to the new format option on YouTube.

For Example:

You can take any video and add "&fmt=6" to the url and it will playback at a higher resolution.
See my example below:

http://www.youtube.com/watch?v=uGFy-qu7bGg

http://www.youtube.com/watch?v=uGFy-qu7bGg&fmt=6

This is where I read about it:
http://googlesystem.blogspot.com/2008/03/youtube-tests-higher-resolution-videos.html

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-03-26 05:33
dcnc wrote:
Sorry - I wasn't very clear and it was late at the time.
I was referring to the new format option on YouTube.

For Example:

You can take any video and add "&fmt=6" to the url and it will playback at a higher resolution.
See my example below:

http://www.youtube.com/watch?v=uGFy-qu7bGg

http://www.youtube.com/watch?v=uGFy-qu7bGg&fmt=6

This is where I read about it:
http://googlesystem.blogspot.com/2008/03/youtube-tests-higher-resolution-videos.html

DCNC, that is very interesting indeed. It sounds like they support this for a small number of videos. So, nothing wide spread yet, nor available for the clips a home user would upload. It will be interesting to see how they continue to roll this out for a wider spread of videos. I think the simplest thing for me to support is the addition of the "&fmt" option on the end of a youtube URL being added to a gallery album via the "Add Item" link for the "Embed Video" module. Right now, if you try to add that to the end of a URL you are embedding, it won't work. The page youtube hands back should contain embedded video code that takes advantage of that extra "&fmt" option if the video on youtube has those higher resolutions available. If not, the embed code they hand back will look like they ignored it for the videos that do not have the higher resolutions available, and you'll get the same embedded code you get today when adding such videos.

 
dcnc

Joined: 2006-05-30
Posts: 19
Posted: Wed, 2008-03-26 14:20
Quote:
So, nothing wide spread yet, nor available for the clips a home user would upload.

No - any video you now upload you can do this with.
The video I had as an example was me with my son that I uploaded on Monday of this week.

The option to add this to the URL would be great.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-03-26 23:28
dcnc wrote:
Quote:
So, nothing wide spread yet, nor available for the clips a home user would upload.

No - any video you now upload you can do this with.
The video I had as an example was me with my son that I uploaded on Monday of this week.

The option to add this to the URL would be great.

That is excellent news indeed! However, if you look at the embed code they provide on your video page, it doesn't look any different than the embed code they provide for a non-high res version of the video, and it embeds as a low res version of it. But, appending the following characters onto the end of the embed URL they provide on their site seems to make it work: "&ap=%2526fmt%3D6". So, my initial thought is to parse the fmt=X option off the end of the URL you provide to the module, and modify the embedded code they provide to add that to the end of the video URL in the embed tag. The width and height difference would be nice to pull from youtube, but they don't give it to me in a parseable manner. I can hardcode the new height and widths based on the fmt=X option given, so that if the useRemoteSize option in the module is set to true, it will also know how to take advantage of that larger video size in the embedded object.

 
aharami

Joined: 2007-04-16
Posts: 47
Posted: Fri, 2008-04-04 20:39

apippin, did you come up with a way to embed the higher quality youtube videos? There are actually two formats avaliable, &fmt=6 and &fmt=18

Here is an youtube video and link explaining the differences
http://www.youtube.com/watch?v=VT11GGD7qlI
http://blog.jimmyr.com/High_Quality_on_Youtube_11_2008.php

It would be awesome if I should embed the high quality version of the videos into my gallery

and here is another link I found which has a bit about embedding
http://howto.wired.com/wiki/Watch_Higher_Quality_YouTube_Videos

Quote:
Just adding the fmt=18 bit to the URLs in a video's regular embed code won't work. You have to add a couple of small pieces elsewhere, too. Here are the changes to make:

<object width="480" height="397"><param name="movie" value="(VIDEO EMBED URL)&ap=%2526fmt%3D18"></param><param name="wmode" value="window"></param><embed src="(VIDEO EMBED URL)&ap=%2526fmt%3D18" type="application/x-shockwave-flash" wmode="window" width="480" height="397"></embed></object>

 
sss123

Joined: 2008-04-07
Posts: 1
Posted: Mon, 2008-04-07 01:48

I have change the code but the dailymotion upload doesn't work again... it shows me just a picture and the title of the video and 220... when i select edit photo on the description shows me 220<br>

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2008-04-15 04:58
aharami wrote:
apippin, did you come up with a way to embed the higher quality youtube videos? There are actually two formats avaliable, &fmt=6 and &fmt=18

Here is an youtube video and link explaining the differences
http://www.youtube.com/watch?v=VT11GGD7qlI
http://blog.jimmyr.com/High_Quality_on_Youtube_11_2008.php

It would be awesome if I should embed the high quality version of the videos into my gallery

and here is another link I found which has a bit about embedding
http://howto.wired.com/wiki/Watch_Higher_Quality_YouTube_Videos

Thanks for the great information. I appreciate your examples and link to the other site. I'm still thinking of the best way to enable this feature in the embedvideo module. Right now, I'm leaning towards allowing the user to specify a youtube URL with those extra characters on the end (&fmt=6 or 18) when adding an embedvideo, and then making the embedvideo module perform the extra work of changing the embed code to allow it to be played back properly in the high res format. I can't think of a better way to do this now, so I'll work on getting that solution in place by the end of the week.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2008-04-15 05:03
sss123 wrote:
I have change the code but the dailymotion upload doesn't work again... it shows me just a picture and the title of the video and 220... when i select edit photo on the description shows me 220<br>

Well, the good news is that I've also reproduced this problem on my site. I don't have it root caused yet, but I will look into it later this week. I appreciate you bringing this to my attention. I don't embed videos on a regular basis from all the sites that the embedvideo module supports. If the video sites change something that requires the parsing code to be modified, I will probably be the last to know! Having users notify me when things stop working, is greatly appreciated.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2008-04-18 04:10

I've just released a new version of embedvideo, version 1.0.9, and have attached it here.

Here are the release notes for 1.0.9:
- Added support for high quality youtube video urls (&fmt=6 and &fmt=18 on the end of the URLs for example)
- Updated dailymotion parsing algorithms
- Added support for adding vimeo.com embedded videos
- Added support for the new youtube API (GDATA), deprecating the youtubeDevId variable

You no longer need a youtubeDevId with this version of the module. I've switched the old youtube API calls over to the new youtube GDATA API. You can query video metadata without a developer ID now using this API. When you embed youtube videos, you will be using the API calls now instead of parsing the webpage for that information. This change also exposes the URL for their new higher resolution thumbnails, which the module now picks up on as well. Enjoy...

 
aharami

Joined: 2007-04-16
Posts: 47
Posted: Thu, 2008-04-24 04:59

apippin, thanks for working on this, but it doesnt seem to be working for me. I upgraded to your 1_0_9 version and can embed &fmt=18 vids fine w/o getting the error page, but it doesnt actually embed the high quality version of the video. Is there something Im missing?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Thu, 2008-04-24 05:18
aharami wrote:
apippin, thanks for working on this, but it doesnt seem to be working for me. I upgraded to your 1_0_9 version and can embed &fmt=18 vids fine w/o getting the error page, but it doesnt actually embed the high quality version of the video. Is there something Im missing?

Hmm. Something isn't right. I embedded numerous high quality videos from youtube prior to releasing the code. How do you know it's not embedding the high quality version of the video? If you run the embedvideo module with debug turned on, you will see how it is parsing your &fmt=18 option. It essentially takes that option, and converts it into a few extra options placed at the end of the embed video code like this:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/uGFy-qu7bGg&ap=%2526fmt%3D18"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/uGFy-qu7bGg&ap=%2526fmt%3D18&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

As you can see here, the &fmt=18 is converted slightly, and added to the end of the "embed src". If you edit the item that you added, what does your description field look like? Is it adding this option properly? If it is, then the embedvideo module is doing what it can to embed the high quality version of the video. Not all videos have a high quality version available to embed (older ones for example). Can you pinpoint where the problem is? I'm hoping this extra information will help you track it down.

 
Roby The Hood

Joined: 2007-08-06
Posts: 5
Posted: Tue, 2008-04-29 14:20

Sorry, my English is very BUD,
i need help for my Gallery, to try youtube flv, i have this error:

Error (ERROR_TOOLKIT_FAILURE)
in modules\imagemagick\classes\ImageMagickToolkit.class at line 620 (gallerycoreapi::error)
in modules\imagemagick\classes\ImageMagickToolkit.class at line 363 (imagemagicktoolkit::_transformimage)
in modules\embedvideo\ItemAddEmbedVideo.inc at line 1171 (imagemagicktoolkit::performoperation)
in modules\core\ItemAdd.inc at line 84 (itemaddembedvideo::handlerequest)
in main.php at line 231 (itemaddcontroller::handlerequest)
in main.php at line 94
in main.php at line 83

System Information
Gallery version 2.2.3
PHP version 4.4.7 apache2handler
Webserver Apache/2.0.55 (Win32) PHP/4.4.7
Database mysql 3.23.49-nt
Toolkits ImageMagick, Thumbnail
Operating system Windows NT WindowsXP
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648)

thanx

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-04-30 02:41
Roby The Hood wrote:
Sorry, my English is very BUD,
i need help for my Gallery, to try youtube flv, i have this error:
[b]Error (ERROR_TOOLKIT_FAILURE)
in modules\imagemagick\classes\ImageMagickToolkit.class at line 620 (gallerycoreapi::error)
in modules\imagemagick\classes\ImageMagickToolkit.class at line 363 (imagemagicktoolkit::_transformimage)
in modules\embedvideo\ItemAddEmbedVideo.inc at line 1171

It appears your gallery installation is failing when the embedvideo module tries to apply a watermark to the thumbnail of your video image. I don't know why the imagemagick class is failing. You can try using another Graphics Toolkit, and lowering the priority of the Image Magick toolkit. Or, you can simply turn off this thumbnail feature of the embedvideo module by setting this variable in the configuration section for this tool under Admin:

watermarkVideos=false

Good luck!

 
Roby The Hood

Joined: 2007-08-06
Posts: 5
Posted: Wed, 2008-04-30 20:48
Quote:
Or, you can simply turn off this thumbnail feature of the embedvideo module by setting this variable in the configuration section for this tool under Admin:
watermarkVideos=false

Thank you very much, now work perfectly...

 
skunker

Joined: 2005-02-04
Posts: 344
Posted: Sat, 2008-05-03 16:28

Does anyone know how to disable the thumbnail icon that appears on the photo.tpl? I just want the video screen to appear, not the thumbnail. I looked in the embedvideo template files and didn't see this anywhere.

 
skunker

Joined: 2005-02-04
Posts: 344
Posted: Mon, 2008-05-05 02:47

I figured it out, thanks.

 
eyalw

Joined: 2008-02-20
Posts: 5
Posted: Mon, 2008-05-05 07:00

Hey,
When I try to embed a video from google videos I get this error

Quote:
Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url: -
in modules/embedvideo/ItemAddEmbedVideo.inc at line 941 (gallerycoreapi::error)
in modules/core/ItemAdd.inc at line 84 (itemaddembedvideo::handlerequest)
in main.php at line 231 (itemaddcontroller::handlerequest)
in main.php at line 94
in main.php at line 83

I used google video before. I don't know what happend.
thanx for your help.

 
dcnc

Joined: 2006-05-30
Posts: 19
Posted: Wed, 2008-05-21 17:30

Can you please share how you did this?

I am trying to do this as well and I dug through the .tpl files with no luck.

If it matters I use YouTube

 
jeclic

Joined: 2007-09-14
Posts: 48
Posted: Wed, 2008-05-28 14:35

eyalw : I've exactly the same error with the google video.
"Unable to copy thumbnail from url: -".
I used Gallery since a long time and the embed module too.
Today I want to embed a video and I've this message.
I try with Youtube, no problem ! The video display OK.
I upgrade the 1.0.9 version and it's the same problem, Google is not OK.
Ideas and help ?....

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Thu, 2008-05-29 03:02
jeclic wrote:
eyalw : I've exactly the same error with the google video.
"Unable to copy thumbnail from url: -".
I used Gallery since a long time and the embed module too.
Today I want to embed a video and I've this message.
I try with Youtube, no problem ! The video display OK.
I upgrade the 1.0.9 version and it's the same problem, Google is not OK.
Ideas and help ?....

Sorry for the delay in getting back to you and the previous post about this problem. Parsing thumbnails from Google has never been a straightforward thing to do. Around the first of May, they changed the URL style of the thumbnails to the videos. The Embed Video module will need to be updated to handle this new format. Once that fix is in place, you should be able to embed google videos again. I'm working on the fix now.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Thu, 2008-05-29 04:10

I've just released a new version of embedvideo, version 1.1.0, and have attached it here.

Here are the release notes for 1.1.0:
- Fixed google video thumbnail parsing algorithm.
- Added support for generic sites embed video content (any webpage with an '<object ... <embed ...' style video on its page).

 
jeclic

Joined: 2007-09-14
Posts: 48
Posted: Thu, 2008-05-29 08:17

Thanks a lot "apipin", it's OK now !
Good job !

 
Vonkoba

Joined: 2008-06-20
Posts: 22
Posted: Fri, 2008-06-20 03:10

So I am getting that seemingly common error:
Error (ERROR_BAD_PATH) : Unable to get video information at url: http://www.youtube... HTTP/1.0 404 Not Found

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 223 (GalleryCoreApi::error)
* in modules/core/ItemAdd.inc at line 84 (ItemAddEmbedVideo::handleRequest)
* in main.php at line 231 (ItemAddController::handleRequest)
* in main.php at line 94
* in main.php at line 83

System Information
Gallery version 2.2.4
PHP version 5.2.6 cgi
Webserver Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database mysqlt 5.0.51a-community
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux web01.brancorp.com 2.6.9-67.0.1.ELsmp #1 SMP Wed Dec 19 16:01:12 EST 2007 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0

I have the new 1.1.0 version, and don't know if I have to put that developer ID thing or not. By the way (just to make sure I am doing it right), to get the developer ID I went to http://code.google.com/apis/youtube/dashboard/, then to "register new product". Here I added whatever as "product name" and whatever as a description, and in the "product website" I added the link to the youtube video I am posting. From doing this I get a "Client ID" that starts with ytapi- etc and a "Developer key" which has like 30 characters between letters and numbers. Is the client ID what you guys call the developer ID? And in any case, is that where the error is? I thought apippin said that ID didn't matter any more with the new version. Does that still hold?
Thanks a million for the help!

 
dcnc

Joined: 2006-05-30
Posts: 19
Posted: Wed, 2008-07-02 13:00
Quote:
So I am getting that seemingly common error:
Error (ERROR_BAD_PATH) : Unable to get video information at url: http://www.youtube... HTTP/1.0 404 Not Found

Having the same issue.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-07-02 14:56
Vonkoba wrote:
So I am getting that seemingly common error:
[i]Error (ERROR_BAD_PATH) : Unable to get video information at url: http://www.youtube... HTTP/1.0 404 Not Found

Sorry for the delay in getting back to you on this. Can you send me the full url path you are trying to add? I haven't been able to reproduce this error on my end. That URL holds the key. If you paste that url: into a web browser, do you get an HTTP error Not Found? If you do, then that is why the embedvideo module does too. If you don't, then we need to see why the EmbedVideo module call to GalleryCoreApi::fetchWebPage is failing.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-07-02 14:57
dcnc wrote:
Quote:
So I am getting that seemingly common error:
Error (ERROR_BAD_PATH) : Unable to get video information at url: http://www.youtube... HTTP/1.0 404 Not Found

Having the same issue.

DCNC, can you send me the URL shown in the error message that it is trying to fetch? Also, send me the link to the youtube URL you gave to the embedvideo module when adding the video.

 
dcnc

Joined: 2006-05-30
Posts: 19
Posted: Thu, 2008-07-03 02:41

Sure no problem - Here is the URL in the error message and the link: http://www.youtube.com/watch?v=SqW-WGjmUsw

Quote:
Error Detail -
Error (ERROR_BAD_PATH) : Unable to get video information at url: http://www.youtube.com/watch?v=SqW-WGjmUsw - HTTP/1.0 404 Not Found

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 223 (GalleryCoreApi::error)
* in modules/core/ItemAdd.inc at line 84 (ItemAddEmbedVideo::handleRequest)
* in main.php at line 231 (ItemAddController::handleRequest)
* in main.php at line 94
* in main.php at line 83

System Information
Gallery version 2.2.4
PHP version 5.2.6 cgi-fcgi
Webserver Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database mysqlt 5.0.45-community-log
Toolkits SquareThumb, ImageMagick, Thumbnail
Operating system Linux box378.bluehost.com 2.6.22-19_1.BHsmp #1 SMP Thu May 22 08:08:32 MDT 2008 x86_64
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0