-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
169 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ yuroyoro | |
roy-n-roy | ||
tetsu-koba | ||
TE-TakuyaSugitani | ||
Bugfire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
# WebRTC SFU Sora を使って Momo を動かしてみる | ||
|
||
Sora は時雨堂が開発、販売している WebRTC SFU です。 | ||
ここでは [Sora Labo](https://sora-labo.shiguredo.jp/) は無料で Sora を試すことのできるサービスである Sora Labo を使った例を載せています。 | ||
|
||
## Sora Labo を使う | ||
|
||
GitHub アカウントを用意して https://sora-labo.shiguredo.jp/ にサインアップしてください。 | ||
|
||
- チャネル ID に `GitHubUsername@好きな文字列` を指定してください | ||
- --metadata を利用し取得したシグナリングキーを signaling_key を指定することで簡単に利用できます | ||
|
||
```shell | ||
$ ./momo --no-audio --port 0 sora --auto --video-codec VP8 --video-bitrate 500 wss://example.com/signaling open-momo | ||
$ ./momo --no-audio --port 0 sora --auto --video-codec VP8 --video-bitrate 500 wss://sora-labo.shiguredo.jp/signaling shiguredo@sora-labo-open-momo --metadata '{"signaling_key": "ここにシグナリングキーを指定して下さい"}' | ||
``` | ||
|
||
### マルチストリームで使ってみる | ||
|
||
以下の OS の環境で GUI で使うことで送受信が可能です。 | ||
|
||
- macOS 15.10 | ||
- Ubuntu 18.04 Jetson Nano | ||
- Raspbian | ||
|
||
``` | ||
./momo --resolution VGA --no-audio --port 0 --use-sdl --show-me sora --auto --video-codec VP8 --video-bitrate 1000 wss://sora-labo.shiguredo.jp/signaling shiguredo@momo-sdl-sora --multistream --role upstream --metadata '{"signaling_key": "ここにシグナリングキーを指定して下さい"}' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "h264_format.h" | ||
|
||
// webrtc | ||
#include "absl/types/optional.h" | ||
#include "api/video_codecs/sdp_video_format.h" | ||
|
||
// modules/video_coding/codecs/h264/h264.cc より | ||
webrtc::SdpVideoFormat CreateH264Format(webrtc::H264::Profile profile, | ||
webrtc::H264::Level level, | ||
const std::string& packetization_mode) { | ||
const absl::optional<std::string> profile_string = | ||
webrtc::H264::ProfileLevelIdToString( | ||
webrtc::H264::ProfileLevelId(profile, level)); | ||
return webrtc::SdpVideoFormat( | ||
cricket::kH264CodecName, | ||
{{cricket::kH264FmtpProfileLevelId, *profile_string}, | ||
{cricket::kH264FmtpLevelAsymmetryAllowed, "1"}, | ||
{cricket::kH264FmtpPacketizationMode, packetization_mode}}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef RTC_H264_FORMAT_H_ | ||
#define RTC_H264_FORMAT_H_ | ||
|
||
#include <string> | ||
|
||
#include "media/base/codec.h" | ||
#include "media/base/h264_profile_level_id.h" | ||
|
||
webrtc::SdpVideoFormat CreateH264Format(webrtc::H264::Profile profile, | ||
webrtc::H264::Level level, | ||
const std::string& packetization_mode); | ||
|
||
#endif // RTC_H264_FORMAT_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.