owen-oj / laravel-getid3 Goto Github PK
View Code? Open in Web Editor NEWA Laravel package to extract metadata from media files. mp3, aac, etc. It can be used with files stored on different disks such as local disk, S3 etc.
License: MIT License
A Laravel package to extract metadata from media files. mp3, aac, etc. It can be used with files stored on different disks such as local disk, S3 etc.
License: MIT License
Hello.
Is it possible to change the received data and save it to mp3 using PHP?
$track = GetId3::fromDiskAndPath('images', 'myfile.mp4');
Throws that error.
Does it work with Laravel 9 ?
I discovered something strange behavior
When I try to get info of a video that was captured in Android devices getid3 gives the wrong info for width and height info
Normally resolution_x is the width and resolution_y is height but for Android videos, resolution_x shows the height, and resolution_y shows the width
For example please try with this file
https://filetransfer.io/data-package/EPzTvE6o#link
Hi, I need to write the tags on a mp3, wav and aiff file. tags like title, artist, bpm, artwork, etc.
This package works fine on Laravel 9, except for this:
Seeding: Database\Seeders\SongSeeder
ErrorException
Undefined array key "comments"
at vendor/owen-oj/laravel-getid3/src/GetId3.php:101
97▕ * @throws \getid3_exception
98▕ */
99▕ private function comments()
100▕ {
➜ 101▕ return $this->extractInfo()['comments'];
102▕ }
103▕
104▕ /**
105▕ * Get the title of the media file.
+2 vendor frames
3 database/seeders/SongSeeder.php:31
Owenoj\LaravelGetId3\GetId3::getArtist()
+8 vendor frames
12 database/seeders/DatabaseSeeder.php:17
Illuminate\Database\Seeder::call()
This is my seeder:
$files = Storage::disk('musicas')->allFiles();
sort($files);
foreach ($files as $file) {
if (!Song::find($file)) {
$filename = basename($file, ".mp3");
$filepath = Storage::disk('musicas')->path($file);
$track = new GetId3($filepath);
$artist = $track->getArtist();
$title = $track->getTitle();
$playtime = $track->getPlaytime();
Song::create([
'artist' => $artist,
'title' => $title,
'playtime' => $playtime,
'filename' => $filename,
'filesize' => Storage::disk('musicas')->size($file),
'filepath' => $filepath,
'last_modified' => Storage::disk('musicas')->lastModified($file),
]);
}
}
Hi, Can you write metadata with this package?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.