embed video hosted on remote sever (youtube.com or video.google.com)
ebuslive
Joined: 2006-08-03
Posts: 4 |
Posted: Tue, 2006-09-26 23:17 |
What I want is very simple and has been desired by others several times from what I have read. (I have spent 5 full days trying to figure this out, granted I am not a programmer nor am I very skilled in computer languages, I still read everything I could and the answer was not apparent to me.) <b>I want to embed a video hosted on a remote server (youtube.com or video.google.com) into my gallery.</b> Clearly it is allowed by these services as they provide the embed html code to do such a task in a regular html page. I just need the functionality of the gallery but the embed of the video from another source. I know it can be done because I've seen it, but I'm just not smart enough to figure out how it is done. I have tried to link the item but it just opens in full browser form without being embedded. I have tried embedding the animation using "add from web page" which hasn't worked for me either. If someone could just write a nice step by step tutorial on how to accomplish this feat I would greatly appreciate it, and I'm sure many many other users would too. You can check out my failed attempts http://www.ebuslive.com/gallery2/v/VIDEO/
Thank you for your time and help. Sorry for not being that skilled. |
|
Posts: 123
you can allow HTML markup in comments-description fields and embed the code in the description. Then you'll need to make a thumbnail for it.
It's not the most elegant way to do it, but it's the only one I have found.
Posts: 27300
Post a url of what you have seen and it might help see how they did it.
The other option is the link item module.
Dave
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery
Posts: 4
I've tried the link item module. I was able to link to the "animation" or the exact file on the remote server, but when it is clicked in my gallery it just opens into fullsized video with the host player. I just want a way to embed the video player and all in the gallery as if it were a picture that played. I'll try and find some of those examples I've seen to better describe what I am looking for. Thanks for the help.
Posts: 70
is there a way to add the dimensions of the viewer in the link? there is a plug in for flash video but you have to add them to your own gallery and not link to another site
Posts: 27300
Input santizing is done for security and other reasons so only do this if you are the only one adding items.
gallery2/modules/core/classes/GalleryUtilities.class
remove
you will have to save the items again as this will not change existing items.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 3
thanks for your feedback, as i am the only one adding items i tried your fix, but i seems as if there is another check somewhere else...
when i paste this:
i get this out:
Posts: 27300
it seems to work for me:
http://langleycom.com/gallery2/main.php?g2_itemId=157
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 3
so i fixed it... the change proposed from floridave is not really necessary
you only have to comment out line 859
Gallery-Version = 2.2.1 Kern 1.2.0.1
Posts: 62
Umm, i am trying to do this also and i have commented out line 859. My problem now, is i don't see where to paste the google enbed code for the video i am trying to show? I tried the description filed as krikkit stated but this did not work. Where do you paste the embed code?
Posts: 3
you also have to allow "raw HTML" under Site Admin -> General Settings -> Embedded Markup... otherwise no html is allows in the description field
Posts: 190
I just uploaded a new module today that I created called "Embed Video". It can be used to embed videos from youtube, googlevideo, or a remote .flv file automatically via the "Add Files" interface. Feel free to take a look at the post: http://gallery.menalto.com/node/65656
Posts: 74
..
Posts: 253
Hello,
Great idea this embed video module, but I have this error message anytime I want to create a link :
Error (ERROR_CONFIGURATION_REQUIRED) : Invalid/missing YouTube developer ID:
in modules/embedvideo/ItemAddEmbedVideo.inc at line 160 (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
is this my fault ?
Posts: 190
I'm glad you like the module! The error you are getting has been talked about in this forum. If you look through the previous postings in this forum, you will find your answer.
Posts: 48
Excuse...
Posts: 2
Is this what it should look like?
Posts: 7
Hi
Keep getting the following error when trying to post a youtube video on my gallery2. Checked everything a few times, should all be done correct, plz let me know what the problem is.
Thank you!!
Variable Parameters
debugOutput=true
useInternalFlvPlayer=true
youtubeDevId=xxxxxxxxxxx
youtubeShowRelated=false
width=320
height=240
externalFlvPlayer=
externalFlvPlayerVars=
flvThumbnail=
useRemoteSize=false
autoStart=false
watermarkVideos=true
watermarkImage=
watermarkAlignment=left
wordwrapSummary=0
wordwrapDescription=0
--------------------------------------------------------------------------------
Youtube XML Dump
8Bad, unknown, or disabled dev_id specified.
--------------------------------------------------------------------------------
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: -
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
System Information
Gallery version 2.2.4
PHP version 5.2.1 cgi
Webserver Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e-p1
Database mysqlt 5.1.11-beta
Toolkits Thumbnail, Gd
Operating system FreeBSD www4.indefinitespace.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007
:/usr/obj/usr/src/sys/SMP i386
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; {01F13708-91B4-9484-3C1A-F5CE285267D5}; .NET CLR 1.1.4322)
Posts: 190
The youtube XML Dump that the module shows you in debug mode is the exact response from the API call the module makes to youtube. Right now, it looks like youtube is returning an error "8Bad, unknown, or disabled dev_id specified". It sounds like youtube is upset about the youtube "dev_id" you are providing it. I would recommend deleting your youtubeDevId parameter. This will cause the module to use its HTML page parsing techniques to extract the needed information from youtube to embed your video in Gallery, without trying to talk the API language (which is obviously producing an error in your case). I would recommend that approach instead, unless you get to the bottom of the youtube error itself about your dev_id.
Posts: 2
hey everybody... i tried to embed a youtube video on my site, and i got this error. i am running gallery 2 through drupal 6.1 . any help will be greatly appreciated. take care.
Error (ERROR_BAD_PATH) : Unable to find the watermark image at url: http://xxx.xxxx.com/drupal-6.1/modules/embedvideo/images/G2video_watermark1.png - HTTP/1.1 404 Not Found
* in modules/embedvideo/ItemAddEmbedVideo.inc at line 1088 (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 1083
* in g2data/smarty/templates_c/%%1326793445/%%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 243 (GallerySmarty::fetch)
* in main.php at line 495 (GalleryTemplate::display)
* in main.php at line 103
* in modules/core/classes/GalleryEmbed.class at line 189
* in /var/www/html/drupal-6.1/modules/gallery/gallery_base.inc at line 186 (GalleryEmbed::handleRequest)
* in /var/www/html/drupal-6.1/modules/gallery/gallery.module at line 473
* in ??? at line 0
* in /var/www/html/drupal-6.1/includes/menu.inc at line 346
* in /var/www/html/drupal-6.1/index.php at line 18
Posts: 190
The embedvideo module needs to be able to find a watermark to use to apply to the thumbnails being added to Gallery. The error above indicates that at the URL given, it can't find the watermark image that comes with the embedvideo module. Somehow, on your gallery server, the URL the embedvideo module is trying to construct to the watermark image is not correct. If you pointed a web browser to the URL it gives above, you too would get the same error (404 Not Found). You have a couple of options:
1) Disable watermarking feature of the module:
watermarkVideos=false
2) Set the watermarkImage variable in the module to point to the right image to use for these watermarks.
Posts: 5
Hi. Thanks so much for making this plugin - it's something that Gallery2 really needs and benefits from. I'm having an issue adding a video to my gallery. Here are the details:
My gallery: http://daniel.jurnove.com/photos/v/Isaac/Videos/
YouTube video I'm trying to add: http://www.youtube.com/watch?v=_HqW0yjSE1E
I've attached my debug file below. The debug file doesn't seem to show that I've set my youtubeDevId parameter. Here are the vars that are set:
height=240
width=320
useInternalFlvPlayer=true
useRemoteSize=false
youtubeShowRelated=false
watermarkVideos=true
debugOutput=true
youtubeDevId=JLiUqI4smOU
I was able to add this video to my gallery: http://www.youtube.com/watch?v=jFI3FOOzyDY
Any help would be appreciated. Thanks!
My system details:
Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.8 cgi
Webserver = Apache/1.3.34 Ben-SSL/1.55
Database = mysql 4.0.27-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = partial/900, partial/900
Operating system = Linux infong 2.4 #1 SMP Wed Sep 26 00:19:50 CEST 2007 i686 GNU/Linux
Default theme = carbon
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Posts: 5
I installed this module in a multisite environment and it didn't work because the internal url's refer to the site and not the codebase.
Error (ERROR_BAD_PATH) : Unable to find the watermark image at url: http://www.sitename.com/modules/embedvideo/images/G2video_watermark1.png - HTTP/1.1 404 Not Found
in modules/embedvideo/ItemAddEmbedVideo.inc at line 1149 (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
in main.php at line 3
System Information
Gallery version 2.2.5
PHP version 4.3.11 apache2handler
Webserver Apache
Database mysqlt 4.1.20
Toolkits SquareThumb, ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux xxx.xxxx.xxxx 2.6.9-42.ccsmp #1 SMP Wed Sep 13 21:15:46 EDT 2006 i686
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
/Sven
Posts: 190
The watermark path can be a URL or a full path to the filename. In your case, it might be better for you to use a full path to the watermark image instead of the URL. If you set this variable in the embedvideo module under your Site Admin, you should be able to work around this problem:
watermarkImage = </full/path/to/install/location/watermark/image.png>
If you don't set this variable, the default behavior is to pull the URL to use using this built-in gallery method:
$gallery2_url = $urlGenerator->getCurrentUrlDir();
That has worked in all the cases I tried (except your multi-site configuration, I don't have one of those handy). When I tried using a full path instead, I couldn't figure out how to get gallery to tell me what my current directory was where the embedvideo module was installed to. The only information I could get from Gallery about my current location was a URL instead of a fullpath, so that is why you get that behavior today. If there is a better way to set the default URL, or a way to get the full path option to work, I'm all ears. Any suggestions?
Posts: 5
Thanks for quick reply. It worked fine.
/Sven
Posts: 43
I am very much looking forward to using this mod. I got it unpacked on the server but got the below error during install.
Error (ERROR_BAD_PARAMETER) : No such module: embedvideo
* in modules/core/classes/GalleryPlugin.class at line 395 (gallerycoreapi::error)
* in modules/core/PluginCallback.inc at line 162 (embedvideomodule::isactive)
* in modules/core/PluginCallback.inc at line 73 (plugincallbackview::handlecallback)
* in main.php at line 433 (plugincallbackview::renderimmediate)
* in main.php at line 94
* in main.php at line 83
System Information
Gallery version 2.2.5
PHP version 4.4.8 cgi
Webserver Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database mysql 5.0.45-community-log
Toolkits ImageMagick, Thumbnail
Operating system Linux box74.bluehost.com 2.6.22-19_1.BHsmp #1 SMP Thu May 22 08:08:32 MDT 2008 x86_64
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
Posts: 3
Hello, and this is my error message from debug mode:
Security Violation
The action you attempted is not permitted.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : Unable to extract video id from url: http://www.youtube.com/v/D1iv37Yn8bg&hl=en&fs=1
in modules/embedvideo/ItemAddEmbedVideo.inc at line 107 (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.5
PHP version 5.2.5 apache
Webserver Apache/1.3.41 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Database mysqli 5.0.51a-community
Toolkits Gd
Operating system Linux coruscant.snhdns.com 2.6.9-67.0.7.ELsmp #1 SMP Sat Mar 15 06:54:55 EDT 2008 i686
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)
I can't get videos to work any help is greatly appreciated
I have similar issues with google and flv source files.
Posts: 190
I'm pretty sure you will get this error if you do not unpack the module into a directory called "embedvideo". The name of the directory under modules must match exactly "embedvideo". Give that a shot.
Posts: 190
Unfortunately, the embedvideo module expects a certain pattern to be able to extract the video id from it. The pattern it is looking for to embed a video from youtube must look like this: http://www.youtube.com/watch?v=xxxxxxxxxxx. So, in your case, you must format your URL like this: http://www.youtube.com/watch?v=D1iv37Yn8bg. I will make a note as a feature request to support the other URL type as well. I didn't realize there was another URL format to access the youtube videos with.
Posts: 3
Thank you for the response...I will see if this works.
Posts: 3
Ok, I registered with youtube abd when I try to get the developer id I am sent to a google page with the heading YouTube APIs and Tools... I click a link to get a developer key and then it asks for a products name and description. I know I am doing something wrong...How do I even get a youtubedevid ??? I have a youtube developer account but it seems to be managed through google...does what I'm saying make any sense? Here is the debug info (there may be a couple other issues apparent here that I am not familiar with:
8Bad, unknown, or disabled dev_id specified.thumbnail:
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: http://www.youtube.com/watch?v=D1iv37Yn8bg
in modules/embedvideo/ItemAddEmbedVideo.inc at line 350 (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.5
PHP version 5.2.5 apache
Webserver Apache/1.3.41 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Database mysqli 5.0.51a-community
Toolkits Gd
Operating system Linux coruscant.snhdns.com 2.6.9-67.0.7.ELsmp #1 SMP Sat Mar 15 06:54:55 EDT 2008 i686
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)
Posts: 190
You don't need to sign up for a developer ID anymore. Make sure you download the latest version of this module and install it. Based on the line numbers in your error message, it looks like you are running an older version of the module. Remember, no developer id is needed anymore for this module to work correctly.
Posts: 8
The description for the function htmlSafe reads
Will commenting out this line of code introduce any security issues -- even simply from visitors using the search form (for keywords, etc.)? With this "patch", can the search form be used for SQL injections, etc. since we've commented out the sanitization?
Posts: 3
I just installed the module and it was easy and works. But the video and description is showing up inside of the title area "div .gbBlock gbBackground1 > table > td" and its all gray, then next is the next/prev links then the white area and a thumbnail where the video should be just like a photo would. Video is showing up in the navigator and not the ImageView block
edit: i see now that it's just the way the module is. ill do some "hacking" of my own to figure something out, because I don't see any other plugins like this.
Posts: 190
Can you tell me what the URL of the video you are trying to add? Also, make sure you have followed the steps on the codex page for this project at http://codex.gallery2.org/Gallery2:Modules:embedvideo in modifying the GalleryUtilities.class file. That's all I can think of for now.
Posts: 2
I have just installed the module and I can't put any video from YouTube. I'am trying to add this url : http://www.youtube.com/watch?v=2vCJyU_muwc.
Can you help me because I didn't know it dosen't work ?
Error Detail -
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 452 (GdFunctionality::imageCreateFromPng)
* in modules\gd\classes\GdToolkit.class at line 352 (GdToolkit::_getImageResource)
* in modules\embedvideo\ItemAddEmbedVideo.inc at line 1245 (GdToolkit::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.5
PHP version 5.1.0RC1 isapi
Webserver Microsoft-IIS/6.0
Database mysql 5.0.12-beta-nt-max
Toolkits Thumbnail, Gd
Operating system Windows NT SERVEURWEB 5.2 build 3790
Posts: 190
This error occurs due to a misconfiguration of a graphics toolkit in your gallery2 installation. The embedvideo module depends on a graphics toolkit to create the watermarks for the video thumbnails. Follow the instructions I made in the post to this forum on "Tue, 2008-09-23 20:23" http://gallery.menalto.com/node/65656?page=5#comment-286900 to resolve your issue. The line in emebedvideo (line 1245) shows it is trying to do the same operation as stated in that post. Yours is just failing in a different manner, but the operation embedvideo is trying to do is the same.
Posts: 2
Thank you very much ! I just do the first choice and it work immediately.
Posts: 9
Win XP Pro w/IIS, PHP 5.2.6, SQL 4.1
Joomla 1.5, Gallery 2.x w/EmbedVideo
Everything works great in Joomla, Gallery
Now trying to embed a video link - http://video.google.com/videoplay?docid=-7713316088025915387
Memory used: 13946616, total: 20M
Adding items
________________________________________________________________
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
Posts: 14
Got it now. This one worked:
* 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 452 (GdFunctionality::imageCreateFromPng)
* in modules\gd\classes\GdToolkit.class at line 352 (GdToolkit::_getImageResource)
* in modules\embedvideo\ItemAddEmbedVideo.inc at line 1245 (GdToolkit::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
Sean Baden
Posts: 16
Hi,
Hope someone can help - seems like it should be a simple fix, and that I'm just overlooking something easy. I've downloaded and unzipped the embedvideo program in the modules folder, and I see it in my plugins, ready to install. Except that everytime I click 'install', I am just taken to the top of the plugins page, and nothing happens. Not even an error message! Maybe I downloaded incorrectly? I've deleted and tried doing it over a couple of times to no avail. Anyone have this problem before? Thank you in advance!
Gallery version = 2.2.4 core 1.2.0.6
PHP version = 4.3.9 apache2handler
Webserver = Apache/2.0.52 (Red Hat)
Database = mysqlt 4.1.22, lock.system=flock
Toolkits = ArchiveUpload, Gd, LinkItemToolkit, SquareThumb, Thumbnail
Acceleration = full/604800, none/0
Operating system = Linux 141267-web2.sciway.net 2.6.9-55.0.9.ELsmp #1 SMP Tue Sep 25 02:17:24 EDT 2007 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Rows in GalleryAccessMap table = 22
Rows in GalleryAccessSubscriberMap table = 779
Rows in GalleryUser table = 2
Rows in GalleryItem table = 757
Rows in GalleryAlbumItem table = 55
Rows in GalleryCacheMap table = 15942
Posts: 1
Hello apippin,
It appears the application is having problems with the watermark section. Attached is the file output. If I turn off watermark it works. But I want watermark on. Can you tell me what is wrong?
Thanks for the help,
DoubleB
Posts: 190
Thanks for the debug output. This looks like a classic graphics toolkit problem. I would suggest trying a different gallery graphics toolkit by adjusting your gallery Toolkit Priority, and/or installing a different toolkit. The module depends on a working graphics toolkit to be installed to perform the graphics operations it needs to manipulate the thumbnail, including adding the watermark. These methods are built into the gallery api, and the embedvideo module makes calls directly to that API. If the toolkits aren't able to do the operations needed to do the watermarking, your only option is to try installing different graphic toolkits until you find one that works for these operations. This is the operation that is failing for you that embedvideo is trying to make:
list ($ret, $mimeType) = $toolkit->performOperation(
$mimeType, 'composite', $newTmpFile, $tmpFile,
array($watermark, $watermarkMimeType,
$watermarkWidth, $watermarkHeight,
$watermarkAlignment, 0, 0));
So, your installed graphics toolkit must be able to perform this composite operation. Somewhere inside that operation, you're hitting your failure.
Posts: 2
remove this post plz
Posts: 3
Hi,
I've installed the Embed Video Module, mad made the required mod to the class file, turned on debug but any attempt to embed a video gives the following output and the video is not added to the album:
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
What could be the problem? I have also attached the html file for your perusal.
Posts: 190
I took a look at your attached error .html page. The embedvideo script is simply trying to "fetch" the headers for your .flv file, and fails for some reason. If you uncomment line 1411 in ItemAddEmbedVideo.inc, you can see the exact response and headers sent from the webserver for the GET request the script makes for the .flv file. The function that does this work is "fetchWebFileHeaders". All it is trying to do is see if the file exists at that URL location prior to embedding it. Think of it as a "file not found" error check. If you think this method just isn't working right, you can comment out the call to it altogether from lines 885-890 and see what happens. Let me know what you find.
Posts: 3
Apippin, Is it doing doing a download because ffmpeg binary is not installed? I have not been able to find a binary or for some reason the binaries I uploaded did not pass the test...
Posts: 3
Hi,
Installed a ffmpeg binary that works now. I managed to embed a youtube video once, but now It has stopped importing again it stops with this output:
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.3333333333333. Resizing thumbnail image to 200 x 150: /home/sites/angelav.com/public_html/gallery/g2data_47!32~12/tmp/addg8BSH1.jpg -> /home/sites/angelav.com/public_html/gallery/g2data_47!32~12/tmp/addjXEeqS.jpg
What could the problem be?
Posts: 190
I sent the following message to glasswool, and my suggestion below worked to solve the issue he was facing. I thought I'd share it here in the forum in case it is helpful for others that hit this as well:
I think it odd that the script output stops right there. The debug message you show is printed after the thumbnail action is taken. The very next thing that happens is the watermark code. So, you can try disabling watermarks to see what happens. Again, without a specific error message, it's hard to say what it is mad about.
Glasswool confirmed that disabling watermarks enabled the video to be embedded properly.
Posts: 1
Hi......
I notice Dailymotion videos no longer embed.
Is an update to the dailymotion parsing algorithm required?
Or am I doing something wrong? YouTube is still OK.
Any help please... Regards.
Posts: 190
Thanks for the heads up. I've reproduced the failure on my end, and will update the parser. I should be able to push out the new version tonight.