Parcourir la source

rtmp-services: Update Facebook recommended settings

Adds support for 1080p streams, adds support for 60 FPS streams,
implements bitrate matrix to restrict bitrates depending on the user's
resolution and framerate combination, and removes 480x360, as it was the
incorrect resolution (the correct resolution was supposed to be
640x360).
jp9000 il y a 4 ans
Parent
commit
84e6ad2b6d
1 fichiers modifiés avec 46 ajouts et 3 suppressions
  1. 46 3
      plugins/rtmp-services/data/services.json

+ 46 - 3
plugins/rtmp-services/data/services.json

@@ -468,12 +468,55 @@
                 "keyint": 2,
                 "keyint": 2,
                 "profile": "main",
                 "profile": "main",
                 "supported resolutions": [
                 "supported resolutions": [
+                    "1920x1080",
                     "1280x720",
                     "1280x720",
                     "852x480",
                     "852x480",
-                    "480x360"
+                    "640x360"
                 ],
                 ],
-                "max fps": 30,
-                "max video bitrate": 6000,
+                "bitrate matrix": [
+                    {
+                        "res": "640x360",
+                        "fps": 30,
+                        "max bitrate": 1000
+                    },
+                    {
+                        "res": "640x360",
+                        "fps": 60,
+                        "max bitrate": 1500
+                    },
+                    {
+                        "res": "852x480",
+                        "fps": 30,
+                        "max bitrate": 2000
+                    },
+                    {
+                        "res": "852x480",
+                        "fps": 60,
+                        "max bitrate": 3000
+                    },
+                    {
+                        "res": "1280x720",
+                        "fps": 30,
+                        "max bitrate": 4000
+                    },
+                    {
+                        "res": "1280x720",
+                        "fps": 60,
+                        "max bitrate": 6000
+                    },
+                    {
+                        "res": "1920x1080",
+                        "fps": 30,
+                        "max bitrate": 6000
+                    },
+                    {
+                        "res": "1920x1080",
+                        "fps": 60,
+                        "max bitrate": 9000
+                    }
+                ],
+                "max fps": 60,
+                "max video bitrate": 9000,
                 "max audio bitrate": 128
                 "max audio bitrate": 128
             }
             }
         },
         },