Announcement

  •  » Extensions
  •  » VideoJS poster generation fails (path issue?)

#1 2014-06-23 23:40:34

ShadowHunter
Member
2014-06-23
12

VideoJS poster generation fails (path issue?)

Hi,

I hope someone can help me out. I recently discovered the fabulous VideoJS plugin... all playback works fine except for generating posters...

I installed FFMPEG and tried it via CMD which generates the poster like expected.

FFMPEG was also added to PATH, so far so good...

However when I sync I get tons of these messages:

Error poster running ffmpeg, try it manually:
ffmpeg -itsoffset -4 -i ./galleries/Misc/2014/April/MVI_3456.MP4 -vcodec mjpeg -vframes 1 -an -f rawvideo -y ./galleries/Misc/2014/April/pwg_representative/MVI_3456.jpg

I have a feeling it has something to do with the path the plugin is using...

Do I need to install FFMPEG in a particular location? Any troubleshooting tips would be very welcome, I would love to get it up and running.

I also did notice this error message at the top of each playing video: Warning: strpos(): Offset not contained in string in D:\03. SERVER\01. HTTP\fotoalbum\include\functions_url.inc.php on line 765

Thank you

ShadowHunter

OS: WINNT (SERVER 2012 R2)
PHP: 5.5.9 [2014-06-23 23:33:23]
MySQL: 5.6.16-log [2014-06-23 23:33:23]
GD bundled (2.1.0 compatible)

Last edited by ShadowHunter (2014-06-23 23:48:19)

Offline

 

#2 2014-06-26 12:44:22

ShadowHunter
Member
2014-06-23
12

Re: VideoJS poster generation fails (path issue?)

Hello,

Cannot say I'm a bit disappointed in the Piwigo community support... but okay... let me share my findings:

I managed to fix the issue more or less. It was indeed a path issue, for some reason FFMPEG.EXE could not be located via PHP even though the path was added to Windows (working via CMD) and added in php.ini

So I ended up hard coding the full path in the plugin and append the images file path from the DB after having removed ./

It was also needed to swap ' with "  in the $ffmpeg variable to avoid to invalid parameters

I know it sucks but for now it works...

Still I'm hoping someone can explain to me why PHP cannot acces FFMPEG (located in C:\FFMPEG\BIN) and why I have to use the full path to the pictures as well. Why is ./galleries/... not working? I don't wan't to leave it this way :-)

Hope someone can shed some light on it.

With best regards,

ShAdOwHuNtEr

Offline

 

#3 2014-07-23 11:49:32

xbgmsharp
Member
1970-01-01
215

Re: VideoJS poster generation fails (path issue?)

Hello,

Sorry for the delay.
I added a new option to specify FFMPEG and MediaInfo patch . Hope this help.
By default the filename must without space. I update the code to support file with special and space character.
I hope to release this new version by this weekend.

To answer the fact that you PHP install can not access the real FFMPEG.
I can be from multiple source,
Do you add C:\FFMPEG\BIN in  your ENV path?
Does C:\FFMPEG is readable by any users on the System?

Regarding the full patch, not sure I understand.
You should not normal upload process should work.

Feedback are welcome so I can update the documentation.

Offline

 
  •  » Extensions
  •  » VideoJS poster generation fails (path issue?)

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact