From 4392f066b926cb129cbd04e34eea9c996596de55 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 21 Nov 2022 22:26:02 -0800 Subject: [PATCH 1/4] Create CODECS.md --- CODECS.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 CODECS.md diff --git a/CODECS.md b/CODECS.md new file mode 100644 index 000000000..be000fb4b --- /dev/null +++ b/CODECS.md @@ -0,0 +1,29 @@ +# Scrypted Codec Settings + +These codec settings are the optimal settings for streaming destinations within Scrypted. Streaming destinations include: + * HomeKit + * Google Home + * Alexa + * Chromecast + * Web + +* h264 video. Do **NOT** use H.264+, "Super" H.264, H.264B, or any other fancy variant. **TURN IT OFF**. Sometimes this unsupported variant setting is called "Smart Code(c)" and it should be set to "Close" or "Off". +* Configure all available camera substreams. Not all cameras may have a third stream. + * 1080p Cameras: + * 1920x1080, 2 Mbit variable bitrate (local streaming) + * 1280x720, 1 Mbit, variable bitrate (remote/low streaming) + * 640x480p, 500 Kbit variable bitrate (low streaming, if a third stream is available) + * 2K Cameras: + * 2560x1440, 3 Mbit variable bitrate (local streaming) + * 1280x720, 1 Mbit, variable bitrate (remote/low streaming) + * 640x480p, 500 Kbit variable bitrate (low streaming, if a third stream is available) + * 4K Cameras: + * 3840x2160, 8 Mbit, variable bitrate (local streaming) + * 1280x720, 1 Mbit, variable bitrate (remote/low streaming) + * 640x480p, 500 Kbit variable bitrate (low streaming, if a third stream is available) +* 4 second keyframe interval + * `Keyframe Interval` is the number of seconds between keyframes. `Frame Interval` is the number frames between keyframes. + * Cameras are typically configured in `Frame Interval` rather than `Keyframe Interval`. The formula for `Frame Interval` value is: `Frame Interval = 4 * FPS`. So if `FPS` is `30` as specified, `Frame Interval` should be set to `120`. +* Audio codecs, in order of preference: + * Opus (used for live streaming to HomeKit or web) + * PCM-ulaw/G711u (raw format suitable for web) From 6bdac377af475dc32e318223408be366f6dfd949 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 21 Nov 2022 22:27:58 -0800 Subject: [PATCH 2/4] Update CODECS.md --- CODECS.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CODECS.md b/CODECS.md index be000fb4b..f6ce7bbba 100644 --- a/CODECS.md +++ b/CODECS.md @@ -1,11 +1,13 @@ # Scrypted Codec Settings These codec settings are the optimal settings for streaming destinations within Scrypted. Streaming destinations include: - * HomeKit - * Google Home - * Alexa - * Chromecast - * Web +* HomeKit +* Google Home +* Alexa +* Chromecast +* Web + +# Settings * h264 video. Do **NOT** use H.264+, "Super" H.264, H.264B, or any other fancy variant. **TURN IT OFF**. Sometimes this unsupported variant setting is called "Smart Code(c)" and it should be set to "Close" or "Off". * Configure all available camera substreams. Not all cameras may have a third stream. From ed81d3fd20ff400200fd4d81a3ae9743fe0d5758 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 21 Nov 2022 22:29:27 -0800 Subject: [PATCH 3/4] Update CODECS.md --- CODECS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODECS.md b/CODECS.md index f6ce7bbba..1aa8cc6cc 100644 --- a/CODECS.md +++ b/CODECS.md @@ -16,7 +16,7 @@ These codec settings are the optimal settings for streaming destinations within * 1280x720, 1 Mbit, variable bitrate (remote/low streaming) * 640x480p, 500 Kbit variable bitrate (low streaming, if a third stream is available) * 2K Cameras: - * 2560x1440, 3 Mbit variable bitrate (local streaming) + * 2560x1440, 3.5 Mbit variable bitrate (local streaming) * 1280x720, 1 Mbit, variable bitrate (remote/low streaming) * 640x480p, 500 Kbit variable bitrate (low streaming, if a third stream is available) * 4K Cameras: From 70939c8a629db09ebfc94036b0e3c6f963eb0cc1 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 21 Nov 2022 22:31:01 -0800 Subject: [PATCH 4/4] Delete CODECS.md --- CODECS.md | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 CODECS.md diff --git a/CODECS.md b/CODECS.md deleted file mode 100644 index 1aa8cc6cc..000000000 --- a/CODECS.md +++ /dev/null @@ -1,31 +0,0 @@ -# Scrypted Codec Settings - -These codec settings are the optimal settings for streaming destinations within Scrypted. Streaming destinations include: -* HomeKit -* Google Home -* Alexa -* Chromecast -* Web - -# Settings - -* h264 video. Do **NOT** use H.264+, "Super" H.264, H.264B, or any other fancy variant. **TURN IT OFF**. Sometimes this unsupported variant setting is called "Smart Code(c)" and it should be set to "Close" or "Off". -* Configure all available camera substreams. Not all cameras may have a third stream. - * 1080p Cameras: - * 1920x1080, 2 Mbit variable bitrate (local streaming) - * 1280x720, 1 Mbit, variable bitrate (remote/low streaming) - * 640x480p, 500 Kbit variable bitrate (low streaming, if a third stream is available) - * 2K Cameras: - * 2560x1440, 3.5 Mbit variable bitrate (local streaming) - * 1280x720, 1 Mbit, variable bitrate (remote/low streaming) - * 640x480p, 500 Kbit variable bitrate (low streaming, if a third stream is available) - * 4K Cameras: - * 3840x2160, 8 Mbit, variable bitrate (local streaming) - * 1280x720, 1 Mbit, variable bitrate (remote/low streaming) - * 640x480p, 500 Kbit variable bitrate (low streaming, if a third stream is available) -* 4 second keyframe interval - * `Keyframe Interval` is the number of seconds between keyframes. `Frame Interval` is the number frames between keyframes. - * Cameras are typically configured in `Frame Interval` rather than `Keyframe Interval`. The formula for `Frame Interval` value is: `Frame Interval = 4 * FPS`. So if `FPS` is `30` as specified, `Frame Interval` should be set to `120`. -* Audio codecs, in order of preference: - * Opus (used for live streaming to HomeKit or web) - * PCM-ulaw/G711u (raw format suitable for web)