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
4
votes
4 answers

Load external library in codeigniter

How can I access the getid3 class and use it in my controller? project /application /controller /libraries /getID3 /getid3 getid3.php /model /views
Owen Bula
  • 89
  • 1
  • 3
  • 11
3
votes
2 answers

Read remote mp3 file information using php

I am working on a site which will fetch mp3 details from a remote url. I need to write a cron job so that it gets all the song information such as the file name, path, artist, genre, bitrate, playing time, etc and put it in a database table. I…
Renjith R
  • 881
  • 2
  • 8
  • 19
3
votes
0 answers

Can getID3 get data of mp3 file that is input for FFT?

I want to compare two pieces of music to find similarities. But actually, I don't understand what Fast Fourier Transform is. I don't even know the parameter of the FFT function(from https://gist.github.com/mbijon/1332348). My questions are: What…
HyeonJunOh
  • 734
  • 1
  • 8
  • 22
3
votes
1 answer

getId3: Undefined index: playtime_string

I am trying to retrieve the duration of some songs in my project. I integrated getID3 in my app using the phansys bundle - it works fine but for some of my songs I get an error: Undefined index: playtime_string. Here is my source code: …
Hadj Ali Oussama
  • 784
  • 2
  • 8
  • 29
2
votes
0 answers

How to get duration of .webm audio file using getID3?

I'm building a Laravel application where we need to store user-submitted recordings as well as some metadata such as duration. Other answers have suggested using playtime_seconds or playtime_string but neither of these keys exist for me when I call…
Eli S
  • 63
  • 1
  • 6
2
votes
5 answers

writing APIC to mp3 file with getid3 (id3v2)

I am trying to write APIC picture to mp3 file with getid3. here is the code; $cover = "/home/user/public_html/artwork/cover.jpg"; $TagData['attached_picture'][]=array( 'picturetypeid'=>2, // Cover. More: module.tag.id3v2.php -> function…
Utku Dalmaz
  • 9,780
  • 28
  • 90
  • 130
2
votes
1 answer

php getID3 returning the same info of an updated file?

I'm using the getID3 library to get the details of a remote video file. I'm trying to read a portion of the file to get the details of the file, however some videos don't have the full details at the start. For these videos, I'm trying to download…
bilalba
  • 783
  • 1
  • 7
  • 22
1
vote
1 answer

PHP change variable into jpeg file

I have the following code to get the album cover of an mp3 using getid3, the problem is though, how do I copy this image and put it into a specified directory?
Lennart
  • 1,560
  • 5
  • 20
  • 38
1
vote
0 answers

I'm capturing screen by using media recorder and making video from blob but that video is not showing it's duration

I'm capturing screen by using media recorder and making video from blob but that video is not showing it's duration i have tried all way but not able to get the duration. I used get getID3(PHP) but not working i used many other ways but only one way…
shahrukh ijaz
  • 117
  • 3
  • 10
1
vote
2 answers

getId3 to get video duration in seconds

How do i get getId3's playtime_string duration in seconds? Is there away to get directly in seconds? Without using other php functions to look at the string and pull it out of the value?
codernoob8
  • 434
  • 1
  • 9
  • 24
1
vote
1 answer

Display image in browser with getID3

I want to create a php file that will return an image of an mp3 song when called as the src parameter in the img tag of html. Something like this: In order to get the image from the mp3 file I used the…
Nick
  • 241
  • 1
  • 2
  • 10
1
vote
0 answers

Cover Image Add option not working getid3

I tried to write a php script to get cover image and use it as cover image for mp3 file using getid3 php but the cover image is not showing up in media players. The cover image is showing in windows folders but not in media players icon badge...…
Tanish
  • 37
  • 8
1
vote
0 answers

Wordpress getID add active class

i have a Wordpress page called Jobs (https://www.bap.cc/jobs/). There i want to display two different posttypes (Jobs & Jobsangbote). Everything works well, except the active function in my php. The first block “Wir suchen“ is okay, “Wir bieten“…
maxi25a
  • 11
  • 1
1
vote
0 answers

How to remove ID3 tags fingerprint

I changed ID3 tags in mp3 file with php getID3.The changes made can be seen in VLC player by right click on track and select the information option it shows the changes but when i click on fingerprint option it finds out the original tags. My…
Amritpal Nagra
  • 650
  • 2
  • 6
  • 14
1
vote
2 answers

Unable to get an error from the array with getID3

I'm trying to get an error to return when I search the temporary file that is uploaded. ` $getID3 = new getID3; $file = $getID3->analyze($_FILES["file"]["tmp_name"]); //print_r($file); if (isset($file['error'])) { echo $file['error']; } else { …
Cameron Swyft
  • 448
  • 2
  • 6
  • 21
1
2 3 4