{"id":320,"date":"2012-05-13T14:18:07","date_gmt":"2012-05-13T12:18:07","guid":{"rendered":"http:\/\/wp.oktay.com\/?p=320"},"modified":"2012-10-19T21:50:40","modified_gmt":"2012-10-19T19:50:40","slug":"ffmpeg-and-copy-metatag-from-flac-to-mp3-incl-converting","status":"publish","type":"post","link":"https:\/\/wp.oktay.com\/?p=320","title":{"rendered":"ffmpeg and copy metatag from flac to mp3 &#8211; incl converting"},"content":{"rendered":"<blockquote>\n<p><code>EXT=\"m4a\";<br \/>\na=`echo $1 | sed -s \"s\/\\.m4a\/\/g\"`;<br \/>\nDIR=\"mp3\"<\/p>\n<p>if [ ! -d \"$DIR\" ]; then<br \/>\n        mkdir mp3<br \/>\nfi<\/p>\n<p>echo \"#############################################\"<br \/>\necho converting $a<br \/>\necho command: ffmpeg -i \"$1\" -id3v2_version 3 -write_id3v1 1 -map_metadata 0:g:0  -acodec libmp3lame -ar 44100 -ab 224k -y -metadata date=\"2012\" -metadata copyright=\"\" \"mp3\/$a.mp3\"<br \/>\necho \"#############################################\"<\/p>\n<p>#ffmpeg -i \"$1\" -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y \"$a.mp3\"<br \/>\nffmpeg -i \"$1\" -id3v2_version 3 -write_id3v1 1 -map_metadata 0:g:0  -acodec libmp3lame -ar 44100 -ab 224k -y -metadata date=\"2012\" \"mp3\/$a.mp3\"<br \/>\n#echo ffmpeg -i \"$1\" -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y \"$a.mp3\"<\/p>\n<p><\/code><\/p>\n<table border=\"1\" cellpadding=\"2\" cellspacing=\"0\">\n<thead>\n<tr>\n<th>Windows<\/th>\n<th>iTunes (Info tab)<\/th>\n<th>id3v2.3<\/th>\n<th>ffmpeg key<\/th>\n<th>ffmpeg example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Title<\/td>\n<td>Title<\/td>\n<td>TIT2<\/td>\n<td>title<\/td>\n<td class=\"pre\">-metadata title=&#8221;Adagio for Strings&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Subtitle<\/td>\n<td>Description<br \/>(Video tab)<\/td>\n<td>TIT3<\/td>\n<td>TIT3<\/td>\n<td class=\"pre\">-metadata TIT3=&#8221;Op. 91&#8243;<\/td>\n<\/tr>\n<tr>\n<td>Rating<\/td>\n<td>n\/a<\/td>\n<td>n\/a<\/td>\n<td>n\/a<\/td>\n<td class=\"pre\">n\/a<\/td>\n<\/tr>\n<tr>\n<td>Comments<\/td>\n<td>Comments<\/td>\n<td>COMM<\/td>\n<td>n\/a<\/td>\n<td class-\"pre\"=\"\">not implemented<\/td>\n<\/tr>\n<tr>\n<td>Contributing artists<\/td>\n<td>Artist<\/td>\n<td>TPE1<\/td>\n<td>artist<\/td>\n<td class=\"pre\">-metadata artist=&#8221;Yo Yo Ma\/London Symphony&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Album artist<\/td>\n<td>Album Artist<\/td>\n<td>TPE2<\/td>\n<td>album_artist<\/td>\n<td class=\"pre\">-metadata album_artist=&#8221;London Symphony&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Album<\/td>\n<td>Album<\/td>\n<td>TALB<\/td>\n<td>album<\/td>\n<td class=\"pre\">-metadata album=&#8221;String Classics&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Year<\/td>\n<td>Year<\/td>\n<td>TYER<\/td>\n<td>date<\/td>\n<td class=\"pre\">-metadata date=&#8221;2012&#8243;<\/td>\n<\/tr>\n<tr>\n<td>#<\/td>\n<td>Track Number<\/td>\n<td>TRCK<\/td>\n<td>track<\/td>\n<td class=\"pre\">-metadata track=&#8221;3\/12&#8243;<br \/>(means track number 3 of 12)<\/td>\n<\/tr>\n<tr>\n<td>Genre<\/td>\n<td>Genre<\/td>\n<td>TCON<\/td>\n<td>genre<\/td>\n<td class=\"pre\">-metadata genre=&#8221;Classical&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Publisher<\/td>\n<td>n\/a<\/td>\n<td>TPUB<\/td>\n<td>publisher<\/td>\n<td class=\"pre\">-metadata publisher=&#8221;London Publishing&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Encoded by<\/td>\n<td>n\/a<\/td>\n<td>TENC<\/td>\n<td>encoded_by<\/td>\n<td class=\"pre\">-metadata encoded_by=&#8221;Telarc&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Author URL<\/td>\n<td>n\/a<\/td>\n<td>WOAR<\/td>\n<td>n\/a<\/td>\n<td class=\"pre\">not implemented<\/td>\n<\/tr>\n<tr>\n<td>Copyright<br \/>(Not Editable)<\/td>\n<td>n\/a<\/td>\n<td>TCOP<\/td>\n<td>copyright<\/td>\n<td class=\"pre\">-metadata copyright=&#8221;\u2117 Telarc&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Composers<\/td>\n<td>n\/a<\/td>\n<td>TCOM<\/td>\n<td>composer<\/td>\n<td class=\"pre\">-metadata composer=&#8221;J.S. Bach&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Conductors<\/td>\n<td>n\/a<\/td>\n<td>TPE3<\/td>\n<td>performer<\/td>\n<td class=\"pre\">-metadata performer=&#8221;T. S. Miles&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Group description<\/td>\n<td>Grouping<\/td>\n<td>TIT1<\/td>\n<td>TIT1<\/td>\n<td class=\"pre\">-metadata TIT1=&#8221;The Classics&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Mood<\/td>\n<td>n\/a<\/td>\n<td>n\/a<\/td>\n<td>n\/a<\/td>\n<td class=\"pre\">n\/a<\/td>\n<\/tr>\n<tr>\n<td>Part of set<\/td>\n<td>Disc Number<\/td>\n<td>TPOS<\/td>\n<td>disc<\/td>\n<td class=\"pre\">-metadata disc=&#8221;1\/2&#8243;<br \/>(means disc number 1 of 2)<\/td>\n<\/tr>\n<tr>\n<td>Initial key<\/td>\n<td>n\/a<\/td>\n<td>TKEY<\/td>\n<td>TKEY<\/td>\n<td class=\"pre\">-metadata TKEY=&#8221;G&#8221;<\/td>\n<\/tr>\n<tr>\n<td>Beats-per-minute<\/td>\n<td>BPM<\/td>\n<td>TBPM<\/td>\n<td>TBPM<\/td>\n<td class=\"pre\">-metadata TBPM=&#8221;120&#8243;<\/td>\n<\/tr>\n<tr>\n<td>Part of a compilation<\/td>\n<td>Part of a compilation<\/td>\n<td>TCMP<\/td>\n<td>TCMP<\/td>\n<td class=\"pre\">-metadata TCMP=&#8221;1&#8243;<br \/>(either blank = false or 1 = true)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>*table source: http:\/\/ jonhall. info \/ how_to \/ create_id3_tags_using_ffmpeg<br \/>\nwell done dude.  \ud83d\ude42<\/p>\n<p>use as script:<\/p>\n<p>or .flac<\/p>\n<p><code>echo \"\" > con_vert.sh;chmod 755 con_vert.sh;ls \u00a0*.m4a| while read line; do echo .\/convert.sh \\\"$line\\\" >> con_vert.sh;done;.\/con_vert.sh ;rm con_vert.sh;<br \/>\n<\/code>\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>EXT=&#8221;m4a&#8221;; a=`echo $1 | sed -s &#8220;s\/\\.m4a\/\/g&#8221;`; DIR=&#8221;mp3&#8221; if [ ! -d &#8220;$DIR&#8221; ]; then mkdir mp3 fi echo &#8220;#############################################&#8221; echo converting $a echo command: ffmpeg -i &#8220;$1&#8243; -id3v2_version 3 -write_id3v1 1 -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y -metadata date=&#8221;2012&#8243; -metadata copyright=&#8221;&#8221; &#8220;mp3\/$a.mp3&#8221; echo &#8220;#############################################&#8221; #ffmpeg -i &#8220;$1&#8221; -map_metadata 0:g:0 -acodec libmp3lame&hellip; <a class=\"more-link\" href=\"https:\/\/wp.oktay.com\/?p=320\">Continue reading <span class=\"screen-reader-text\">ffmpeg and copy metatag from flac to mp3 &#8211; incl converting<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-bash","entry"],"_links":{"self":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=320"}],"version-history":[{"count":14,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":324,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions\/324"}],"wp:attachment":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}