Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Obsのプラグイン作ってみた

11,553 views

Published on

社内LTでOpen Broadcast Softwareのプラグインを作成してみたことを発表しました

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Obsのプラグイン作ってみた

  1. 1. OBSのプラグイン 作ってみた2014/08/11 吉村 総一郎 ( )@sifue
  2. 2. twitch って知ってますか?
  3. 3. twitchとは 月4300万視聴者を誇る世界一のe-sports/ゲーム生放送配信サービス 2011年にストリーミングサービスjustinからゲーム専門にスピンオフ 先週justinの方がサービス終了してtwitchに専念することが発表された
  4. 4. e-sportsって 知ってますか?
  5. 5. 格ゲーとかサッカーの ゲームのこと?
  6. 6. と思いきや最近は、 リアルタイムストラテジー(RTS) トレーディングカード(TCG) ファーストパーソンシューティング(FPS) がほとんど
  7. 7. 中でも世界最大ユーザー数を誇る e-sportsゲームタイトル
  8. 8. League of Legends (通称:LoL)
  9. 9. LoLとは WindowsとMacでプレイすることができる基本無料の5対5で戦うRTS 2014年1月時点、ひと月のプレイヤー数が6700万人、日ごとの最大同時接 続プレイヤー数750万人 (参考:将棋の推定競技人口600万人) 現在プロリーグが存在する他、2013年時点の大会の優勝賞金は100万ド ル。世界大会の同時視聴者数は32万人(米Wikipeiaより)。 左の写真は世界大会の様子、右の写真はプロチームCloud9
  10. 10. twitchの放送を見ると、 ユーザーの半分程度が LoLの配信を視聴している なお次に多いのはMinecraftとHearthstone(TCG)
  11. 11. LoLの配信でもよく使われ twitchの配信手順で 一番最初に薦められる配信ソフト フリーなのでXSplitより先に勧められてます!
  12. 12. Open Broadcaster Software (通称:OBS)
  13. 13. OBSとは C++で書かれていて でホストされている オープンソースな生放送配信ツール github H264 ACCの配信、録画 Intel のQuick Sync Videoに対応しており高速 シーンや映像ソースの切替やレイアウトが自由 デフォルトで、Twitch, Youtubeなどの有名サービスに連携配信(連携はない けどニコ生でも利用は可) 様々なエンジンで動くゲームのウインドウのキャプチャに対応 プラグイン機能
  14. 14. そう、プラグイン機能
  15. 15. ニコニコ生放送連携する プラグインがかけないかチャレンジ!
  16. 16. OBSApiでできること ホットキーの追加 映像ソースの追加 音声ソースの追加 シーンの設定の追加 設定パネルの追加 レンダリング周りの拡張 マイクの挙動の拡張
  17. 17. 残念! OBSApiは映像ソースの追加がメインで 配信先の設定拡張は元にプルリク送るしかなさそう
  18. 18. とは言え、何かつくろうかなと Visual Studio 2013 Expressの VC++でMFCが使えない中 頑張ってみる
  19. 19. だがここ最近、ScalaとRubyという記述量が少ない 言語しか触ってなくて読む量が多くなるC++がキツ かった... //----------------------------------------------------- //logwindow x=(fullscreenX/2)-(600/2); y=(fullscreenY/2)-(500/2); intlogPosX =GlobalConfig->GetInt(TEXT("General"),TEXT("LogPosX"),-9999); intlogPosY =GlobalConfig->GetInt(TEXT("General"),TEXT("LogPosY"),-9999); intlogSizeX=GlobalConfig->GetInt(TEXT("General"),TEXT("LogSizeX"),600); intlogSizeY=GlobalConfig->GetInt(TEXT("General"),TEXT("LogSizeY"),500); bInsideMonitors=false; for(UINTi=0;i<monitors.num();i++)=""{=""if(=""logposx="">=monitors[i].rect.left&&logPosX<monitors[i].rec logPosY>=monitors[i].rect.top &&logPosY<monitors[i].rect.bottom) { bInsideMonitors=true; break; } } </monitors.num();>
  20. 20. そこに光明、 OBSのプラグインがC#で書けるプラグイン を発見CLRHostPlugin ただオリジナルは動かず、別のフォークして更新し てる人の を利用バイナリ
  21. 21. ログが出力されて設定画面だけが表示されるプラ グインを作った classMySetttingPanel:AbstractWPFSettingsPane { publicoverridestringCategory { get{return"ニコニコ生放送";} } publicoverrideboolHasDefaults() { returnfalse; } publicoverridevoidSetDefaults() { thrownewNotImplementedException(); } }
  22. 22. 満足したw その他にとりあえずつかえるかもしれないなぁと思った公開API FPSの表示 配信開始と終了のフック
  23. 23. とはいえOBS本体ビルドしたい... Visual Studio 2013 Professionalが必要そう (6万円なり...) 解決する良いアイディア募集中です
  24. 24. まとめ 世界のtwitchとe-sportsの盛り上がりすごい そこでよく利用されているOBSのプラグイン作った VC++でMFCなしでUI作るの自分には苦行すぎた C#とWPFの開発すごい楽 (経験的にJavaのGUI開発の倍ぐらい楽)
  25. 25. 以上 ご静聴ありがとうございました

×