What is the path I should be using?
I'm on a Win 2003 server.
When ever I try C:\Inetpub.....\ffmpeg.exe I get four of these errors at the top of the page
"Warning: exec(): Unable to fork [cmd /c " "C:\Inetpub\...\ffmpeg.exe" "-formats" 2> "C:\Inetpub\...\g2data\tmp\g2dAA.tmp" "] in C:\Inetpub\...\gallery2\modules\core\classes\GalleryPlatform\WinNtPlatform.class on line 106
"
and this below the path box.
The path you entered isn't a valid path to a ffmpeg binary.
Ideas?
thanks.
james
Posts: 8601
does ffmpeg.exe -formats work from the command line?
does your webserver/php user have appropriate permissions on cmd.exe?
Posts: 8
To start, sorry, I'm a bit of a noob.
Just copying "ffmpeg.exe -formats" in to the run window yeilds a cant find ffmpeg.exe. If I drop the ffmpeg.exe in to the system32 dir it runs something really fast.
I added IIS_WPG to cmd.exe and gave it full control and I still get the could not fork errors.
Maybe we need to step back a bit. I don't even know what the path should look like. Do I need to include C:\ yadda yadda.. and should I just leave the end of the path with \ or does it need ffmpeg.exe too?
Thanks.
Posts: 8
I got it to pass the test by adding IUSER_... to the cmd.exe and setting permissions.
But now I get this error in many places.
Warning: Unknown(C:\Inetpub\...\main.php\view\): failed to open stream: No such file or directory in Unknown on line 0
Warning: (null)(): Failed opening 'C:\Inetpub\...\main.php\view\' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0
Posts: 8601
yes the path should include ffmpeg.exe in it
Posts: 8
Well, I'm not sure what I did to fix the last problem, but i haven't seen it in a while. Now I can upload pictures, view them and get thumbs and all. but, uploading a movie gives me errors with some files and not with others. I uploaded a .mov, and a .wmv, but uploading mpegs gives me this.
Error (ERROR_BAD_PATH):
in file C:\Inetpub\...\modules\core\classes\GalleryDataItem.class at line 127 (gallerystatus::error)
in file C:\Inetpub\...\modules\core\classes\GalleryUnknownItem.class at line 77 (gallerydataitem::create)
in file C:\Inetpub\...\modules\core\classes\helpers\GalleryItemHelper_medium.class at line 384 (galleryunknownitem::create)
in file C:\Inetpub\...\modules\core\classes\GalleryCoreApi.class at line 1313 (galleryitemhelper_medium::additemtoalbum)
in file C:\Inetpub\...\modules\core\ItemAddFromBrowser.inc at line 79 (gallerycoreapi::additemtoalbum)
in file C:\Inetpub\...\modules\core\ItemAdd.inc at line 77 (itemaddfrombrowser::handlerequest)
in file C:\Inetpub\...\main.php at line 161 (itemaddcontroller::handlerequest)
in file C:\Inetpub\...\main.php at line 47
in file C:\Inetpub\...\main.php at line 40
And even though the mov and wmv uploaded and will let me download, they don't have a thumbnail.
At the rate I'm going I should have this one figured out in about an hour and have a whole new problem, so maybe just stick around and see
thanks guys.
james
Posts: 3236
does "..." just represent YOUR path that you don't want to show us? or is that the real error?
Your paths should be full, like "c:\inetpub\ffmpeg.exe" in any case. Of course, it should also be where that file really is... maybe "c:\winnt\system32\ffmpeg.exe" or "c:\programs\ffmpeg\ffmpeg.exe" or something.
Posts: 7994
If you enable buffered debug mode in config.php, you should see the command line that it's trying to run before it gets the ERROR_BAD_PATH. That will help us to diagnose the problem.
Posts: 8
Yeah I replaced with the ..., I guess it doesn't matter. I hope, I'm kinda new to all this. Ok, with buffered this is what I got. Any ideas?
Error (ERROR_BAD_PATH):
in file C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\GalleryDataItem.class at line 127 (gallerystatus::error)
in file C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\GalleryUnknownItem.class at line 77 (gallerydataitem::create)
in file C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers\GalleryItemHelper_medium.class at line 384 (galleryunknownitem::create)
in file C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\GalleryCoreApi.class at line 1313 (galleryitemhelper_medium::additemtoalbum)
in file C:\Inetpub\www.exackley.com\html\gallery2\modules\core\ItemAddFromBrowser.inc at line 79 (gallerycoreapi::additemtoalbum)
in file C:\Inetpub\www.exackley.com\html\gallery2\modules\core\ItemAdd.inc at line 77 (itemaddfrombrowser::handlerequest)
in file C:\Inetpub\www.exackley.com\html\gallery2\main.php at line 161 (itemaddcontroller::handlerequest)
in file C:\Inetpub\www.exackley.com\html\gallery2\main.php at line 47
in file C:\Inetpub\www.exackley.com\html\gallery2\main.php at line 40
file_exists(C:\Inetpub\www.exackley.com\g2data\sessions\047a94809ff3497804af85653f811b37)
clearstatcache()
filesize(C:\Inetpub\www.exackley.com\g2data\sessions\047a94809ff3497804af85653f811b37)
fopen(C:\Inetpub\www.exackley.com\g2data\sessions\047a94809ff3497804af85653f811b37,
rb, 0)
flock(Resource id #17, 6, )
fread(Resource id #17, 4606)
flock(Resource id #17, 3, )
fclose(Resource id #17)
file_exists(C:\Inetpub\www.exackley.com\g2data\cache\module/core/0/0/0.inc)
[1100883467] can't guarantee 5 -- extending!
file_exists(C:\Inetpub\www.exackley.com\g2data\cache\entity/0/0/5.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/core/module.inc)
file_exists(C:\Inetpub\www.exackley.com\g2data\cache\module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes/../../../modules/core/ItemAdd.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes/../../../modules/core/ItemAdd.inc)
file_exists(C:\Inetpub\www.exackley.com\g2data\cache\entity/0/0/6.inc)
fopen(C:\Inetpub\www.exackley.com\g2data\locks\0/6/6, wb+, 0)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/cart/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/customfield/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/debug/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/exif/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/ffmpeg/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/gd/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/imageblock/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/imageframe/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/search/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/slideshow/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/uploadapplet/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes\helpers/../../../../modules/watermark/module.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core/ItemAddFromBrowser.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core/CreateThumbnailOption.inc)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\watermark/WatermarkOption.inc)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PermissionSetMap.g_module,
g2_PermissionSetMap.g_permission,
g2_PermissionSetMap.g_description,
g2_PermissionSetMap.g_bits,
g2_PermissionSetMap.g_flags
FROM
g2_PermissionSetMap
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_Group.g_id,
g2_Group.g_groupName
FROM
g2_UserGroupMap, g2_Group
WHERE
g2_Group.g_id = g2_UserGroupMap.g_groupId
AND
g2_UserGroupMap.g_userId = 5
ORDER BY
g2_Group.g_groupName
LIMIT 18446744073709551615
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_WatermarkImage.g_id
FROM
g2_WatermarkImage, g2_PermissionMap
WHERE
g2_PermissionMap.g_itemId = g2_WatermarkImage.g_id
AND
(g2_PermissionMap.g_userId = 5
OR
g2_PermissionMap.g_groupId IN (1, 3, 2))
AND g2_PermissionMap.g_permission & 4 = 4
ORDER BY
g2_WatermarkImage.g_fileName ASC
LIMIT 18446744073709551615
--------------------------------------------------------------------------------
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core/classes/GalleryMovieItem.class)
file_exists(C:\WINNT\TEMP\php3A.tmp)
is_uploaded_file(C:\WINNT\TEMP\php3A.tmp)
--------------------------------------------------------------------------------
(mysql):
SELECT
COUNT(g2_ChildEntity.g_id)
FROM
g2_ChildEntity, g2_FileSystemEntity
WHERE
g2_ChildEntity.g_parentId = 6
AND
g2_FileSystemEntity.g_pathComponent = 'TREE_1.mpg'
AND
g2_ChildEntity.g_id = g2_FileSystemEntity.g_id
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
(mysql): update g2_SequenceId set id=LAST_INSERT_ID(id+1);
--------------------------------------------------------------------------------
copy(C:\WINNT\TEMP\php3A.tmp,
C:\Inetpub\www.exackley.com\g2data\albums\/TREE_1.mpg)
filesize(C:\Inetpub\www.exackley.com\g2data\albums\/TREE_1.mpg)
filesize(C:\Inetpub\www.exackley.com\g2data\albums\TREE_1.mpg)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_TkPropertyMimeTypeMap.g_toolkitId
FROM
g2_TkPropertyMap,
g2_TkPropertyMimeTypeMap
WHERE
g2_TkPropertyMap.g_name =
g2_TkPropertyMimeTypeMap.g_propertyName
AND
g2_TkPropertyMimeTypeMap.g_mimeType = 'video/mpeg'
AND
g2_TkPropertyMap.g_name = 'dimensions-and-duration'
--------------------------------------------------------------------------------
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\ffmpeg/classes/FfmpegToolkit.class)
file_exists(C:\Inetpub\www.exackley.com\g2data\cache\module/ffmpeg/0/0/0.inc)
Executing: cmd /c "
"C:\Inetpub\www.exackley.com\html\gallery2\modules\ffmpeg\ffmpeg.exe"
"-i" "C:\Inetpub\www.exackley.com\g2data\albums\TREE_1.mpg" "-vstats"
2> "C:\Inetpub\www.exackley.com\g2data\tmp\g2d3E.tmp" "
file_exists(C:\Inetpub\www.exackley.com\g2data\tmp\g2d3E.tmp)
filesize(C:\Inetpub\www.exackley.com\g2data\tmp\g2d3E.tmp)
unlink(C:\Inetpub\www.exackley.com\g2data\tmp\g2d3E.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
Failed to create item type gallerymovieitem, falling back on unknown
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\core/classes/GalleryUnknownItem.class)
is_uploaded_file(C:\WINNT\TEMP\php3A.tmp)
file_exists(C:\WINNT\TEMP\php3A.tmp)
realpath(C:\Inetpub\www.exackley.com\html\gallery2\modules\core\classes/../../../)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\debug/classes/DebugStatusFormatter.class)
file_exists(C:\Inetpub\www.exackley.com\g2data\smarty\templates_c\%%1801718095)
is_dir(C:\Inetpub\www.exackley.com\g2data\smarty\templates_c\%%1801718095)
file_exists(C:\Inetpub\www.exackley.com\g2data\smarty\templates_c\%%1801718095)
is_writeable(C:\Inetpub\www.exackley.com\g2data\smarty\templates_c\%%1801718095)
file_exists(C:\Inetpub\www.exackley.com\g2data\smarty\templates_c\%%1801718095/v_2)
file_exists(C:\Inetpub\www.exackley.com\html\gallery2\modules\debug\classes/../templates/DebugStatusFormatter.tpl.local)
stat(C:\Inetpub\www.exackley.com\html\gallery2\modules\debug\classes/../templates/DebugStatusFormatter.tpl)
Posts: 8601
hm.. didn't give any useful info.. just looks like ffmpeg doesn't like that file.
try from the command line:
ffmpeg.exe -i TREE_1.mpg -vstats
and see what happens.. you should see a few lines of text which includes the movie duration and dimensions.
Posts: 8
Error while parsing header. I get this on some and some gives the file stats (size bit rate, etc) and then says unrecognized option '-vstats'
Posts: 3236
Perhaps try a newer version of ffmpeg?
Posts: 8
I just got the 0.4.9 version and I'm getting the same results.
Anyone have any ideas for another video database solution?
I just can't find anything that creates thumbnails for me. Or, will even let me upload a thumb I've created.
Thanks for all the help.
james
Posts: 7994
How about you post a link to TREE_1.mpg so that we can try it out with our copies of ffmpeg?
Posts: 24
Did this ever get solved? I am running into a similar error when uploading movies to a G2 Dark Fibre install.
Thanks,
Danny.
Posts: 7994
rdnovo, we'll resolve your problem in your new forum topic
Posts: 2
Hello everyone,
My ffmpeg.exe is OK on windows xp with xampp (apache server)
Take ffmpeg.exe from
http://www.videohelp.com/download/ffmpeggui03c.zip
or
http://www.freecodecs.net/files/ffmpeggui03c.zip
put only ffmpeg.exe file in some directory - in my case c:\xx
(i think outside web site directory will be better than inside)
Path to FFMPEG -> /xx/ffmpeg.exe
Path includes ffmpeg.exe and / is used instead of \
everything works fine!
Good Luck!