Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating Poster (same error) #166

Open
kuzco1 opened this issue Jun 7, 2020 · 0 comments
Open

Error creating Poster (same error) #166

kuzco1 opened this issue Jun 7, 2020 · 0 comments

Comments

@kuzco1
Copy link

kuzco1 commented Jun 7, 2020

Hello,
have installed a fresh installation of piwigo (latest version) and also with lastest version of js_video.
It seems that I will have exactly the same issue in (was also my thread).
#42 (comment)

All tools (mediainfo, ffmpgeg, ..) are in the path. I am using Windows2012 with MariaDB 10.4.

Have already change the following file function_sync2.php:
line:
$ffmpeg = $sync_options['ffmpeg'] ." -ss ".$sync_options['postersec']." -i "".$in."" -vcodec mjpeg -vframes 1 -an -f rawvideo -y "".$out. """;
to
$ffmpeg = $sync_options['ffmpeg'] ." -ss ".$sync_options['postersec']." -i ".$in." -vcodec mjpeg -vframes 1 -an -f rawvideo -y ".$out;
AND
line:
$ffmpeg = $sync_options['ffmpeg'] ." -ss ".$sync_options['postersec']." -i "".$in."" -vcodec png -vframes 1 -an -f rawvideo -y "".$out. """;
to
$ffmpeg = $sync_options['ffmpeg'] ." -ss ".$sync_options['postersec']." -i ".$in." -vcodec png -vframes 1 -an -f rawvideo -y "".$out;

Have also changed mediainfo.php:
line:
$output = shell_exec($sync_options['mediainfo'] ." --Full --Output=XML --Language=raw "". $filename."" 2>&1 ");
to
$output = shell_exec($sync_options['mediainfo'] ." --Full --Output=XML --Language=raw ". $filename." 2>&1 ");

Unfortunately this change does not solve the issue with mediainfo, I do get the following error:
Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in C:\piwigo\plugins\piwigo-videojs\include\mediainfo.php on line 35
Warning: SimpleXMLElement::__construct(): Der Befehl "mediainfo" ist entweder falsch geschrieben oder in C:\piwigo\plugins\piwigo-videojs\include\mediainfo.php on line 35
Warning: SimpleXMLElement::__construct(): ^ in C:\piwigo\plugins\piwigo-videojs\include\mediainfo.php on line 35
Mediainfo error reading file. Is MediaInfo install? Is MediaInfo in path?
Is the video accessible & readable, Try to run the command manually.
mediainfo --Full --Output=XML --Language=raw './galerien/Ausfluege_und_Events/2020/06_07_Test/2020_04_12_10_18_38_P4122116.mp4'
output: Der Befehl "mediainfo" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

It seems that the handove of 2>&1 is wrong.

To be clear, I am using Windows and thererfore there were problems with quotes.

Hopefully somesone can give me ther correct string of:
$output = shell_exec($sync_options['mediainfo'] ." --Full --Output=XML --Language=raw "". $filename."" 2>&1 ");
without any quotes.

KR
kuzco1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant