FC2_piyoのAPIをちょっと試してみた時に書いてみた。 FC2_piyo the API tried a little bit when I write. 大したことはできませんが、使ってみようという奇特な人がどこかにいるかもしれないのでさらしておきます。 Not much that we can not use that to try somewhere that beneficently person may be bleached. まあ、Twitterとは集まってる人間がまた別なので、あまりAPI叩いてIMのステータスやら、ブログやら、SBMやらを更新してもうざがられるだけかもしれませんが(笑)RSSフィードの読み込みも目障りっていう人もいるみたいで。 Well, Twitter has to do to another human being, not let API pounding IM status, let blog, SBM let ZAGA to update the other may be as much (laughs) RSS feeds and read an eyesore I like people. それ言い出すと、毒にも薬にもならない一行コメントみたいなものも、他人が読めば目障りかもしれないわけで、そういう自覚はないのか? It delirium, neither harm nor comment line like some other people might be annoying when you read it, I realize not? と逆に問いたくもなりますが。 And vice versa, but also問いたく. 傍から見てる分には目糞鼻糞なところもあるやろうし、そこを楽しむものでもあるだろうからなぁ。 I'm from the par
1bfbe
a-minute目糞ROUSHI nose dirt and some places, there to enjoy it and also am from. #!/usr/bin/perl -- my $api_key='your_api_key'; my $pid="your_pid"; my $piyo = Piyo::Simple->new( api_key => $api_key, pid => $pid, ); #http://piyo.fc2.com/api.html #詳しい説明は上記URLで。 #! / usr / bin / perl - my $ api_key = 'your_api_key'; my $ pid = "your_pid"; my $ piyo = Piyo:: Simple-> new (api_key => $ api_key, pid => $ pid, ); # Http://piyo.fc2.com/api.html # detailed explanation of the above URL. #URLの表示例$piyo->public(30)->apiurl; $piyo->send("テストです")->apiurl; $piyo->comment(30,10)->apiurl; $piyo->user(fc2piyostaff2,30)->apiurl; $piyo->status(fc2piyostaff2,f)->apiurl; #データ取得例$piyo->status(midoler,f)->getdata; #メッセージの送信例$piyo->send("おはようございます")->post; #XMLパース例#これはまだまだ#$piyo->public(30)->getdata->xmlparse; Example # URL of $ piyo-> public (30) -> apiurl; $ piyo-> send ( "test") -> apiurl; $ piyo-> comment (30,10) -> apiurl; $ piyo-> user (fc2piyostaff2, 30) -> apiurl; $ piyo-> status (fc2piyostaff2, f) -> apiurl; # example data retrieval $ piyo-> status (midoler, f) -> getdata; # $ piyo-Message example > send ( "Good morning") -> post; # XML Perth This is still # # $ piyo-> public (30) -> getdata-> xmlparse; >> 続きを読む >> Read more ちょっとメモ書き。 A little notepads. ■ LAME MP3 Encoder ■ LAME MP3 Encoder $ tar zxvf lame-3.97.tar.gz $ cd lame-3.97 $ ./configure --prefix=$HOME/local $ make $ make install $ Tar zxvf lame-3.97.tar.gz $ cd lame-3.97 $. / Configure - prefix = $ HOME / local $ make $ make install
■ Sound eXchange SOX ■ Sound eXchange SOX $ tar zxvf sox-14.0.1.tar.gz $ cd sox-14.0.1 $ ./configure --prefix=$HOME/local $ make $ make install $ Tar zxvf sox-14.0.1.tar.gz $ cd sox-14.0.1 $. / Configure - prefix = $ HOME / local $ make $ make install
% source ~/.cshrc % Source ~ /. Cshrc
■ LAME3.95.1コマンドラインオプション ■ LAME3.95.1 command line ■ sox サウンドファイルのコンバータ ■ sox sound file converters ■ sox - SOund eXchange - 会津大学UNIXウィキ ■ sox - SOund eXchange - University UNIX wiki ■ [Perl] wav を mp3 に変換する ■ [Perl] wav to convert to mp3 ■ FLV-Info-0.18 ■ FLV-Info-0.18 ■ .cshrc - csh、tcshの設定 ■. Cshrc - csh, tcsh configuration ■ サンプリング周波数 ■ sampling frequency 今回は、nelly2pcmを使用して、midomiからダウンロードしたFLVファイルのWAV変換について書こうと思います。 This time, nelly2pcm using, midomi FLV files downloaded from the conversion of WAV and write. 実は、FFmpegや携帯動画変換君を使用するやり方より、真っ先に試したのがこっちでした。 In fact, FFmpeg and mobile video conversion from the way you use, the first to be tried over here. ここ最近のFLV to mp3なツールをいろいろ試してはみたものの、どうもうまく再生できなかった。 FLV to mp3 this recent experiment is a tool, but tried, I could not play well. 調べてみると、Nellymoserというコーデックがちょっと厄介な存在になっているみたいで、これをデコードできるものを探していると、 nelly2pcmを知りました。 Scrutiny, Nellymoser the codec is a bit awkward seems to exist and is able to decode and we are looking for, nelly2pcm for him. ■ nelly2pcm ■ nelly2pcm Decodes Nellymoser Asao encoded audio in FLV files. Turn the raw pcm into a wav, mp3, or whatever you like. Decodes Nellymoser Asao encoded audio in FLV files. Turn the raw pcm into a wav, mp3, or whatever you like.
Downloadsから、ソースをダウンロードし解凍して、makeします。 Downloads, download and extract the source, make. 使い方が分からなかったのでソースをちょっと見てみると、コメントで説明がされてありました。 Since not know how to use a quick look at the source, explained in the comments. /* / *
* to get a wav do something like: * To get a wav do something like:
* ./nelly2pcm test.flv | sox -t raw -c 1 -2 -r * ./nelly2pcm Test.flv | sox-t raw-c 1 -2-r -s - test.wav - s - test.wav
*/ * /
nelly2pcm test.flvまではいいとしても、soxというコマンドは初めて知りました。 nelly2pcm test.flv as is all very well, sox first learned of the command. ■ SoX - Sound eXchange ■ SoX - Sound eXchange ■ SoX - Sound eXchange ■ SoX - Sound eXchange 音声ファイルの変換やエフェクトや切り出しみたいなことができるみたいですが、詳しくはよく分かりません。 Effects and audio file conversion and cut like I can, but the more I'm not sure. 幸いにも使用しているLinuxに入っていたので、以下のコマンドを叩いてみた。 Fortunately, you are using Linux, so I was, pounding his command. nelly2pcm foo.flv | sox -r 44100 -t raw -c 1 -s -w - bar.wav nelly2pcm foo.flv | sox-r 44100-t raw-c 1-s-w - bar.wav
これで、wavに変換されて、手元のMedeia Player Classicで再生できました。 Now, wav has been converted, the local Medeia Player Classic to play.