天道酬勤,学无止境

id3-tag

iOS 中 ID3 标签的正确编码(Correct encoding for ID3 Tags in iOS)

问题 我正在尝试从我的项目中的一堆 mp3 文件中获取 ID3 标签。 AudioFileGetProperty(audioFile, kAudioFilePropertyInfoDictionary, &size, &metadataDictionary); 如果标签不包含西里尔符号,则设备上的输出看起来正常。 但是我有时会得到这样的值: album = "\U00ce\U00f2\U00ea\U00f0\U00fb\U00f2\U00ee\U00e5 \U00d0\U00e0\U00e4\U00e8\U00ee 102.5FM"; "approximate duration in seconds" = "260.623"; 它会导致符号显示失真(http://d.pr/i/X9wG)。 有没有办法将这些符号解码成可读的形式? 我已经试过了 NSString* value = [metadataDictionary objectForKey: key]; NSData* data = [value dataUsingEncoding: NSASCIIStringEncoding]; NSString* string = [[NSString alloc] initWithData: data encoding: NSUTF8StringEncoding]; 但结果保持不变。

2022-01-14 05:22:06    分类:技术分享    iphone   ios   audio   encoding   id3-tag

Correct encoding for ID3 Tags in iOS

I'm trying to get ID3 tags from a bunch of mp3 files in my project. AudioFileGetProperty(audioFile, kAudioFilePropertyInfoDictionary, &size, &metadataDictionary); If the tag doesn't contain cyrillic symbols, the output looks OK on the device. However I sometimes get values like this one: album = "\U00ce\U00f2\U00ea\U00f0\U00fb\U00f2\U00ee\U00e5 \U00d0\U00e0\U00e4\U00e8\U00ee 102.5FM"; "approximate duration in seconds" = "260.623"; and it leads to distorted symbols display (http://d.pr/i/X9wG). Is there any way to decode these symbols into a readable form? I've already tried NSString* value =

2022-01-14 03:24:22    分类:问答    iphone   ios   audio   encoding   id3-tag

使用 getid3 (id3v2) 将 APIC 写入 mp3 文件(writing APIC to mp3 file with getid3 (id3v2))

问题 我正在尝试使用 getid3 将 APIC 图片写入 mp3 文件。 这是代码; $cover = "/home/user/public_html/artwork/cover.jpg"; $TagData['attached_picture'][]=array( 'picturetypeid'=>2, // Cover. More: module.tag.id3v2.php -> function APICPictureTypeLookup 'description'=>'cover', // text field 'mime'=>'image/jpeg', // Mime type image 'data'=>$cover // Image data ); 但它不起作用。 图像大小约为 1.5 MB。 我应该调整它的大小还是某事? 我哪里错了? 谢谢 回答1 查看他们网站上的演示:http://www.getid3.org/source/demo.write.phps 代码片段: $fd = fopen($_FILES['userfile']['tmp_name'], 'rb') $APICdata = fread($fd, filesize($_FILES['userfile']['tmp_name'])); fclose ($fd); $imagetypes =

2021-12-22 23:59:07    分类:技术分享    php   id3-tag   apic   getid3

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 APICPictureTypeLookup 'description'=>'cover', // text field 'mime'=>'image/jpeg', // Mime type image 'data'=>$cover // Image data ); but it doesnt work. image size is around 1.5 MB. should i resize it or sth ? where am i wrong ? Thanks

2021-12-20 12:20:01    分类:问答    php   id3-tag   apic   getid3

使用 PHP 读取/写入 mp4 id3 标签(read / write mp4 id3 tags with PHP)

问题 我需要至少能够读取并最好写入连接到 mp4 视频文件的 id3 标签。 我已经研究过使用 getId3() 但它有太多的功能,以至于很难找到适用于 mp4 视频文件的功能,并且编写演示文件不适用于 mp4 文件 回答1 因此,ID3 标签通常仅用于 MP3 流。 我相信 MPEG 4 使用它自己的元数据格式(在meta原子内)。 有关详细信息,请参阅 http://atomicparsley.sourceforge.net/mpeg-4files.html。

2021-10-30 12:12:09    分类:技术分享    php   mp4   id3   read-write   id3-tag

read / write mp4 id3 tags with PHP

I need to be able to at very least read and preferably write id3 tags connected to an mp4 video file. I've looked into using getId3() but it's got so many functions that finding those applicable to mp4 video files is difficult and the write demo files don't work on mp4 files

2021-09-01 15:43:44    分类:问答    php   mp4   id3   read-write   id3-tag

How to read Beats-per-minute tag of mp3 file in windows store apps C#?

i am trying to read bpm embedded in mp3 file like this one : i have tried using Windows.Storage.FileProperties.MusicProperties but it only contains title, singer, etc. it can't read the bpm i showed before. im looking into https://taglib.github.io/ they seems not having such function too. is there any workaround to this?

2021-08-11 05:48:04    分类:问答    c#   windows-store-apps   mp3   id3-tag

How do you edit MP3 files in Java (ID3)?

Lately, I've been trying to write a program that can change the ID3 tags of an mp3 file. I managed to write code to get those tags quite easily, but I have no idea how to write code to modify the tags. I assumed that there may be no easy solution, so I decided to try out some libraries. It may be my fault, but none of them work.. Anyway, my question is: how do I write my own code to modify ID3 tags? If it's not that easy, are there any libraries you can recommend?

2021-04-29 14:33:49    分类:问答    java   metadata   mp3   id3   id3-tag

Why do MP3 files use Synchsafe Integers?

I started reading mp3-files in c++. All went well until I read the specs of the ID3-Tag. There is some information in the ID3v2-Header about its size stored in so-called Synchsafe Integers. That is a four-byte integer where the most significant bit of each byte is set to zero. I found out how to convert it to an ordinary integer, but I cannot stop asking myself why an integer value is stored in such an unnecessarily complicated way. I hope there is someone who can tell me why it is stored this way.

2021-04-15 15:17:33    分类:问答    integer   mp3   id3   id3-tag

Read ID3 Tags of an MP3 file

I am trying to read ID3 from a mp3 file thats locally stored in the SD card. I want to basically fetch Title Artist Album Track Length Album Art

2021-04-13 20:46:25    分类:问答    android   mp3   id3   id3-tag