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

magnar

Joined: 2008-05-16
Posts: 13
Posted: Fri, 2008-10-10 08:41

I had problems generating thumbnails... But it works now :)

Just installed the latest version...

 
n0fragger

Joined: 2008-09-23
Posts: 3
Posted: Mon, 2008-10-13 19:23

Hi People,

When I add an flv from local Webspace, I don't get to see a flash player.

I have made a screenshot, I atached it below.
I also attached the debug output.

Can somebody help me with this.

Thanks.

 
Carpcatcher

Joined: 2004-02-02
Posts: 92
Posted: Sat, 2008-11-01 13:20
Quote:
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

Still no other solution?

I Don't understand what I need to change

I'm like the module! but still don't use it because the mess that the tumbnail creates in Carbon Theme. (sorry : )

 
archive26
archive26's picture

Joined: 2008-01-16
Posts: 10
Posted: Sat, 2008-10-25 12:41

Hello,
I' have a problem since i've upgraded Gallery2 from 2.2.4 to 2.3. My embed videos are not visible anymore. Any idea?
Waiting for your advice. Tks

EDIT : Rahhh , of course i forgot patching galleryutilities class, line 859... Everything works properly now.

 
Astor

Joined: 2005-12-15
Posts: 154
Posted: Wed, 2008-10-29 14:20
archive26 wrote:
Hello,
I' have a problem since i've upgraded Gallery2 from 2.2.4 to 2.3. My embed videos are not visible anymore. Any idea?
Waiting for your advice. Tks

EDIT : Rahhh , of course i forgot patching galleryutilities class, line 859... Everything works properly now.

I have upgraded to 2.3 and i patch galleryutilities.class line 859 but my embed videos are not visible.

Any solutions?

EDIT : In gallery2 2.2.4 i have insert file modified into folder 'local' . In Gallery 2.3 i have modified file galleryutilities.class directly and now work.

 
cruell

Joined: 2006-03-29
Posts: 3
Posted: Thu, 2008-10-30 18:17

Hi, I need help.
I try to mount this nice module but never go.
I just finish to upgrade to Gallery 2.3, upgrade embedded video module to 1.1.2 and modify GalleryUser.class

I don't know what is the problem exactly, I not understand.
i can add an object, i can choose folder "embedded video", I can see the right page for to insert the link , i can insert the link, but nothing else. The next page is blocked.
I subscribe debug mode and this is what I can see:

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

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

Youtube URL Parsing Results
video_id: uyu03wxl6tg
extra_embed_params: 
gdata feed: http://gdata.youtube.com/feeds/api/videos/uyu03wxl6tg

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

Youtube XML Dump
http://gdata.youtube.com/feeds/api/videos/uyu03wxl6tg2008-06-23T14:10:57.000Z2008-09-07T08:36:13.000Z1° incontro 2cv centroitalia castiglione del lago 8 dic 2007ruga25http://gdata.youtube.com/feeds/api/users/ruga252cv castiglione1° incontro 2cv centroitalia castiglione del lago 8 dic 20072cv, castiglione, citroenTravel
--------------------------------------------------------------------------------
title: 2cv castiglione
summary: 1° incontro 2cv centroitalia castiglione del lago 8 dic 2007
thumbnail: http://i.ytimg.com/vi/uyu03wxl6tg/0.jpg

Item Parameters
url: http://it.youtube.com/watch?v=uyu03wxl6tg 
title: 2cv castiglione 
thumbnailUrl: http://i.ytimg.com/vi/uyu03wxl6tg/0.jpg 
 
summary: 
1° incontro 2cv centroitalia castiglione del lago 8 dic 2007

description: 

1° incontro 2cv centroitalia castiglione del lago 8 dic 2007

thumbnail: /web/htdocs/www.iraffreddatiadaria.it/home/gallery2/g2data/tmp/adddYnHvn.jpg 
mimeType: image/jpeg 
fileName: 2cv_castiglione 
width: 320 
height: 240 

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

Thumbnail Resize
Checking to see if a toolkit that can resize images was found. 
Found thumbnail size in album preferences: 200 
Using ratio from original thumbnail of 1,25. Resizing thumbnail image to 250 x 200: /web/htdocs/www.iraffreddatiadaria.it/home/gallery2/g2data/tmp/adddYnHvn.jpg -> /web/htdocs/www.iraffreddatiadaria.it/home/gallery2/g2data/tmp/addwKUWfJ.jpg 

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

Help!!!!!

 
cruell

Joined: 2006-03-29
Posts: 3
Posted: Thu, 2008-10-30 18:48

I forgot to tell that I'm using Gallery integration for Drupal.
So, I made an other test and when I try to insert Youtube-link with Gallery stand-alone all is right.
When I try to insert youtube-link using Gallery inside Drupal I have that "error".

Nobody can help me?

 
Carpcatcher

Joined: 2004-02-02
Posts: 92
Posted: Sat, 2008-11-01 13:20
Carpcatcher wrote:
Quote:
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

Still no other solution?

I Don't understand what I need to change

I'm like the module! but still don't use it because the mess that the tumbnail creates in Carbon Theme. (sorry : )

no one? :/

 
geetha_sumant

Joined: 2006-06-13
Posts: 14
Posted: Tue, 2008-11-18 13:28

Hi,

I am trying to upload my videos using embVideo. But I am not trying to use youtube or yahoo video. I converted my video to flv and then uploaded it to my server and was pointing to that. Is that not how it is supposed to work. I don;'t want to register in youtube. I am worried they would be public. Please help. I get the following error.

Database Error

An error has occurred while interacting with the database.
The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.

Database Error

