//edit user : No.4737 *必要な物 [#g64450da] **FFMPEG [#w4e93b46] http://ffmpeg.zeranoe.com/builds/~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_01.png) 「32-bit Builds (Static)」の(Latest)バージョンをダウンロードして解凍、適当なフォルダに配置。~ 64bitOSを使っている場合でも、64bit版だとFFMPEG Launcherとの連携がうまくいかなかったり、デバイスが使えなかったりするので32bit版をお勧めします。 .7zファイルが解凍できない場合は[[Lhaz>http://chitora.com/lhaz.html]]などで解凍できます。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_02.png) 解凍したらフォルダ名を「ffmpeg」に変更しておきます。(もちろんしなくてもいいですが)~ **FFMPEG Launcher [#ke8d6ec0] http://com.nicovideo.jp/community/co1197025 FFMPEGをGUIで扱えるようにするツール。必ず必要というわけではないですが、あると便利。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_03.png) #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_04.png) 上記ページの「お知らせ」内の【置き場】のURLを開き中央の「Download」からダウンロードできます。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_05.png) こちらも「FFMPEGLauncher」というフォルダを作成してその中に解凍します。~ **SCFH DSFやNDC、アマレコTVなど [#s0b10155] **ステレオミキサー、アマミキ!など [#aa307ede] *取り込み解像度の指定 [#ae6b5c27] SCFH DSFで取り込みを行う場合、取り込みの解像度をレジストリで指定する必要があります。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_06.png) Windowsキー+Rでファイル名を指定して実行ダイアログを開き、「regedit」と入力してOK。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_07.png) #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_08.png) #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_09.png) 「HKEY_CURRENT_USER\Software\SCFH DSF」を開き、「ffmpeg.exe」が無ければ作成~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_10.png) 「ffmpeg.exe」内で右クリック→新規→DWORD(32ビット)値を作成、名前を「Framerate」にする~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_11.png) 作成した「Framerate」を右クリック→修正 表記を10進数に変えてから、値のデータにFPSを入力する。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_12.png) 同様に新規→DWORD(32ビット)値で「Width」を作成、値の修正で10進数で解像度の幅を入力。~ また、「Height」も同様に作成して解像度の高さを10進数で入力。~ *FFMPEGLauncherの使い方 [#sbca1116] 「FFMPEGLauncher.exe」を起動~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_13.png) 映像→デバイス、ビットレート、出力解像度などを適宜指定。~ 映像のデバイスで、「SCFH DSF」などキャプチャツールを指定。~ ビットレートを適当に(500~1500ぐらい)設定。~ 入力解像度とフレームレートを、SCFHの場合、先ほどレジストリエディタで設定した値に設定。~ 音声→デバイスではアマミキ、ステレオミキサーなどを指定。~ コーデックはお好みで。(AACがおすすめ)~ ~ ffmpeg.exeのPATH指定で、参照をクリックして、先ほど配置したffmpeg/binの中にある「ffmpeg.exe」を指定しておく。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_18.png) 【出力】を「他配信サイト」に変更し、右の欄にひまストの配信コンソールの「配信設定」→「外部エンコーダー」→「サーバー」を選ぶと表示されるURLとStreamを/でつなげたものをコピー。~ 例)URLが「rtmp://rtmp.himast.in/himastrtmp/himawari?key=XXXXX」、Streamが「himawari」の場合、~「rtmp://rtmp.himast.in/himastrtmp/himawari?key=XXXXX&color(red){/};himawari」と入力。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_14.png) エンコードモードを「品質基準」にした場合、crf設定が小さいほど画質が上がる(ビットレートも上がる)~ リサイズオプションは「lanczos」がシャープ。~ スレッド数はCPUコアと同じ数にする。安定しない場合はコア数より少なめに。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_15.png) 基本プリセットのプリセットをPCのスペックに応じて変更。~ *配信開始 [#k1616218] 「配信開始」をクリックすると、配信が開始されます。~ #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_16.png) #ref(http://himast.in/wiki/image/FFMPEG/ffmpeg_17.png) *参考URL [#e5e7b81a] Windowsのffmpegで生放送する方法~ http://looooooooop.blog35.fc2.com/blog-entry-903.html