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

dcnc

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

And also as a side note - I had just updated the module and was able to add one video - for every other one that I have tried after that first one it has not worked.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sat, 2008-07-12 02:51
dcnc wrote:
Sure no problem - Here is the URL in the error message and the link: http://www.youtube.com/watch?v=SqW-WGjmUsw

I've taken your youtube URL above, and added it multiple times to my albums just fine. I can't seem to reproduce the problem you hit. I've tried numerous random youtube videos, and they all get added just fine. So, I'm perplexed as to how to help you further here. The embedvideo module makes a simple call to the built-in method GalleryCoreApi::fetchWebPage() to get the webpage. If you get any errors, that means the http get request made by your gallery server failed for some reason. I'm not sure why it failed, so I'm at a loss as to what to do to help you here. Let me know if you have more data/insight to offer on this.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sat, 2008-07-12 03:04
Vonkoba wrote:
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

I have the new 1.1.0 version, and don't know if I have to put that developer ID thing or not... I thought apippin said that ID didn't matter any more with the new version. Does that still hold?

Unfortunately, I can't reproduce this issue. As for a youtube developer ID, you don't need it anymore. In fact, the code makes no reference to that variable any longer, so it can't affect the video embed process. So yes, that still holds! Look at my previous answer to DCNC. I explain a little more about what that error means. I don't have a solution for you. Have you tried embedding other videos from non-youtube video sites? Do they work? Are youtube videos the only ones that are broken? If all of them are broken, then your gallery server is unable to fetch these webpages. If others work, but just not youtube, well then, that would be good to know.

I just thought of something else. In my php.ini file, I have the following option set:

allow_url_fopen = On

I don't think that should matter as the gallery fetchWebPage ultimately calls fsockopen() to get the webpage. But, just wanted to throw that out there.

 
plasmaboy

Joined: 2008-07-14
Posts: 7
Posted: Mon, 2008-07-14 11:56

Hi,

I have an odd issue with the Embed Video module that I was curious if anyone else had seen. The module works, but when I tried to change some variable parameters I could delete variables, but not change them or add new ones (so I thought). It seems that the only way I can add or change a variable is to click the "Add Variable" button twice very quickly. Hit it once only and the page reloads but displays either no variable change or no new variable. I'm using Safari 3.1.2 on an intel mac.

Has anyone else seen this problem or have any idea what might cause it?

Thanks,
ben

 
archive26
archive26's picture

Joined: 2008-01-16
Posts: 10
Posted: Tue, 2008-07-29 09:37

Hello,

I use this module with an external player (jw flv player 4.0) which supports now the mp4 files since the flash version 9.0.115.0 can do it. So I'd like this module to support mp4 files type.

My purpose is :
Getting only one movie file hosted, the mp4 file (and not both flv and mp4, you will see further why)
- Keep the flash player in one hand (which needs flv or swf file with the embedvideo module at this stage),
- and in the other hand : watch or download the movie with an iphone/ipod or any other hardware using Quicktime, following an html link for the mp4 movie, (for instance, using the short description file).

Is it possible to to get any help for editing the module code, or updating it for that?
If not, do you have another solution?... I thought about a javascript to change the file extension flv to mp4 for the link, but i have absolutely no idea how to do it.

Thanks for the answers.

 
studee

Joined: 2008-05-29
Posts: 1
Posted: Fri, 2008-08-01 13:35

hi every thing works fine with this, but when i try adding a flv video from joomla embedded gallery it says database error

"An error has occurred while interacting with the database."

can anyone help with this !!

i just want to use it for flv files

thanks for any help in advance

dee

 
headwave

Joined: 2007-08-08
Posts: 13
Posted: Wed, 2008-08-06 21:19

Hi..

Realy like this module.. got some good use for it!
Got one slight problem and that are the BBcodes

because the picture isnt a .jpg, but just a name.. the picture of the thumnail doesnt show

http://www.topreefs.com/gallery2/v/test2/My_red_sea_max_130liter_aquarium.html

[img]http://www.topreefs.com/gallery2/d/2979-2/My_red_sea_max_130liter_aquarium[/img]

