id3v2 - Write / change raw ID3 tags? -


i have mp3 file:

b{     255 251 144 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 73 110 102 111 0 0 0 15     0 0 30 161 0 50 3 66 0 3 5 8 10 13 15 18 20 24 26 28     31 33 36 38 41 43 47 49 52 54 56 59 61 64 66 69 72     75 77 79 82 84 87 89 92 95 98 100 103 105 107 110     112 115 118 ~3277535 more~ } 

and have metadata want put in it:

h{     { "title" "superstar (feat. krewella)" }     { "artist" "pegboard nerds & nghtmre" }     { "num" 1 } } 

factor doesn't have vocabulary write id3 tags (yet), have raw file data , data i'd write.

wikipedia isn't help, , mpg123 source doesn't clear either.

how put data hashtable id3v2 header?

we don't have support writing id3 tags yet. python has , have support wrapping python modules. if willing pragmatic first sudo pip install mutagen then:

using: kernel python python.syntax sequences ; in: examples.python.mutagen  py-qualified-from: mutagen.easyid3 => easyid3 ( name -- obj ) ; py-methods: mutagen:easyid3:easyid3 =>     __setitem__ ( self key value -- )     save ( self -- ) ;  : <easyid3> ( str -- easyid3 )     >py mutagen.easyid3:easyid3 ;  : setitem ( obj key val -- )     [ >py ] bi@ __setitem__ ;  : update-tags ( easyid3 assoc -- )     dupd [ first2 setitem ] each save ; 

then can write id3 tags this:

[     "/path/to/mp3-file.mp3" <easyid3>       {          { "title" "superstar (feat. krewella)" }         { "artist" "pegboard nerds & nghtmre" }     } update-tags ] with-destructors 

of course doing in pure factor isn't impossible. have study on mp3 , id3v1-2 specifications.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -