Code Monkey home page Code Monkey logo

Comments (9)

mhor avatar mhor commented on July 30, 2024

Thanks for issue reporting @YohannLYD.

What is the value of $fichier?

from php-mediainfo.

YohannLYD avatar YohannLYD commented on July 30, 2024

The value of $fichier returns the path to the media file ("uploads/film.mp4" in my case).

from php-mediainfo.

mhor avatar mhor commented on July 30, 2024

@YohannLYD Could you tell me if #46 fix the bug

from php-mediainfo.

YohannLYD avatar YohannLYD commented on July 30, 2024

@mhor unfortunaltely it doesn't, I run into a "sh: mediainfo: command not found" error when I make the changes to MediaInfoCommandRunner.php

from php-mediainfo.

mhor avatar mhor commented on July 30, 2024

@YohannLYD mediainfo command doesn't exist, it's probably not the right command to run mediainfo. Wich command did you use to run mediainfo on cli?

from php-mediainfo.

YohannLYD avatar YohannLYD commented on July 30, 2024

Hi @mhor,

On the cli, both "mediainfo" and "/usr/local/bin/mediainfo" can run the command.
I made a slight change on MediaInfoCommandRunner.php which made the bundle work.
If I change the line

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.

from php-mediainfo.

mhor avatar mhor commented on July 30, 2024

@YohannLYD IMO the $command property should be configurable like:

$mediaInfo = new MediaInfo();
$mediaInfo->setConfig('command', '/usr/local/bin/mediainfo');
$mediaInfoContainer = $mediaInfo->getInfo('music.mp3');

see #47

from php-mediainfo.

YohannLYD avatar YohannLYD commented on July 30, 2024

@mhor it works now. I ran into another error but you can see #47 for my suggestions.

from php-mediainfo.

mhor avatar mhor commented on July 30, 2024

Ok @YohannLYD I close this issue

from php-mediainfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.