EDIT : Strange enough here it does ? ( not in a PHPBB 2.0 )
and i can't asign a picture in PHPBB2 with out a extension. ( but that is PHPBB )

 
Alexandra70

Joined: 2004-12-08
Posts: 143
Posted: Tue, 2008-08-19 05:57

Hello, I upgraded to Gallery version = 2.3-RC1 core 1.2.36 and Embed Video Module no longer works... I mean, I see the Add Video Tab, and it says that it added the video successfully, but there is no YouTube Video to play when I go to it... Just the thumbnail picture of the video plus the Title/Desc.

All other videos that I had there before I upgraded Gallery, were working fine, and now all the old ones only have the thumbnail and text info... but no YouTube video to play.

Any suggestions?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2008-08-19 13:45
archive26 wrote:
Hello,

I use this module with an external player (jw flv player 4.0) which supports now the mp4 files since the flash version 9.0.115.0 can do it. So I'd like this module to support mp4 files type.

My purpose is :
Getting only one movie file hosted, the mp4 file (and not both flv and mp4, you will see further why)
- Keep the flash player in one hand (which needs flv or swf file with the embedvideo module at this stage),
- and in the other hand : watch or download the movie with an iphone/ipod or any other hardware using Quicktime, following an html link for the mp4 movie, (for instance, using the short description file).

Is it possible to to get any help for editing the module code, or updating it for that?
If not, do you have another solution?... I thought about a javascript to change the file extension flv to mp4 for the link, but i have absolutely no idea how to do it.

Thanks for the answers.

Since you are providing a flv player that also supports the mp4 extension, I can make some changes to the embedvideo module that allow mp4 as a valid file type. I'll leave it up to the user to provide a flv player that can actually play it. So, if the user uploads an mp4 file, I will happily add it to the gallery album, assuming the user has done what it takes to have a player to play it configured in the module. That should be an easy change to make.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2008-08-19 13:48
studee wrote:
hi every thing works fine with this, but when i try adding a flv video from joomla embedded gallery it says database error
"An error has occurred while interacting with the database."
can anyone help with this !!

i just want to use it for flv files

thanks for any help in advance

dee

Can you post or email me the debug output page when you enable debug mode in the module and try to add the video? Can you tell me exactly how you are adding the flv file? Is there a URL I can access to try and reproduce this error on my end?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2008-08-19 13:51
Alexandra70 wrote:
Hello, I upgraded to Gallery version = 2.3-RC1 core 1.2.36 and Embed Video Module no longer works... I mean, I see the Add Video Tab, and it says that it added the video successfully, but there is no YouTube Video to play when I go to it... Just the thumbnail picture of the video plus the Title/Desc.

All other videos that I had there before I upgraded Gallery, were working fine, and now all the old ones only have the thumbnail and text info... but no YouTube video to play.

Any suggestions?

It's possible that the new version of Gallery does not allow us to modify the description with the HTML code we do for embedding videos. It's possible that another "hack" in the gallery core files is needed to allow our embed video code in the descriptions to work. Can you send the debug output page when you add a video in debug mode? Also, when you go in to edit an item after it has been added, what does the description field look like (what are the contents of the description field)? I assume you have made the changes to the GalleryUtilities.class (as outlined on the wiki page for this project) to allow the HTML code to be passed to the description fields properly?

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2008-08-19 13:52
headwave wrote:
Hi..

Realy like this module.. got some good use for it!
Got one slight problem and that are the BBcodes

because the picture isnt a .jpg, but just a name.. the picture of the thumnail doesnt show

EDIT : Strange enough here it does ? ( not in a PHPBB 2.0 )
and i can't asign a picture in PHPBB2 with out a extension. ( but that is PHPBB )

I'm not following what you are saying here. Can you explain this again to me with an example I can see?

 
Alexandra70

Joined: 2004-12-08
Posts: 143
Posted: Tue, 2008-08-19 17:23

apippin, thank you so much for responding!!

Actually, when I upgraded, it did override the GalleryUtilities.class, so I had to comment out that line again (though I don't remember doing it the first time).

Then after I did that.... I went back to Gallery and the video was still NOT there... That's when I had my stupid-moment-of-the-day, and realized that I was looking at my Gallery in another language (Portuguese) and when I translated Title and Summary in the Multilanguage tab, I did not put the YouTube code in the Description field (in English I could see the video just fine).

So duh!!!! Problem solved! Thanks for pointing those two things out!!!

Alex

 
archive26
archive26's picture

Joined: 2008-01-16
Posts: 10
Posted: Fri, 2008-08-22 19:20
apippin wrote:

Since you are providing a flv player that also supports the mp4 extension, I can make some changes to the embedvideo module that allow mp4 as a valid file type. I'll leave it up to the user to provide a flv player that can actually play it. So, if the user uploads an mp4 file, I will happily add it to the gallery album, assuming the user has done what it takes to have a player to play it configured in the module. That should be an easy change to make.

Tks very much for the answer apippin. I'm waiting for you to make "some changes to the embedvideo module that allow mp4 as a valid file type"

It will be really great to embed mp4!

 
LBSources

Joined: 2007-07-12
Posts: 24
Posted: Sat, 2008-08-30 19:08

Hi .. It seems that the module works fine with youtube videos. When trying with MySpace videos it always fails with the message below..

The URL for some reason in the debug broken. The correct link is: http://vids.myspace.com/index.cfm?fuseaction=vids.individual&VideoID=41703966

Any help is appreciated..

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
Error

An error has occurred.

Back to the Gallery
Error Detail -
Error (ERROR_BAD_PATH) : Unable to extract embedded video information from url: http://myspacetv.com/index.cfm?fuseaction=vids.individual&videoid=41832248

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 734 (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 cgi
Webserver WebServerX
Database mysqli 5.0.51a-community
Toolkits ImageMagick, Thumbnail, Gd
Operating system Linux dime56.dizinc.com 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:36:49 EST 2008 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

 
LBSources

Joined: 2007-07-12
Posts: 24
Posted: Wed, 2008-09-03 09:48

Anyone have any idea on my problem?

 
Burnouts

Joined: 2007-01-31
Posts: 34
Posted: Tue, 2008-09-09 15:23

Anyone having any issue's with Gallery 2.2.5? The plugin is installed fine etc.. just after i upgraded the Add embed videos is gone from add photos bit thing..

Gallery version = 2.2.5 core 1.2.0.7
PHP version = 5.2.6 cgi-fcgi
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 = mysqli 5.0.45-community-log, lock.system=flock
Toolkits = ArchiveUpload, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd, ImageMagick
Acceleration = full/900, full/900
Operating system = Linux host264.hostmonster.com 2.6.22-19_1.BHsmp #1 SMP Thu May 22 08:08:32 MDT 2008 x86_64
Default theme = nzdi
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 ImageShackToolbar/4.5.0
Rows in GalleryAccessMap table = 11
Rows in GalleryAccessSubscriberMap table = 4670
Rows in GalleryUser table = 9
Rows in GalleryItem table = 4664
Rows in GalleryAlbumItem table = 30
Rows in GalleryCacheMap table = 2819 
 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sat, 2008-09-13 02:25
archive26 wrote:

Tks very much for the answer apippin. I'm waiting for you to make "some changes to the embedvideo module that allow mp4 as a valid file type"

It will be really great to embed mp4!

Ok. This is really easy to add support for (I think). If you are comfortable editing a file, I'd like you to try my simple fix out on your end so you can let me know if it works or not (I have no way to test the .mp4 embedding on my end).

1) Edit this file: ItemAddEmbedVideo.inc

2) Find line 847 that looks like this:
} else if(preg_match("/.*\/(.+?)\.flv/i",$url,$matches) {

3) Change the line so it looks like this:
} else if(preg_match("/.*\/(.+?)\.flv/i",$url,$matches) ||
preg_match("/.*\/(.+?)\.mp4/i",$url,$matches)) {

Then try to add your .mp4 file again. Let me know how it goes as soon as you get a chance to test it. I'm looking into a few bugs right now, and will make the release with your feature too if it works.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sat, 2008-09-13 03:25

LBSources,

I found out why the myspace vids stopped working. They changed the format of their webpage that displays the video. I've adjusted my parser for this video type in the embedvideo module. These videos seem to embed fine now with my fixes in place. However, the embed object type from myspace appears to be a ".aspx" now, which doesn't play in my firefox windows. However, it plays just fine in IE. So, I will be making a new release soon that has this fix. Stay tuned.

 
LBSources

Joined: 2007-07-12
Posts: 24
Posted: Sat, 2008-09-13 13:10

apippin... good to know that you figured it out :)

Cant wait for a fix either..

Thanks again

 
archive26
archive26's picture

Joined: 2008-01-16
Posts: 10
Posted: Sat, 2008-09-13 21:41
apippin wrote:

Let me know how it goes as soon as you get a chance to test it. I'm looking into a few bugs right now, and will make the release with your feature too if it works.

Yessss! mp4 works with embed video module editing the file ItemAddEmbebVideo.inc (Personnaly, I use external player JW 4.0.46 for the test). It's easier than change each time flv>mp4 manually editing the description field!

Note : To watch to the mp4 video, users must have a recent update version of macromedia flash player on their computer.

Tks very much apippin !

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Sun, 2008-09-14 05:19

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

Here are the release notes for 1.1.1:
- Added ".mp4" type to supported remote embedded types.
- Added support for "youtube.com/v/" style video URLs.
- Fixed myspace video parsing algorithm.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2008-09-14 05:27

apippin,
I hope you are updating the codex page:
http://codex.gallery2.org/Gallery2:Modules:embedvideo#Installation
it will prevent new users from using the wrong version.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2008-09-14 05:41

Never mind. Seems you are doing a great job of updating:
http://codex.gallery2.org/index.php?title=Gallery2:Modules:embedvideo&action=history
Thanks!

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
maxman

Joined: 2008-09-14
Posts: 11
Posted: Sun, 2008-09-14 08:16

Hi,

i have little problem with embedvideo.
I`ll try to embed my videos from vimeo.com and it says:

An error has occurred.

Back to the Gallery
Error Detail -
Error (ERROR_UNSUPPORTED_FILE_TYPE) : Unable to embed video from: http://vimeo.com/1709936
in modules/embedvideo/ItemAddEmbedVideo.inc at line 1026 (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.6 cgi-fcgi
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 mysqli 5.0.45-community-log
Toolkits NetPBM, Gd
Operating system Linux host282.hostmonster.com 2.6.22-19_1.BHsmp #1 SMP Thu May 22 08:08:32 MDT 2008 x86_64
Browser Opera/9.52 (Windows NT 5.1; U; en)

It will work 3 weeks ago, bud now it does not work.

Can anybody help?

 
LBSources

Joined: 2007-07-12
Posts: 24
Posted: Sun, 2008-09-14 13:38

Hey aippin .. It works and wow is it quicker now.. Thanks! Glad to have unwrapped such a problem :)

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2008-09-15 01:41
maxman wrote:
Hi,

Error (ERROR_UNSUPPORTED_FILE_TYPE) : Unable to embed video from: http://vimeo.com/1709936

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.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Mon, 2008-09-15 01:52
Burnouts wrote:
Anyone having any issue's with Gallery 2.2.5? The plugin is installed fine etc.. just after i upgraded the Add embed videos is gone from add photos bit thing..

I have not yet upgraded to this latest version (Gallery 2.2.5). Once I do, I'll see what issues I run into and dig into trying to find solutions to the problems if there are any. If anyone else has any mileage on 2.2.5 with this module, please let us know how it is/isn't working for you. I wonder if the "AddItem" API changed somehow and the way the embedmodule plugin gets registered needs to change? Hard to say if it is only a problem on your end until we get some other experiences posted here with it on 2.2.5 too.

 
maxman

Joined: 2008-09-14
Posts: 11
Posted: Mon, 2008-09-15 03:54
apippin wrote:
Hi,

I have a simple answer for you. Just add "www." ...

Thank you very much for your help.

 
webpeix

Joined: 2008-09-16
Posts: 6
Posted: Tue, 2008-09-16 12:04

Hi there,

I´m using v. 1.1.1. on G 2.2.4
The module its great and works ok for youtube (80% of my videos). Problem is I needed to embed a google video for the 1st time and got:

Error (ERROR_UNSUPPORTED_FILE_TYPE) : Unable to embed video from: http://video.google.es/videoplay?docid=2606890747284738319
in modules/embedvideo/ItemAddEmbedVideo.inc at line 1026 (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.4 cgi
Webserver Apache
Database mysqli 5.0.51a-log
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux boscgi0103.eigbox.net 2.6.24.7 #1 SMP Wed May 7 12:55:23 EDT 2008 i686
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

I´ve tried to add the "www" but it still doesn´t work...

Help very much appreciated!!

 
n0fragger

Joined: 2008-09-23
Posts: 3
Posted: Tue, 2008-09-23 19:32

Hello

I am getting This Error when I add an .flv to my album.
It is an .flv that is stored on my webspace:

******************************************************************************************
Error Detail -
Error (ERROR_UNKNOWN) : Could not get/convert/extract overlay
in modules/netpbm/classes/NetPbmToolkit.class at line 267 (GalleryCoreApi::error)
in modules/embedvideo/ItemAddEmbedVideo.inc at line 1244 (NetPbmToolkit::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.2.6 apache2handler
Webserver Apache/2
Database mysqli 5.0.37-standard
Toolkits NetPBM, Gd
Operating system Linux lublin.smartforward.nl 2.6.18-53.1.13.el5xen #1 SMP Tue Feb 12 14:04:18 EST 2008 i686
Browser Opera/9.50 (Windows NT 5.1; U; en)

******************************************************************************************

I just can't find the problem.

Hope you guys can help me

 
marcusjb

Joined: 2004-06-21
Posts: 7
Posted: Tue, 2008-09-23 19:48

I'm getting an error when trying to add this youtube video:

http://www.youtube.com/watch?v=xR0-GS0hk1I

Error

An error has occurred.

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

* in modules/embedvideo/ItemAddEmbedVideo.inc at line 225 (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 4.4.7 cgi
Webserver Apache/1.3.41 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Database mysql 4.1.22-standard
Toolkits SquareThumb, ImageMagick, Gd
Operating system Linux bayloon.bigbluehost7.com 2.6.9-55.0.12.ELsmp #1 SMP Wed Oct 17 08:19:30 EDT 2007 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14; .NET CLR 3.5; ffco7) Gecko/20080404 Firefox/2.0.0.14

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-09-24 02:16
marcusjb wrote:
I'm getting an error when trying to add this youtube video:

http://www.youtube.com/watch?v=xR0-GS0hk1I

Error

An error has occurred.

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

I switched over to using the youtube gdata API to obtain information about a given video. The gdata feed embedvideo used to get information about your video was: http://gdata.youtube.com/feeds/api/videos/xR0-GS0hk1I. Youtube returned a "Not Found" error. That URL is supposed to return an XML file with the data about your video. For some reason, the gdata was not found for your video. The only thing I can think of is that your video was recently uploaded, and it takes youtube some amount of time before that data is available via their gdata api. I've never seen this before. I've tested other videos on youtube, and they are working fine right now. So, this seems to be isolated issue with the video you are trying to add. I've deprecated the youtube page parsing algorithm that used to get the youtube video information directly from the html code of the video page. This approach is error prone, and can't get all the details I need to embed the video with thumbnails properly, so I switched over to the gdata API instead. If this problem persists, I could add this code back in, and have a parameter that you would need to set in order to use page parsing over the gdata API for youtube embed videos. Hopefully, the gdata API will work soon for your video instead.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-09-24 02:23
n0fragger wrote:
Hello

I am getting This Error when I add an .flv to my album.
It is an .flv that is stored on my webspace:

Error Detail -
Error (ERROR_UNKNOWN) : Could not get/convert/extract overlay
I just can't find the problem.

Hope you guys can help me

The section of code that is causing the error is the part of the embedvideo module that tries to overlay a watermark image on your video thumbnail. It is simply trying to perform a builtin gallery toolkit operation to "composite" the watermark with your video thumbnail. For some reason, this process is failing. You have a few choices.

1) Disable watermarking by setting the embedvideo watermarkVideos parameter to false
2) Double check to see if you set the embedvideo watermarkImage parameter. Maybe it can't find the overlay (watermark image)?
3) Try a different gallery graphics toolkit by adjusting your gallery Toolkit Priority.

That's all I can think for you to try.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-09-24 02:37
webpeix wrote:
Hi there,

I´m using v. 1.1.1. on G 2.2.4
The module its great and works ok for youtube (80% of my videos). Problem is I needed to embed a google video for the 1st time and got:

[i]Error (ERROR_UNSUPPORTED_FILE_TYPE) : Unable to embed video from: http://video.google.es/videoplay?docid=2606890747284738319

The problem you are having is simple. :) I made the pattern match too strict for google videos. I set the google pattern to be "video.google.com". I removed this restriction by accepting "video.google" as the pattern. Loosening this requirement allows me to add your video. I also improved the message output of the error message to be clearer in this regard. All you need to do to make forward progress to fix the issue on your end is to edit line 129 of ItemAddEmbedVideo.inc:

from this:
$googleUrlPattern="video.google.com";

to this:
$googleUrlPattern="video.google";

I will get this fix out there in my next release. I've actually loosened the exactness on the url pattern for all the video sites. So, hopefully, this won't happen again for others on the other services as well.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-09-24 05:23

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

Here are the release notes for 1.1.2:
- Loosened URL pattern matching, dropping "www." and ".com" expectations.
- Fixed stickam and vimeo video parsing algorithms.

 
marcusjb

Joined: 2004-06-21
Posts: 7
Posted: Wed, 2008-09-24 07:38

Well, maybe you were right about it being too soon after uploading because it worked this time. Thanks!

 
azbr
azbr's picture

Joined: 2008-03-06
Posts: 10
Posted: Sun, 2008-09-28 17:25

HI! Love the module. I installed, and got it working just GREAT, But....

Is there a way for me to change the summary of the video in gallery without breaking the link to the youtube video?

 
Draco098

Joined: 2007-03-21
Posts: 2
Posted: Mon, 2008-09-29 15:58

Thank you for such a great addition to Gallery! It is exactly what I am looking for. However, I cannot get it to work with Animoto.com. Animoto supports a couple ways to post things and embed them (both Javascript and Flash based).

Not sure what all you could use, here's some examples. I would love to add my Animoto videos to my galleries!

http://animoto.com/play/hYkQCzIVIk03Ugoc0Uevhg

<object type="application/x-shockwave-flash" data="http://widgets.clearspring.com/o/46928cc51133af17/48e0fae943cad8fa/46928cc5788deb29/e56a00b2" id="W46928cc51133af1748e0fae943cad8fa" height="260" width="432"> 
<param value="http://widgets.clearspring.com/o/46928cc51133af17/48e0fae943cad8fa/46928cc5788deb29/e56a00b2" name="movie"/> 
<param value="transparent" name="wmode"/>
<param value="all" name="allowNetworking"/>
<param value="always" name="allowScriptAccess"/>
<embed name="Animoto.com" id="W46928cc51133af1748e0fae943cad8fa" width="432" height="260" src="http://widgets.clearspring.com/o/46928cc51133af17/48e0fae943cad8fa/46928cc5788deb29/e56a00b2" allowScriptAccess="always" quality="high" wmode="transparent" type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<script type="text/javascript" src="http://widgets.clearspring.com/o/46928cc51133af17/48e0faff268e2a72/46928cc5788deb29/d8230aa9/widget.js"></script>
 
webpeix

Joined: 2008-09-16
Posts: 6
Posted: Wed, 2008-10-01 07:19

Working nice now.

Thank you very much!

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-10-01 13:58
azbr wrote:
HI! Love the module. I installed, and got it working just GREAT, But....

Is there a way for me to change the summary of the video in gallery without breaking the link to the youtube video?

Yes, there is. You need to follow the instructions on the codex page for this project http://codex.gallery2.org/Gallery2:Modules:embedvideo under the "Patching Required" section.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Wed, 2008-10-01 14:00
Draco098 wrote:
Thank you for such a great addition to Gallery! It is exactly what I am looking for. However, I cannot get it to work with Animoto.com. Animoto supports a couple ways to post things and embed them (both Javascript and Flash based).

Not sure what all you could use, here's some examples. I would love to add my Animoto videos to my galleries!

It should be possible to add support for embedding videos from animoto. I've added your request to my feature request list, and will give it a shot in terms of adding support for it soon.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2008-10-03 02:04
Draco098 wrote:
Thank you for such a great addition to Gallery! It is exactly what I am looking for. However, I cannot get it to work with Animoto.com. Animoto supports a couple ways to post things and embed them (both Javascript and Flash based).

Not sure what all you could use, here's some examples. I would love to add my Animoto videos to my galleries!

I looked into adding animoto support to embedvideo. Unfortunately, I don't see a way to do it. The problem with the animoto video links, is that they take you to a site/webpage that plays the video, but there is absolutely no information on the page itself that contains enough information for the embedvideo script to derive what the embed video code should look like. Without the script being able to predict what the embed video code will look like or strip it off the webpage, there is no way for the embedvideo module to embed a video automatically from sites like this. The only way to get access to the specially formatted embed video code on animoto is to login, and then click on the "Post/Embed Online" link. Unfortunately, there is no way to get the embedvideo module to "login" and perform these "clicks" to gain access to the embed video code to strip and insert into a Gallery2 album page. Until that problem can be overcome with animoto, I don't see a way to embed those videos using this module. However, if you interactively get the embed video code from animoto as described above, all you need to do is create a new "photo item" in gallery that is an image representing the video, edit it, and paste the embedvideo code from animoto into the description field for that photo. If you've done the modifications to your gallery core files as described in this forum posting, you should be able to do it this way. Sorry!

 
drale

Joined: 2008-10-03
Posts: 3
Posted: Sat, 2008-10-04 20:06
valiant wrote:
The right way to do this is to create a new GalleryDataItem and a new renderer.
e.g. take a look at modules/flashvideo/, it registers a renderer.
And you need to register a new item type, let's call it GalleryEmbeddedItem (similar to GalleryPhotoItem. I guess it should extend GalleryDataItem.

Where is "modules/flashvideo/" ? I don't see that directory. Or is there another module I need to download to see it.

 
drale

Joined: 2008-10-03
Posts: 3
Posted: Sat, 2008-10-04 20:40

Will the description field hack be replaced in the new release? I'm trying to learn how to do it but I'm totally lost even after reading some development documentation on Gallery2. You'd think someone who built a social networking site from the ground up with many features could figure this out ;)

 
n0fragger

Joined: 2008-09-23
Posts: 3
Posted: Mon, 2008-10-06 17:41

Hi guys,

Ik have the Ebony theme installed.

Now it shows pictures in Lightbox.

Is there any way, that I can use this in combination with Embed Video?

For now it just shows me a picture of a film in Lightbox.

Is there any way how I can get this to work?

Thanks.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2008-10-07 13:45
drale wrote:
Will the description field hack be replaced in the new release? I'm trying to learn how to do it but I'm totally lost even after reading some development documentation on Gallery2. You'd think someone who built a social networking site from the ground up with many features could figure this out ;)

No. I have not had time to remove the description hack this module uses. So, we are all still stuck needing to make the simple modification to the modules/core/classes/GalleryUtilities.class file outlined on the codex page http://codex.gallery2.org/Gallery2:Modules:embedvideo.

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Tue, 2008-10-07 13:46
n0fragger wrote:
Hi guys,

Ik have the Ebony theme installed.

Now it shows pictures in Lightbox.

Is there any way, that I can use this in combination with Embed Video?

For now it just shows me a picture of a film in Lightbox.

Is there any way how I can get this to work?

Thanks.

I'm having a hard time following what you are saying here. I don't know anything about the Ebony theme or Lightbox. So, I won't be able to offer any insight to you on the problem you are seeing here.

 
magnar

Joined: 2008-05-16
Posts: 13
Posted: Fri, 2008-10-10 02:35

Hi

I am having problems with this also now. I first tried with the ID and then with blank.

Any tips or ideas to make this work ?!? :)

 
apippin

Joined: 2007-06-11
Posts: 190
Posted: Fri, 2008-10-10 05:53
magnar wrote:
Hi

I am having problems with this also now. I first tried with the ID and then with blank.

Any tips or ideas to make this work ?!? :)

I don't understand what your problem is. What are you having problems with? What is your exact problem? What are your exact error messages? What ID are you talking about? What URL are you trying to embed? A little more detail should help us, help you!