ExifTool Forum

ExifTool => Newbies => Topic started by: izzybizzy on April 04, 2022, 08:03:57 AM

Title: PHPExiftool to extract metadata from WTV files?
Post by: izzybizzy on April 04, 2022, 08:03:57 AM
Hi everyone,

I'm fairly new to the PHPExiftool so please excuse me if the question is kind of stupid :'( So I used composer to install PHPExiftool and I followed the documentation here https://github.com/romainneutron/PHPExiftool (https://github.com/romainneutron/PHPExiftool) to to test if I could read the metadata of a file on PHP but then my web page stops working when I insert the following code:

    $logger = new Logger('exiftool');
    $reader = Reader::create($logger);

    $metadatas = $reader->files("video/test.wtv")->first();


I thought it could be because of the .wtv file but I tested it with an mp4 file and the results are the same...
I just don't understand why.......
Title: Re: PHPExiftool to extract metadata from WTV files?
Post by: StarGeek on April 04, 2022, 11:15:01 AM
You should take note that this is a forum for exiftool and PHPExiftool is a wrapper created by someone else.  Searching these forums, PHPExiftool has only been mentioned twice and I'm not sure anyone here uses it.