Questions tagged [getid3]

getID3 is an open source PHP library that extracts useful information from MP3s and other multimedia file formats

getID3() is a PHP script that extracts useful information (such as ID3 tags, bitrate, playtime, etc.) from MP3s and other multimedia file formats (Ogg, WMA, WMV, ASF, WAV, AVI, AAC, VQF, FLAC, MusePack, Real, QuickTime, Monkey's Audio, MIDI and more).

49 questions
1
vote
1 answer

How to call GetId3 classes within a namespaced application

I am sorry if this has once been asked but I lack understanding on how this should work. I am building a File Server to manage uploading and downloading of music files and have found getID3 library that I can use to get information about the files…
scruffycoder86
  • 527
  • 1
  • 5
  • 24
1
vote
1 answer

getID3 is not working in my local xampp

I'm trying to get the video duration in my local XAMPP setup. I have just downloaded the getID3 zip and added it as : include_once($base_url . '/getid3/getid3/getid3.php'); $getID3 = new getID3; $file = $getID3->analyze($filepath); But it renders…
Mohanraj
  • 97
  • 2
  • 12
1
vote
1 answer

Error: Cannot redeclare __autoload()

I am using Symfony and currently trying to use getId3: https://github.com/phansys/GetId3 I installed it via composer as mentioned in the link provided. The installation was successful. In the file where I want to use it, I have the following:
etiennenoel
  • 575
  • 2
  • 15
1
vote
2 answers

Generate playlist using php and getid3

New to php. I use a php script to generate a playlist, the first song entry in the list is blank for all fields (artist, title, length, filename). Why? Here's the script
Simmon
  • 11
  • 1
  • 2
1
vote
1 answer

know exactly the size of the converted video

I'm trying to know the size more accurately converted video using ffmpeg, I'm getting the actual size of the original video and output video and dividing the size of 2, the logic when I get the size of another video will multiply the value to know…
moderadorkl25
  • 213
  • 1
  • 2
  • 10
1
vote
1 answer

Insert Album Artist tag using getid3()

I am using the getID3() library to insert the metadata into songs, that have no metadata. I am able to insert all the tags except the Album Artist which is very important to me. In demo.simple.write.php I have given the details of the songs like…
Sandeep Rao
  • 341
  • 3
  • 9
  • 22
0
votes
1 answer

Write WMA tags in PHP

I use GetID3 to read and write tags on MP3 files. That library can read, but not write WMA metadata. Any suggestions for a library, extension or other relatively straightforward way edit WMA metadata.
yakatz
  • 2,142
  • 1
  • 18
  • 47
0
votes
0 answers

getId3 write_tag() not working in laravel

I am working on audio data in my project and I need to write ID3 tags of my mp3 files, but I am getting this error when calling WriteTags() of getId3 pacakge, I am using this package to write my id3 tags. any one has any idea about how to fix it. I…
Riosant
  • 344
  • 3
  • 15
0
votes
1 answer

Javascript Change function to check multiple id's

I would like the below functions to check for multiple product id's !== (1427, 1428, 1429). What is the best approach? Thank you. //add multistep add_action('wapf_before_wrapper', 'wapf_before_wrapper'); function wapf_before_wrapper($product) { …
epostema
  • 31
  • 3
0
votes
0 answers

Writing .mp3 tags with getID3() - PHP 7.2.31

I'm trying to write metatags for .mp3 files that don't have them. Using http://getid3.sourceforge.net/, I can analyse files, but when I try to write a tag I'm getting: Failed to write tags! Tag format "Track Title" is not allowed on "mp3.mp3" Has…
Dostrelith
  • 922
  • 5
  • 13
0
votes
1 answer

How do I save the files after the tags have been written?

I'm trying to change the track details of an mp3 file with the getID3 library, which I then want to save to a directory. How do I save the files after the tags have been written?
Pirta Matharu
  • 267
  • 1
  • 5
  • 22
0
votes
1 answer

getid3: download the full mp3 data from remote server

I'm using getid3 to get the file size and the time duration from a remote URL. getid3 does not work with remote URLs so the work-around is to download the mp3 to a temporary location, read the data and then delete it. Code:
Gregory Schultz
  • 864
  • 7
  • 24
0
votes
1 answer

check if file is fully downloaded using wget

I'm using php wget to download mp4 files from another server exec("wget -P files/ $http_url"); but I didn't find any option to check if file downloaded correctly, or not yet. I tried to get duration file using getID3(), but it always return good…
Zeta
  • 663
  • 1
  • 12
  • 27
0
votes
1 answer

Using getID3 to parse ID3

////////////////////// Solution ////////////////////// There was a problem with my syntax, I was using + instead of . to concatenate Music/ and $file. require ('getid3/getid3.php'); $getID3 = new getID3; if ($handle =…
0
votes
2 answers

i used getid3_write_lyrics3 library. not working

I used getid3_write_lyrics3 library. not working This my code: // Enter your filename here $filename = 'C:\xampp\htdocs\source2\test.mp3'; //Include getID3() library (can be in a different directory if full path is…
Bhavika
  • 11
  • 1