アットウィキロゴ
@zigen 's note
掲示板 掲示板 ページ検索 ページ検索 メニュー メニュー
「radio」の編集履歴(バックアップ)一覧に戻る

radio - (2012/03/20 (火) 14:41:55) のソース

*最も古く、最もシンプルな公共放送・・・ラジオ
#contents()
http://bit.ly/jYi56N

**お気に入りのAMラジオ番組
***NHK:昼のいこい
 よく実家で聴いていた、オープニング曲は故,古関 裕而さんが作った名曲
+http://bit.ly/kX0lgp
+http://www.youtube.com/watch?v=sLhM5AUUET4

***ニッポン放送:オールナイトニッポン
 多くの人の青春じゃないでしょうか?
+http://bit.ly/k4QM1p
+http://www.allnightnippon.com/

----

*Lameでmp3
録音したラジオをLameでmp3にエンコードする手順。
-[$file *]コマンドでファイルのエンコード、ビットレート、ステレオ/モノラルを調べる。(以下のような感じ)
 [ファイル名: エンコード, 形式, Layer, version, ビットレート, サンプリングレート, ステレオ/モノラル]
 くりぃむしちゅーANN #012 2005年09月27日.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo
 くりぃむしちゅーANN #129 2008年04月01日.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo
 くりぃむしちゅーANN #130 2008年04月15日.mp3: MPEG ADTS, layer III, v1,  96 kbps, 44.1 kHz, JntStereo

#ref(http://www20.atwiki.jp/mynote?cmd=upload&act=open&pageid=79&file=110522-0001.jpg)

http://www9.atwiki.jp/lameaintmp3encoder/pages/12.html

http://www001.upp.so-net.ne.jp/yama-k/codec/lame3.98option.html

http://landisk.kororo.jp/debian/07_lame.php

----

**一括リネームシェル
http://vikslinuxtips.blogspot.com/2007/10/linux-shell.html

スペースを_(アンダーバー)にリネームするシェル
 #!/bin/bash
 for file in ./*
 do
   mv "$file" `echo $file | tr ' ' '_'`
 done


拡張子を一括変換(上書きしないので、.mp3.mp3ファイルが出来上がってしまうため)
 #!/bin/bash
 for file in ./*
 do 
    mv "$file' `echo $file | sed -e "s/mp3.mp3/mp3/g"` 
 done

----

**Lameで一括変換(モノラル、ビットレート64kbps)
 #!/bin/bash
 for file in ./*
 do
   lame -m m -b 64 "$file"
 done

#ref(110507-0001.jpg)

----

**ID3タグの編集
ID3タグの編集にはiTunesを使う手もあるが、フリーソフトのTagrやMusongを使う手もあります。

***Tagr
http://veadardiary.blog29.fc2.com/blog-entry-2584.html
#ref(http://www20.atwiki.jp/mynote?cmd=upload&act=open&pageid=79&file=110523-0003.jpg)

***Musong
http://veadardiary.blog29.fc2.com/blog-entry-1015.html
#ref(http://www20.atwiki.jp/mynote?cmd=upload&act=open&pageid=79&file=110523-0004.jpg)

***id3v2コマンドの使用
 zigen3rd-no-mac-pro:encode zigen3rd$ id3v2 
 Usage: id3v2 [OPTION]... [FILE]...
 Adds/Modifies/Removes/Views id3v2 tags, modifies/converts/lists id3v1 tags
  -h,  --help               Display this help and exit
  -f,  --list-frames        Display all possible frames for id3v2
  -L,  --list-genres        Lists all id3v1 genres
  -v,  --version            Display version information and exit
  -l,  --list               Lists the tag(s) on the file(s)
  -d,  --delete-v2          Deletes id3v2 tags
  -s,  --delete-v1          Deletes id3v1 tags
  -D,  --delete-all         Deletes both id3v1 and id3v2 tags
  -C,  --convert            Converts id3v1 tag to id3v2
  -1,  --id3v1-only         Writes only id3v1 tag
  -2,  --id3v2-only         Writes only id3v2 tag
  -r,  --remove-frame "FRAMEID"   Removes the specified id3v2 frame
  -a,  --artist       "ARTIST"    Set the artist information
  -A,  --album        "ALBUM"     Set the album title information
  -t,  --song         "SONG"      Set the song title information
  -c,  --comment      "DESCRIPTION":"COMMENT":"LANGUAGE"  
                            Set the comment information (both
                            description and language optional)
  -g,  --genre   num        Set the genre number
  -y,  --year    num        Set the year
  -T,  --track   num/num    Set the track number/(optional) total tracks
 You can set the value for any id3v2 frame by using '--' and then frame id
 For example: 
        id3v2 --TIT3 "Monkey!" file.mp3
 would set the "Subtitle/Description" frame to "Monkey!". 


 $id3v2 -a "ARTIST" -A "ALBUM" -t "SONG" -c "COMMENT" -g "1" -y "2005" -T "2/3"  un.mp3
以上のオプションでこんな感じになる
#ref(http://www20.atwiki.jp/mynote?cmd=upload&act=open&pageid=79&file=110523-0005.jpg)

***LAMEでも設定できる(らしい
http://www001.upp.so-net.ne.jp/yama-k/codec/lame3.98option.html

----

&color(red){スプリクト組むのがめんどくさい場合}

1.lameかid3v2でタグを全部消す!
 #!/bin/bash +x
 for file in *.mp3
 do
 #基本的にはbasenameと同じ
 path="${file}"
 echo "path: $path"
 #ここでun.mp3(ファイル名+拡張子)のフルネームが取れる
 basename=${path##*/}
 echo "basename: $basename"
 #ここでun(ファイル名)が取れる
 filename=${basename%.*}
 echo "filename: $filename"
 #ココでid3タグを全消し!
   id3v2 -D "${file}"
 done

↓
2.Tagrで付け直す!
最近更新されたスレッド
人気記事ランキング
ウィキ募集バナー