I am getting the famous broken link icon when I upload movie files (flv) to my site. The video itself will play without nay problems but I get the broken links. I have checked my Thumbnail setup in the admin and everything looks fine. I have copied the error message from the event log below. Any ideas?
Thanks!
Error (ERROR_TOOLKIT_FAILURE)in modules/ffmpeg/classes/FfmpegToolkit.class at line 354 (GalleryCoreApi::error)
in modules/ffmpeg/classes/FfmpegToolkit.class at line 92 (FfmpegToolkit::_ffmpeg)
in modules/core/classes/GalleryDerivative.class at line 452 (FfmpegToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 274 (GalleryDerivative::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line 153 (GalleryDerivative::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 844 (GalleryDerivativeImage::rebuildCache)
in modules/core/classes/GalleryCoreApi.class at line 997 (GalleryDerivativeHelper_advanced::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 50 (GalleryCoreApi::rebuildDerivativeCache)
in modules/core/classes/GalleryCoreApi.class at line 984 (GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
in modules/core/CreateThumbnailOption.inc at line 66 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in modules/core/ItemAdd.inc at line 350 (CreateThumbnailOption::handleRequestAfterAdd)
in modules/core/ItemAdd.inc at line 166 (ItemAddController::postprocessItems)
in ??? at line 0 (ItemAddController::handleRequestWithProgressBar)
in modules/core/classes/GalleryTemplateAdapter.class at line 1092
in g2data/smarty/templates_c/%%4278612980/ebony/%%61^611^6116D016%%theme.tpl.php at line 131 (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] => /gallery/main.php?g2_itemId=4481
[formUrl] => /gallery/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=4481
[authToken] => 7fba6ce2c6a8
[controller] => core.ItemAdd
[form] => Array
(
[formName] => ItemAddFromBrowser
[caption] => Array
(
[1] => The Wanderer.
[2] =>
[3] =>
[4] =>
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
[10] =>
[11] =>
[12] =>
[13] =>
[14] =>
[15] =>
[16] =>
[17] =>
[18] =>
[19] =>
[20] =>
)
[set] => Array
(
[title] => filename
[summary] => on
[description] => on
)
[CreateThumbnailOption] => Array
(
[createThumbnail] => on
)
[action] => Array
(
[addFromBrowser] => Add Items
)
)
[itemId] => 4481
[addPlugin] => ItemAddFromBrowser
)
Posts: 2165
is your ffmpeg module setup and does it pass its tests?
gallery admin -> ffmpeg
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
yes...
FFMPEG binary test results
Binary Name Pass/Fail
ffmpeg
Passed
Supported MIME Types
The FFMPEG module can decode files of the following MIME types
video/mpeg
video/x-ms-asf
video/x-msvideo
video/quicktime
video/x-flv
video/x-ms-wmv
Version Information
/home/[username]/public_html/ffmpeg: unrecognized option '-version'
Posts: 2165
Well, the only thing I can think of, is ffmpeg is trying to write to g2data and is failing.
Do your apache logs show any errors?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
I was able to dig up a little more information... In the event log for Gallery I found the information below.
Date Mon 17 Nov 2008 02:34:36 PM PST
Type Image Error
Location http://xxx.com
User Id 6
Client 64.254.181.66
Summary Unable to build image
Referer http://myUrl.com/gallery/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=4481&g2_return=%2Fgal
******
When I go to the referer link I get this error...
Error Detail -
Error (ERROR_PERMISSION_DENIED) : Invalid URL! The requested URL http://myURL.com/gallery/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_itemId=4481&g2_return=%2Fgal tried to insert a redirection to /gal which is not a part of this Gallery.
* in modules/core/classes/GalleryUrlGenerator.class at line 842 (GalleryCoreApi::error)
* in modules/core/classes/GalleryUrlGenerator.class at line 795 (GalleryUrlGenerator::assertIsInternalUrl)
* in init.inc at line 166 (GalleryUrlGenerator::initNavigation)
* in main.php at line 197
* in main.php at line 104
* in main.php at line 88
System Information
Gallery version 2.3
PHP version 5.2.6 cgi
Webserver Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database mysqlt 5.0.51a-community
Toolkits SquareThumb, ImageMagick, Thumbnail, Gd
Operating system Linux ld39.inmotionhosting.com 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
Posts: 6
any ideas?
Posts: 6
I think the problem has to be with my ffmpeg install, even though the <Test Settings> comes out "Passed".
At the bottom of the bottom of the <Test Settings> results it says "/home2/[username]/public_html/ffmpeg: unrecognized option '-version'"
I also noticed my Thumbnail Manager plugin isn't working properly, and the documentation for that says it needs ffmpeg activated for it to work. I know ffmpeg is activated and I have tried deactivating/activating all these plugins to make sure they are all working.
The ffmpeg binary I am using is from my hosting companies website.. http://forum.inmotionhosting.com/viewtopic.php?f=7&t=420&p=6501&hilit=install+ffmpeg#p6501... Maybe this is an old binary, does someone else have a good Binary that they know works well with Gallery2?
Thanks
Posts: 2165
there are 2 for linux on mysite.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 6
OK, I was able to get it to work using one of your builds. Thank you.
My only question now is this...
When I run the <Test Settings> for ffmpeg I still get a "Passed", but I now have a new error that say this...
"Missing required audio codec, encoded videos will not contain sound."
I guess I don't know what that error means, because when I upload videos it works and I have sound. So I'm not sure. At least it works. Thanks for your help.
Posts: 2165
The error is just for the transcode module, glad we could help.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2