An error has occurred while interacting with the database.
The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.

Back to the Gallery
Error Detail -
Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url: true -

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 1047 (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.6
PHP version 5.2.6 cgi
Webserver Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database mysqlt 5.0.67-community
Toolkits Thumbnail, SquareThumb, Gd
Operating system Linux server5.hostingplex.com 2.6.18-92.1.10.el5PAE #1 SMP Tue Aug 5 08:14:05 EDT 2008 i686
Browser Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

 
madrocketscientist

Joined: 2008-12-12
Posts: 3
Posted: Fri, 2008-12-12 04:05

I am having trouble adding google videos, it looks like a thumbnail extraction problem (there are similar posts in this thread, but nothing that clearly defines the solution). I have a half-dozen google videos that I successfully added with this module about 6 months ago, so I just assumed something had changed on Google. I upgraded Gallery2 to version 2.3 and reinstalled the embedvideo (1.1.2) module from scratch (and edited the appropriate .class file). My pre-existing videos still work, I can add youtube videos fine, but I get this error when trying to add a google video (http://video.google.com/videoplay?docid=-7798956479515403469)

Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url: -

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 1047 (GalleryCoreApi::error)
* in modules/core/ItemAdd.inc at line 159 (ItemAddEmbedVideo::handleRequest)
* in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
* in modules/core/classes/GalleryTemplateAdapter.class at line 1092
* in /var/local/g2data/smarty/templates_c/%%626616196/carbon/%%2E^2E1^2E11E2E2%%theme.tpl.php at line 141 (GalleryTemplateAdapter::trailer)
* in lib/smarty/Smarty.class.php at line 1255
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
* in main.php at line 506 (GalleryTemplate::display)
* in main.php at line 104
* in main.php at line 88

Continue...
Variable Parameters
debugOutput=true
useInternalFlvPlayer=true
youtubeShowRelated=false
width=640
height=480
externalFlvPlayer=
externalFlvPlayerVars=
flvThumbnail=
useRemoteSize=false
autoStart=false
watermarkVideos=false
watermarkImage=
watermarkAlignment=left
wordwrapSummary=0
wordwrapDescription=0
(html file of above output zipped and attached)

 
iLive

Joined: 2008-05-11
Posts: 21
Posted: Mon, 2008-12-15 17:12

Any one is having trouble with Google videos?

I can't play videos from video.google.com ?! any suggestion or fix?

 
lakshman.veti

Joined: 2008-12-02
Posts: 1
Posted: Tue, 2009-02-17 10:47

I have a simple answer for you. Just add "www." to the front of your url so you end up embedding "http://www.vimeo.com/1709936". My URL pattern matching is pretty strict with the domain. It doesn't have to be, but I set it up that way. I'll loosen the vimeo pattern to accept versions without the "www.". However, for now, just add that, and you'll be good to go.

 
jcdisciple
jcdisciple's picture

Joined: 2008-08-21
Posts: 9
Posted: Tue, 2009-01-27 04:14

I seem to be having a unique issue with my copy of EmbedVideo (downloaded installed last week (1-15-2009) with Joomla 1.5.8)

When tried to insert Google Video link, I get this error. Its happen both locally on my development server and on my production server.
________________________________________________________________

Error (ERROR_STORAGE_FAILURE) : Unable to retrieve thumbnail dimensions for: E:\webs\gallerydata\tmp\add390.tmp.jpg

* in modules\embedvideo\ItemAddEmbedVideo.inc at line 1120 (GalleryCoreApi::error)
* in modules\core\ItemAdd.inc at line 159 (ItemAddEmbedVideo::handleRequest)
* in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
* in modules\core\classes\GalleryTemplateAdapter.class at line 1092
* in E:\webs\gallerydata\smarty\templates_c\%%4172277918\matrix\%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (GalleryTemplateAdapter::trailer)
* in lib\smarty\Smarty.class.php at line 1255
* in modules\core\classes\GallerySmarty.class at line 61 (Smarty::fetch)
* in modules\core\classes\GalleryTemplate.class at line 241 (GallerySmarty::fetch)
* in main.php at line 506 (GalleryTemplate::display)
* in main.php at line 104
* in modules\core\classes\GalleryEmbed.class at line 189
* in E:\webs\BadAssRidez.com\components\com_g2bridge\models\gallery.php at line 68 (GalleryEmbed::handleRequest)
* in E:\webs\BadAssRidez.com\libraries\joomla\application\component\view.php at line 364 (G2BridgeModelgallery::getG2)
* in E:\webs\BadAssRidez.com\components\com_g2bridge\views\gallery\view.html.php at line 29 (JView::get)
* in E:\webs\BadAssRidez.com\libraries\joomla\application\component\controller.php at line 310 (G2BridgeViewgallery::display)
* in E:\webs\BadAssRidez.com\components\com_g2bridge\controller.php at line 19 (JController::display)
* in E:\webs\BadAssRidez.com\libraries\joomla\application\component\controller.php at line 236 (G2BridgeController::display)
* in E:\webs\BadAssRidez.com\components\com_g2bridge\g2bridge.php at line 20 (JController::execute)
* in E:\webs\BadAssRidez.com\libraries\joomla\application\component\helper.php at line 162
* in E:\webs\BadAssRidez.com\includes\application.php at line 124 (JComponentHelper::renderComponent)
* in E:\webs\BadAssRidez.com\index.php at line 68 (JSite::dispatch)

Continue...
Variable Parameters
debugOutput=true
useInternalFlvPlayer=true
youtubeShowRelated=false
width=320
height=240
externalFlvPlayer=
externalFlvPlayerVars=
flvThumbnail=E:\webs\gallerydata\tmp\Sunset_tn.jpg
useRemoteSize=true
autoStart=false
watermarkVideos=true
watermarkImage=
watermarkAlignment=left
wordwrapSummary=0
wordwrapDescription=0
Item Parameters
url: http://video.google.com/videoplay?docid=-7713316088025915387
title: Camaro SS 1967
thumbnailUrl:

summary:

description:

thumbnail: E:\webs\gallerydata\tmp\add390.tmp.jpg
mimeType: image/jpeg
fileName: Camaro_SS_1967
width: 400
height: 326

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sun, 2009-02-01 07:19

Greetings all. I think I'm back online now. I've had some major server issues at home over the past month or so, and between that, work, and family time, it has been hard to look into the embed video issues that have cropped up during this time. I will start to dig into these issues tomorrow, and will keep you posted on what I find related to getting these issues resolved and getting the embedvideo up and running again. Thanks for your patience.

 
jcdisciple
jcdisciple's picture

Joined: 2008-08-21
Posts: 9
Posted: Sun, 2009-02-01 17:57

Welcome back, Alan, and Happy New Year! Looking forward to bigger and better things. Let me know if you need a tester under my environment ( locally XP Pro, IIS 5.1, PHP 5.4, MySQL )

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sun, 2009-02-01 20:45

I've fixed the google video thumbnail parsing issue. It's quite common for videos to stop working on import from time to time. If they do, just let me know via this forum. I'll keep a better eye on your requests. As various video websites change their page formats/code, the parser in embed video will need to be updated to continue to strip the video content off those sites successfully. I won't do a new release until tonight though. I want to look into some other issues folks have reported, and check that each video site I support can still be imported with embedvideo. However, for those of you that want to pull the bleeding edge code from me, you always can via GIT. I've setup a git repository you can pull from: http://git.pippins.net/embedvideo/.git/. For those without GIT, well, you'll have to wait for the release.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 02:04

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

Here are the release notes for 1.1.3:
- Fixed google video thumbnail parsing algorithm.
- Added code to remove trailing whitespace from urls.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 02:06
jcdisciple wrote:
I seem to be having a unique issue with my copy of EmbedVideo (downloaded installed last week (1-15-2009) with Joomla 1.5.8)

When tried to insert Google Video link, I get this error. Its happen both locally on my development server and on my production server.
________________________________________________________________

Error (ERROR_STORAGE_FAILURE) : Unable to retrieve thumbnail dimensions for: E:\webs\gallerydata\tmp\add390.tmp.jpg

I can import your video now using the new version of embedvideo I just released (1.1.3). Give it a shot...

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 02:11
lakshman.veti wrote:
Hi apippin,

My Embedvideo pugin was working fine in my previous server, Now i've moved to different server, Eversince i'm getting the following error. Could you please tell me might be wrong?

Memory used: 10747436, total: 128M

Error (ERROR_BAD_PATH) : Unable to get video information at url: http://www.metacafe.com/watch/sy-25142361/jamiroquai_virtual_insanity_official_music_video/ - -

I can import your video now using the new version of embedvideo I just released (1.1.3). The error you are getting occurs when embedvideo tries to make a GalleryCoreApi::fetchWebPage() call. If you can browse to the URL, and get a valid HTML page, then the call to the gallery API method should work as well. That error means the gallery API call failed for some reason. Give it a shot...

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 02:11
iLive wrote:
Any one is having trouble with Google videos?

I can't play videos from video.google.com ?! any suggestion or fix?

I can import and play google videos now using the new version of embedvideo I just released (1.1.3). Give it a shot...

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 02:12
madrocketscientist wrote:
I am having trouble adding google videos, it looks like a thumbnail extraction problem (there are similar posts in this thread, but nothing that clearly defines the solution). I have a half-dozen google videos that I successfully added with this module about 6 months ago, so I just assumed something had changed on Google. I upgraded Gallery2 to version 2.3 and reinstalled the embedvideo (1.1.2) module from scratch (and edited the appropriate .class file). My pre-existing videos still work, I can add youtube videos fine, but I get this error when trying to add a google video (http://video.google.com/videoplay?docid=-7798956479515403469)

Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url: -

I can import your video now using the new version of embedvideo I just released (1.1.3). Give it a shot...

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 02:15
Carpcatcher wrote:
lution?

I Don't understand what I need to change

I'm like the module! but still don't use it because the mess that the tumbnail creates in Carbon Theme. (sorry : )

Sorry, there is no other solution until this module is rewritten to plug more correctly into the gallery framework instead of using the description field "hack" to embed the video.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 02:16
cruell wrote:
Hi, I need help.
I try to mount this nice module but never go.
I just finish to upgrade to Gallery 2.3, upgrade embedded video module to 1.1.2 and modify GalleryUser.class

I don't know what is the problem exactly, I not understand.
i can add an object, i can choose folder "embedded video", I can see the right page for to insert the link , i can insert the link, but nothing else. The next page is blocked.
I subscribe debug mode and this is what I can see:

I can import your video now using the new version of embedvideo I just released (1.1.3). Give it a shot...

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 02:21
n0fragger wrote:
Hi People,

When I add an flv from local Webspace, I don't get to see a flash player.

I have made a screenshot, I atached it below.
I also attached the debug output.

Can somebody help me with this.

Thanks.

I see the problem you are having. The embedvideo module tries to use the gallery internal flv player by default. For some reason, that internal player is unable to play your .flv file (that flv player shows up, and you can click the play button, but the video doesn't appear to be working). You can try to use an external FLV player and supply it with your own set of options. There are other flv players out there you can point the embedvideo script to use in case they can play your flv file better than the internal flv player that gallery has. I'm not sure why the gallery flv player is having issues with your video.

 
jcdisciple
jcdisciple's picture

Joined: 2008-08-21
Posts: 9
Posted: Mon, 2009-02-02 07:07

I just installed a fresh copy of Gallery and Embed Video - Setup successful.

Now when I tried to embed any Video link:

http://video.google.com/videoplay?docid=-7713316088025915387
http://www.youtube.com/watch?v=HKgLYssvdJY

Error (ERROR_TOOLKIT_FAILURE, ERROR_PLATFORM_FAILURE)

* in modules\gd\classes\GdFunctionality.class at line 213 (GalleryCoreApi::error)
* in modules\gd\classes\GdFunctionality.class at line 273 (GdFunctionality::checkResource)
* in modules\gd\classes\GdToolkit.class at line 471 (GdFunctionality::imageCreateFromPng)
* in modules\gd\classes\GdToolkit.class at line 362 (GdToolkit::_getImageResource)
* in modules\embedvideo\ItemAddEmbedVideo.inc at line 1249 (GdToolkit::performOperation)
* in modules\core\ItemAdd.inc at line 159 (ItemAddEmbedVideo::handleRequest)
* in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
* in modules\core\classes\GalleryTemplateAdapter.class at line 1092
* in E:\webs\gallerydata\smarty\templates_c\%%4172277918\matrix\%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (GalleryTemplateAdapter::trailer)
* in lib\smarty\Smarty.class.php at line 1255
* in modules\core\classes\GallerySmarty.class at line 61 (Smarty::fetch)
* in modules\core\classes\GalleryTemplate.class at line 241 (GallerySmarty::fetch)
* in main.php at line 506 (GalleryTemplate::display)
* in main.php at line 104
* in main.php at line 88

SO, I switched the Priority order in the Toolkit to Imagemagick over GD:

Error (ERROR_TOOLKIT_FAILURE)

* in modules\imagemagick\classes\ImageMagickToolkit.class at line 638 (GalleryCoreApi::error)
* in modules\imagemagick\classes\ImageMagickToolkit.class at line 363 (ImageMagickToolkit::_transformImage)
* in modules\embedvideo\ItemAddEmbedVideo.inc at line 1249 (ImageMagickToolkit::performOperation)
* in modules\core\ItemAdd.inc at line 159 (ItemAddEmbedVideo::handleRequest)
* in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
* in modules\core\classes\GalleryTemplateAdapter.class at line 1092
* in E:\webs\gallerydata\smarty\templates_c\%%4172277918\matrix\%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (GalleryTemplateAdapter::trailer)
* in lib\smarty\Smarty.class.php at line 1255
* in modules\core\classes\GallerySmarty.class at line 61 (Smarty::fetch)
* in modules\core\classes\GalleryTemplate.class at line 241 (GallerySmarty::fetch)
* in main.php at line 506 (GalleryTemplate::display)
* in main.php at line 104
* in main.php at line 88

Thanks, Allan. Can I buy you and your family dinner?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 14:14
jcdisciple wrote:
I just installed a fresh copy of Gallery and Embed Video - Setup successful.

Now when I tried to embed any Video link:

http://video.google.com/videoplay?docid=-7713316088025915387
http://www.youtube.com/watch?v=HKgLYssvdJY

Error (ERROR_TOOLKIT_FAILURE, ERROR_PLATFORM_FAILURE)

The embedvideo module is trying to apply a watermark to the thumbnail when it failed. To do this, it relies on a graphics toolkit to be installed in your gallery that supports the watermark feature. I have GD and ImageMagick installed, and they both seem to work just fine with this. The embedvideo module relies on the "composite" operation of the toolkit to work. The error you are getting is coming from gallery itself. I'm not sure what it means, or what gallery is upset about. You can try another graphics toolkit (increase the toolkit priority of another toolkit under the admin options of gallery to see if it helps or not). You can look through the other gallery forums to see what they have to say about this error, or you can look through the source code in the gallery codebase to see what it was trying to do, and what went wrong. Or (the simple answer) you can simply turn off the watermarking feature in embedvideo. To do that, simply set the watermarkVideos variable to false. And what about dinner... Wouldn't that be nice?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-02-02 20:51
jcdisciple wrote:
I just installed a fresh copy of Gallery and Embed Video - Setup successful.

Now when I tried to embed any Video link:

http://video.google.com/videoplay?docid=-7713316088025915387
http://www.youtube.com/watch?v=HKgLYssvdJY

Error (ERROR_TOOLKIT_FAILURE, ERROR_PLATFORM_FAILURE)

I took a look at your site configuration. You had this variable set "watermarkVideos=true", but you need this set instead "watermarkVideos=false". After making that fix, the toolkit is no longer required to add the video. The only thing you are missing is that "filmstrip" graphic down the side of your thumbnail in your gallery album that indicates it is a video. For some reason, your toolkits don't want to work right to do this. First off, the GD toolkit had the highest priority, and it couldn't do what embedvideo wanted it to do. I made ImageMagick have the highest priority, and I think it gets closer. For some reason, neither gd or imagemagick seem to work in creating the watermark for you. I have "NetPBM" installed on my gallery installation, and use that as the highest priority toolkit. You can try to install this under Windows and see if it works for you. Go to your plugin page, click on configure on the NetPBM plugin. If you can find the files for windows to install, and give it a path to them, and you can click the test settings button. If it works, you can make that your highest priority toolkit, and try the watermark stuff again by removing the "watermarkVideos=false" variable setting and adding the "watermarkVideos=true" variable setting instead. See how that works for you.

 
Carpcatcher

Joined: 2004-02-02
Posts: 92
Posted: Sun, 2009-02-15 19:16

oke I understand, I'm using the Carbon Theme,
can you help me with it?

Qoute: try replacing your photo.tpl file with this one:
http://gallery.menalto.com/files/photo.tpl__0.txt

So I need to replace this txt file with my photo.tpl ?
And I don't get in trouble with other Photo albums?

Thanks in advance

 
ddimick

Joined: 2009-03-02
Posts: 3
Posted: Mon, 2009-03-02 17:23

I having some trouble using this module. Reading this thread it looks like some other folks might have experienced the same thing but I didn't come across any resolutions. I am using 1.1.3 but this error also occurred with 1.1.0. Any help would be appreciated and a debug is attached.

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

    * in modules/embedvideo/ItemAddEmbedVideo.inc at line 229 (GalleryCoreApi::error)
    * in modules/core/ItemAdd.inc at line 159 (ItemAddEmbedVideo::handleRequest)
    * in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
    * in modules/core/classes/GalleryTemplateAdapter.class at line 1092
    * in /var/lib/gallery2/g2data/smarty/templates_c/%%626616196/matrix/%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (GalleryTemplateAdapter::trailer)
    * in /usr/share/php/smarty/libs/Smarty.class.php at line 1255
    * in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
    * in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
    * in main.php at line 506 (GalleryTemplate::display)
    * in main.php at line 104
    * in main.php at line 88
 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-03-02 19:13
ddimick wrote:
I having some trouble using this module. Reading this thread it looks like some other folks might have experienced the same thing but I didn't come across any resolutions. I am using 1.1.3 but this error also occurred with 1.1.0. Any help would be appreciated and a debug is attached.

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

So, the real issue lies in this URL that the embedvideo script believes it can get information from your video at:

http://gdata.youtube.com/feeds/api/videos/eIgbJ6NZJu8

This page (when you try to open it up in a web browser) returns this message:
Video not found

So, why is that not working for your video? The embedvideo script relies on the gdata api (url style shown above) to extract information about your video. It does this instead of just parsing the page (since it should be more reliable). However, in your case, the gdata link is not able to find your video data at. Now, since the gdata URL is working fine for a number of other videos I've embedded from youtube, I know that the code is doing the right thing. The only thing I can think of is that youtube is taking some non-zero amount of time before it makes the video data available through the gdata API call (url). If you wait another day or so, and try again, it might work. If not, I wonder if you can contact youtube directly about getting information for your video through the gdata API call (url I show above), and ask them why that isn't working for your video. Let me know what you find.

 
ddimick

Joined: 2009-03-02
Posts: 3
Posted: Tue, 2009-03-03 17:19

Well, you're right about it being a problem on YouTube's end as a couple other videos I've uploaded both work fine. I'll wait a day or two and try again. Thanks for the help!

 
ddimick

Joined: 2009-03-02
Posts: 3
Posted: Wed, 2009-03-04 15:34

Following up on my issue, the video I uploaded to Youtube on 3/1, which went live on Youtube at that time, started working on the gdata API URL today, 3/4. I was able to embed it into G2 without difficulty today.

 
kabaldan

Joined: 2009-03-05
Posts: 5
Posted: Thu, 2009-03-05 15:00

Hi!

Apippin, could you please add allowFullScreen (true/false) variable that will enable the fullscreen button on embedded youtube videos?
It should add &fs=1 to the url and <param name="allowFullScreen" value="true"> tag in the object section and allowfullscreen="true" to the <embed> tag.
Example:

<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/AVgKc1qXm24&ap=%2526&fmt%3D18&fs=1"></param>
<param name="wmode" value="transparent"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/AVgKc1qXm24&ap=%2526fmt%3D18&autoplay=1&rel=0&fs=1" type="application/x-shockwave-flash" wmode="transparent" width="480" height="385" allowfullscreen="true">
</embed>
</object>
 
kabaldan

Joined: 2009-03-05
Posts: 5
Posted: Thu, 2009-03-05 11:42

About the photo.tpl hacking in order to move the description containing the embedded video to the picture location using this method:

Quote:
{if $theme.item.description|truncate:7:"" != "<object"}
{* display photo *}
{/if}

I've noticed, that when you edit the video description after you've added it to the gallery, the "<object" string is changed to "&lt;object" so you should check against that string too.

{if $theme.item.description|truncate:7:"" != "<object" and $theme.item.description|truncate:10:"" != "&lt;object"}

Attached is my hacked photo.tpl from Carbon theme.

 
lot10

Joined: 2009-02-20
Posts: 6
Posted: Tue, 2009-03-10 10:56

can anyone help me to do embedvideo and also image show on photo pages.
coz i want to type lyrics in the pic and put in it that song to youtube then play it into gallery
like this
[img]http://img21.imageshack.us/img21/9830/photocqr.jpg[/img]

 
ikima

Joined: 2009-03-17
Posts: 2
Posted: Sat, 2009-03-21 00:53

I can't embed any video from youtube or any other site.

The status bar is stuck at "adding items" and doesn't move.
Under "General Settings" in admin section, I set "embedded Markup" to "rawHTML".
In "GalleryUtilities.class", line 859 is commented out: "/* $html = $parser->parse($html); */".

Quote:
Debug output shows:

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

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

Youtube URL Parsing Results
video_id: 1s1c-ab14_I
extra_embed_params:
gdata feed: http://gdata.youtube.com/feeds/api/videos/1s1c-ab14_I
-----------------------------------------------------------------------------------------------

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; Zune 2.5; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Wed, 18 Mar 2009 18:51:55 UTC

Message: Unknown runtime error
Line: 71
Char: 1
Code: 0
URI: http://127.0.0.1/gallery2/main.php
---------------------------------------------------------------------------------------------------------

I get this from the event log:

Event Details 
Date  Thu 19 Mar 2009 01:45:45 AM CET 
Type  Gallery Error 
Location  http://127.0.0.1/gallery2/main.php 
User Id  6 
Client  127.0.0.1 
Summary  Unable to get video information at url: http://www.youtube.com/watch?v=1s1c-ab14_I -  
Referer  http://127.0.0.1/gallery2/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=7&g2_return=%2Fga 

Details   Error (ERROR_BAD_PATH) : Unable to get video information at url: http://www.youtube.com/watch?v=1s1c-ab14_I -
in modules/embedvideo/ItemAddEmbedVideo.inc at line 229 (GalleryCoreApi::error)
in modules/core/ItemAdd.inc at line 159 (ItemAddEmbedVideo::handleRequest) in ??? at line 0 (ItemAddController::handleRequestWithProgressBar) 
in modules/core/classes/GalleryTemplateAdapter.class at line 1092
in g2data_skn/smarty/templates_c/%%3494993278/matrix/%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (GalleryTemplateAdapter::trailer) 
in lib/smarty/Smarty.class.php at line 1255 in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch) 
in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch) 
in main.php at line 506 (GalleryTemplate::display) 
in main.php at line 104
in main.php at line 88 Request variables: Array ( [return] => /gallery2/main.php [formUrl] => /gallery2/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=7 [authToken] => d8c947461054 [controller] => core.ItemAdd [form] => Array ( [formName] => ItemAddEmbedVideo [webPage] => Array ( [URL] => http://www.youtube.com/watch?v=1s1c-ab14_I ) [action] => Array ( [addEmbedVideoPage] => Add Embedded Video ) ) [itemId] => 7 [addPlugin] => ItemAddEmbedVideo )  

At first I was getting the same error locally, but then it started to work once I changed some of the default setting for the embedvideo. But it does not work on the remote site even after I made the same changes that was made locally. The remote site has the "fsockopen" disabled, could that be the cause of the problem? Can someone help with this please?

 
tons28

Joined: 2009-01-20
Posts: 16
Posted: Fri, 2009-03-20 17:37

Hi
I is strange, i set up a gallery and set up your module.
sometimes i can add link to youtube and sometimes i have this error :

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

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 229 (GalleryCoreApi::error)
* in modules/core/ItemAdd.inc at line 159 (ItemAddEmbedVideo::handleRequest)
* in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
* in modules/core/classes/GalleryTemplateAdapter.class at line 1092
* in g2data3545232452435345232452345/smarty/templates_c/%%2015322152/matrix/%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (GalleryTemplateAdapter::trailer)
* in lib/smarty/Smarty.class.php at line 1255
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
* in main.php at line 506 (GalleryTemplate::display)
* in main.php at line 104
* in main.php at line 88

Do you have any idea ???
Regards
Tony

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-03-23 05:25
tons28 wrote:
Hi
I is strange, i set up a gallery and set up your module.
sometimes i can add link to youtube and sometimes i have this error :

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

The embedvideo module is making a call to an internal gallery method to fetch the webpage data for this URL:
GalleryCoreApi::fetchWebPage. In debug mode, it shows you the url it is using to get the gdata feed for the video. You can try to use your web browser at the time of the error and see if you can browse to get the webpage. For some reason, youtube is unable to provide that data at the time you are embedding the video. A previous post showed that if the video was recently uploaded to youtube, it could take a few days for them to have the gdata feed available.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-03-23 05:30
ikima wrote:
I can't embed any video from youtube or any other site.
The status bar is stuck at "adding items" and doesn't move.
Under "General Settings" in admin section, I set "embedded Markup" to "rawHTML".
In "GalleryUtilities.class", line 859 is commented out: "/* $html = $parser->parse($html); */".

...

At first I was getting the same error locally, but then it started to work once I changed some of the default setting for the embedvideo. But it does not work on the remote site even after I made the same changes that was made locally. The remote site has the "fsockopen" disabled, could that be the cause of the problem? Can someone help with this please?

Read the last update I posted. Your error is occurring on the same line of code. I'm not sure what calls the GalleryApi uses to fetch the webpage, so I don't know if the "fsockopen" being disabled has anything to do with it or not. I can't reproduce the problem on my end with the youtube URL in your example, so I'm not sure what additional help I can provide here.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-03-23 05:32
kabaldan wrote:
Hi!

Apippin, could you please add allowFullScreen (true/false) variable that will enable the fullscreen button on embedded youtube videos?
It should add &fs=1 to the url and <param name="allowFullScreen" value="true"> tag in the object section and allowfullscreen="true" to the <embed> tag.

With all the information you provided in your post, this looks like an easy thing to add. I will work it in for the next release.

 
java8964

Joined: 2003-07-02
Posts: 7
Posted: Mon, 2009-03-30 21:30

I also have the problem to use this model.

The video URL is: http://www.youtube.com/watch?v=NX5NjhAsRZo

Here is my basically information:

version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.1 apache2handler
Server = Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8e DAV/2 PHP/5.2.1 SVN/1.4.3 Resin/3.1.0
DB = mysqlt 5.0.37, lock.system=database
Tools = Exif, Getid3, LinkItemToolkit, SquareThumb, Thumbnail, ArchiveUpload, NetPBM
Speed = none, none
OS = Linux sun 2.6.22.18-0.2-default #1 SMP 2008-06-09 13:53:20 +0200 x86_64
Defaul = matrix
Text = enabled
Locale = zh_CN
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Rows in GalleryAccessMap table = 68
Rows in GalleryAccessSubscriberMap table = 196
Rows in GalleryUser table = 4
Rows in GalleryItem table = 192
Rows in GalleryAlbumItem table = 18
Rows in GalleryCacheMap table = 0

My embedVideo version is 1.1.3

Here is the debug output:

Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url: http://i.ytimg.com/vi/NX5NjhAsRZo/0.jpg - HTTP/1.0 200 OK

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 1051 (GalleryCoreApi::error)
* in modules/core/ItemAdd.inc at line 159 (ItemAddEmbedVideo::handleRequest)
* in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
* in modules/core/classes/GalleryTemplateAdapter.class at line 1092
* in /apps/gallery2data/smarty/templates_c/%%3309689473/matrix/%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (GalleryTemplateAdapter::trailer)
* in lib/smarty/Smarty.class.php at line 1255
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
* in main.php at line 506 (GalleryTemplate::display)
* in main.php at line 104
* in main.php at line 88

Variable Parameters
debugOutput=true
useInternalFlvPlayer=true
youtubeShowRelated=false
width=320
height=240
externalFlvPlayer=
externalFlvPlayerVars=
flvThumbnail=
useRemoteSize=false
autoStart=false
watermarkVideos=false
watermarkImage=
watermarkAlignment=left
wordwrapSummary=0
wordwrapDescription=0
Youtube URL Parsing Results
video_id: NX5NjhAsRZo
extra_embed_params:
gdata feed: http://gdata.youtube.com/feeds/api/videos/NX5NjhAsRZo
Youtube XML Dump
http://gdata.youtube.com/feeds/api/videos/NX5NjhAsRZo2009-03-30T20:21:08.000Z2009-03-30T20:24:43.000Zjava8964http://gdata.youtube.com/feeds/api/users/java8964casey panio 20090328casey, panio, 20090328Peopletitle: casey panio 20090328
summary:
thumbnail: http://i.ytimg.com/vi/NX5NjhAsRZo/0.jpg

As you can see, the URL http://i.ytimg.com/vi/NX5NjhAsRZo/0.jpg is good, since the http return code is 200. I copy this url in the broswer, I can get the image back.
I tried to change the code to skip this check, but I will keep getting more errors. At the end, I believe that gallery didn't generate the image files under the temp folder, then it failed in its core part.

Do you have any idea about the problem? thanks

I did some addition steps and try to find out the reason.

1) Before I add the embed video, I clean the data_dir/tmp folder.
2) After the add items by embed video, I can see there are 2 files generated in that folder:
/apps/gallery2data/tmp # ls -ls
total 4
0 -rw------- 1 wwwrun www 0 Mar 30 17:54 addEfCEwW
4 -rw-r--r-- 1 wwwrun www 1400 Mar 30 17:54 addEfCEwW.jpg
3) So the jpg file is copied and saved locally. I can not check the content of addEfCEwW.jpg, since it is remote. I can do it later if you think it is useful.

 
eudoxus

Joined: 2009-04-09
Posts: 2
Posted: Thu, 2009-04-09 05:18

Apippin, excellent work with this plugin! This plugin saved Gallery for me. I was going to have to do something else because I needed videos in my Gallery, but my host wouldn't allow me to use FFMPEG. Videoembed to the rescue!

I had a similar problem as Carpcatcher and others above with the placement of the video and the stupid video thumbnail next to the embedded video when using the carbon theme. I thought I would contribute and offer this modified photo.tpl from the latest version of the Carbon theme that fixes the placement of the embedded video (puts it where the image would normally be) and removes the video thumbnail as well. It checks to see if the description has the leading <object tag first, so it won't impact normal image galleries. Don't forget to delete your template cache after installing under Admin->Maintenance.

Once again, great work.

 
lundman

Joined: 2004-04-20
Posts: 9
Posted: Fri, 2009-04-17 03:46

Is there a work-around for the volume thing? It seems to be always default 100%, which can't be annoying. But worse, if you change volume slider down to 20%, then push play, it is still at 100% (even though indicated at 20%). If you touch the slider by just a pixel, the volume goes to 20%.

Can I specify the default volume at least?

 
kabaldan

Joined: 2009-03-05
Posts: 5
Posted: Fri, 2009-04-17 10:15

eudoxus: If you want your modification to work even after the video description has been edited, you might want to have a look at my post http://gallery.menalto.com/node/65656?page=6#comment-302316.

 
eudoxus

Joined: 2009-04-09
Posts: 2
Posted: Sat, 2009-04-18 01:44

Kabaldan, oh dang, I didn't even see your post up there with the latest carbon template already. Thanks for the tip though, I'll work that in.

 
sacredtrust

Joined: 2009-04-23
Posts: 1
Posted: Thu, 2009-04-23 07:09

I've tried to embed the following youtube-file: http://www.youtube.com/watch?v=zlfIHcp6ev4. But i got this error:

Error (ERROR_BAD_PATH) : Unable to get video information at url: http://www.youtube.com/watch?v=zlfIHcp6ev4 -

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 229 (gallerycoreapi::error)
* in modules/core/ItemAdd.inc at line 159 (itemaddembedvideo::handlerequest)
* in ??? at line 0 (itemaddcontroller::handlerequestwithprogressbar)
* in modules/core/classes/GalleryTemplateAdapter.class at line 1092
* in g2data_cdc3403b79/smarty/templates_c/%%1454408058/carbon/%%2E^2E1^2E11E2E2%%theme.tpl.php at line 141 (gallerytemplateadapter::trailer)
* in lib/smarty/Smarty.class.php at line 1255
* in modules/core/classes/GallerySmarty.class at line 61 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 241 (gallerysmarty::fetch)
* in main.php at line 506 (gallerytemplate::display)
* in main.php at line 104
* in main.php at line 88

Continue...
Variable Parameters
debugOutput=true
useInternalFlvPlayer=true
youtubeShowRelated=false
width=320
height=240
externalFlvPlayer=false
externalFlvPlayerVars=false
flvThumbnail=true
useRemoteSize=false
autoStart=false
watermarkVideos=false
watermarkImage=
watermarkAlignment=left
wordwrapSummary=0
wordwrapDescription=0
Youtube URL Parsing Results
video_id: zlfIHcp6ev4
extra_embed_params:
gdata feed: http://gdata.youtube.com/feeds/api/videos/zlfIHcp6ev4

The gdata feed is ok. Can someone help me, please? Thanks in advance.

 
madrocketscientist

Joined: 2008-12-12
Posts: 3
Posted: Fri, 2009-04-24 02:12
apippin wrote:
madrocketscientist wrote:
I am having trouble adding google videos, it looks like a thumbnail extraction problem (there are similar posts in this thread, but nothing that clearly defines the solution). I have a half-dozen google videos that I successfully added with this module about 6 months ago, so I just assumed something had changed on Google. I upgraded Gallery2 to version 2.3 and reinstalled the embedvideo (1.1.2) module from scratch (and edited the appropriate .class file). My pre-existing videos still work, I can add youtube videos fine, but I get this error when trying to add a google video (http://video.google.com/videoplay?docid=-7798956479515403469)

Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url: -

I can import your video now using the new version of embedvideo I just released (1.1.3). Give it a shot...

Upgraded to 1.1.3 and still doesn't work:
Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url: -

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 1051 (GalleryCoreApi::error)
* in modules/core/ItemAdd.inc at line 159 (ItemAddEmbedVideo::handleRequest)
* in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
* in modules/core/classes/GalleryTemplateAdapter.class at line 1092
* in /var/local/g2data/smarty/templates_c/%%626616196/carbon/%%2E^2E1^2E11E2E2%%theme.tpl.php at line 141 (GalleryTemplateAdapter::trailer)
* in lib/smarty/Smarty.class.php at line 1255
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
* in main.php at line 506 (GalleryTemplate::display)
* in main.php at line 104
* in main.php at line 88

Continue...
Variable Parameters
debugOutput=true
useInternalFlvPlayer=true
youtubeShowRelated=false
width=640
height=480
externalFlvPlayer=
externalFlvPlayerVars=
flvThumbnail=
useRemoteSize=false
autoStart=false
watermarkVideos=false
watermarkImage=
watermarkAlignment=left
wordwrapSummary=0
wordwrapDescription=0

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-05-11 01:01
ikima wrote:
I can't embed any video from youtube or any other site.
The status bar is stuck at "adding items" and doesn't move.
Under "General Settings" in admin section, I set "embedded Markup" to "rawHTML".
In "GalleryUtilities.class", line 859 is commented out: "/* $html = $parser->parse($html); */".

...

At first I was getting the same error locally, but then it started to work once I changed some of the default setting for the embedvideo. But it does not work on the remote site even after I made the same changes that was made locally. The remote site has the "fsockopen" disabled, could that be the cause of the problem? Can someone help with this please?

I know it has been a while, so I'm not sure where you are at with this. The embedvideo script does rely on the php fsockopen call being enabled. You can see the call in ItemAddEmbedVideo.inc line 1344. Hopefully, getting that enabled will help this work for you.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-05-11 01:09
sacredtrust wrote:
I've tried to embed the following youtube-file: http://www.youtube.com/watch?v=zlfIHcp6ev4. But i got this error:

Error (ERROR_BAD_PATH) : Unable to get video information at url: http://www.youtube.com/watch?v=zlfIHcp6ev4 -

The gdata feed is ok. Can someone help me, please? Thanks in advance.

I'm able to embed this video with the module just fine on my server. The call that is failing is the call that the module makes to ensure the URL is a valid path. The call occurs on line 226 in the ItemAddEmbedVideo.inc. The call to the GalleryCoreApi::fetchWebPage is failing for some reason on your server. The URL response is blank (there is nothing after the '-' in the error message). So, I'm not sure why the server is unable to fetch the page.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2009-05-11 01:17
java8964 wrote:
I also have the problem to use this model.

The video URL is: http://www.youtube.com/watch?v=NX5NjhAsRZo

...

Here is the debug output:

Error (ERROR_STORAGE_FAILURE) : Unable to copy thumbnail from url: http://i.ytimg.com/vi/NX5NjhAsRZo/0.jpg - HTTP/1.0 200 OK

...

As you can see, the URL http://i.ytimg.com/vi/NX5NjhAsRZo/0.jpg is good, since the http return code is 200. I copy this url in the broswer, I can get the image back.

...

3) So the jpg file is copied and saved locally. I can not check the content of addEfCEwW.jpg, since it is remote. I can do it later if you think it is useful.

Your analysis is correct in that the URL is good. The call to GalleryCoreApi::fetchWebFile on line 1047 in ItemAddEmbedVideo.inc is failing. I don't know enough about the Gallery internals of this method call. You can check their documentation of this method to see if there is some extra debug you can turn on in the call that is being made to it. For some reason, it is unable to copy the file to the server's local storage location. I'm not sure why it is failing. Based on your analysis of the tmp dir location, it appears everything is going well. So, unfortunately, I can't offer any insight here as to what Gallery is complaining about in this case.