@zigen 's note

radio

最終更新:

mynote

- view
管理者のみ編集可

最も古く、最もシンプルな公共放送・・・ラジオ

http://bit.ly/jYi56N

お気に入りのAMラジオ番組

NHK:昼のいこい

よく実家で聴いていた、オープニング曲は故,古関 裕而さんが作った名曲
  1. http://bit.ly/kX0lgp
  2. http://www.youtube.com/watch?v=sLhM5AUUET4

ニッポン放送:オールナイトニッポン

多くの人の青春じゃないでしょうか?
  1. http://bit.ly/k4QM1p
  2. 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
    

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

ID3タグの編集

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

Tagr

http://veadardiary.blog29.fc2.com/blog-entry-2584.html

Musong

http://veadardiary.blog29.fc2.com/blog-entry-1015.html

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

以上のオプションでこんな感じになる

LAMEでも設定できる(らしい

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


スプリクト組むのがめんどくさい場合

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で付け直す!

目安箱バナー