-
Notifications
You must be signed in to change notification settings - Fork 27
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
Warning: escapeshellarg() expects parameter 1 to be string, array given (...) #45
Comments
Thanks for issue reporting @YohannLYD. What is the value of $fichier? |
The value of $fichier returns the path to the media file ("uploads/film.mp4" in my case). |
@YohannLYD Could you tell me if #46 fix the bug |
@mhor unfortunaltely it doesn't, I run into a "sh: mediainfo: command not found" error when I make the changes to MediaInfoCommandRunner.php |
@YohannLYD |
Hi @mhor, On the cli, both "mediainfo" and "/usr/local/bin/mediainfo" can run the command. protected $command = 'mediainfo'; by the absolute path of the binary (/usr/local/bin/mediainfo in my case) protected $command = '/usr/local/bin/mediainfo'; I can properly get the information of my media. It's kind of good for me this way, but I am not sure about how to make the bundle work just by providing "mediainfo" instead its full path. |
@YohannLYD IMO the $mediaInfo = new MediaInfo();
$mediaInfo->setConfig('command', '/usr/local/bin/mediainfo');
$mediaInfoContainer = $mediaInfo->getInfo('music.mp3'); see #47 |
Ok @YohannLYD I close this issue |
I am running into this error when I am trying to fetch information from a media.
Here is my controller action code :
I can't find the part where I am doing something wrong. Any idea where the issue comes from ?
I am using Symfony 2.3, MediaInfo v0.7.77 (installed on Mac OS X via homebrew) and running my server locally with MAMP.
The text was updated successfully, but these errors were encountered: