[Gambas-user] MP3 Tags

Johny Provoost johny.provoost at ...27...
Sun Nov 20 20:01:15 CET 2011


Op 20-11-11 03:15, Boyd, Craig schreef:
> id3info is VERY helpful!  Thanks everyone for your input/reply!
>
> Craig
>
> On 11/19/2011 06:37 PM, Jesus wrote:
>> El 20/11/11 01:17, Benoît Minisini escribió:
>>> Le 19/11/2011 22:50, Boyd, Craig a écrit :
>>>> Hello All,
>>>>
>>>> I am not new to programming, but I am VERY new to Gambas.  I found the
>>>> example sound project and was able to play an MP3 ~ very easy&   cool!
>>>> So my first question to you guys is: Is it possible to use Gambas to
>>>> retrieve MP3 tags and if so, how?
>>>>
>>>> Thanks,
>>>>
>>>> Craig
>>>>
>>> I'm sure there is some command-line tool that can do that for you and
>>> you will just have to call it from Gambas and get the result.
>>>
>>> I just don't know its name! :-)
>>>
>>> Regards,
>>>
>> Yes. This is the same advice I gave the other day to a guy.
>>
>> I have successfully tested "id3info" command from "libid3-tools" package.
>>
>> Now, it's a matter of calling it from gambas using shell or exec.
>>
>> Regards

exiftool is also interesting

In Gambas2
   SHELL "exiftool " & "\"" & vFile & "\"" & " >" & "/home/johny/tagstmp 
" WAIT
where vfile is the mp3 file and /home/johny/tagstmp is the file where 
all the tags are written to.
if you put a picture in the mp3 file as a cover you can get it with
    SHELL "exiftool -b -Picture " & "\"" & vfile & "\"" & " >" & 
FMain.EigenDir & "/home/johny/cover.jpg " WAIT





More information about the User mailing list