مقارنة بروتوكول نقل بيانات البث المباشر على YouTube
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يتوافق "البث المباشر على YouTube" مع بروتوكولات النقل التالية للعملاء الخارجيين:
بروتوكول نقل البيانات |
مشفَّر |
برامج ترميز الفيديو المتوافقة |
تعليق |
RTMP |
لا |
H.264 |
مناسب للبث المباشر العادي أو السريع أو الفائق السرعة |
RTMPS |
نعم |
H.264 |
مناسب للبث المباشر العادي أو السريع أو الفائق السرعة |
HLS |
نعم |
H.264 وH.265 (HEVC) |
أفضل لدقة 4K بسبب توافقه مع HEVC متوافق مع تقنية HDR غير مناسب لوقت الاستجابة الفائق السرعة. |
DASH |
نعم |
H.264 وVP9 |
أفضل لدقة 4K بسبب إتاحة VP9 غير مناسب لوقت الاستجابة الفائق السرعة. |
بروتوكول المراسلة في الوقت الفعلي (RTMPS) هو بروتوكول مستخدَم على نطاق واسع لبث الفيديو، وقد اعتمدته خدمة "بث YouTube المباشر" منذ إطلاقها.
بروتوكول المراسلة الآمن في الوقت الفعلي (RTMPS) هو إضافة آمنة لبروتوكول RTMP.
تفيد بروتوكولات RTMPS صنّاع المحتوى والمشاهدين على حد سواء من خلال منع هجمات الوسيط على جانب نقل البيانات في أحداث البث المباشر. يضمن ذلك نقل كل بيانات البث المباشر الخاصة بصنّاع المحتوى، بما في ذلك الفيديو والصوت وإشارات التحكّم، بشكل آمن إلى خوادم YouTube، ما يحميها من التلاعب أو الاعتراض أثناء نقلها.
يتم أيضًا تشفير بروتوكولَي النقل البث المباشر وفق بروتوكول HTTP (HLS) والبث الديناميكي التكيُّفي عبر HTTP (DASH)، تمامًا مثل بروتوكول RTMPS. وهي تتوافق أيضًا مع برامج الترميز التي لا تتوافق مع بروتوكولَي RTMP وRTMPS. يمكن لبرامج ترميز الفيديو من الجيل التالي، مثل VP9 وترميز الفيديو عالي الكفاءة (HEVC)، أن توفّر ضغطًا أفضل بكثير مقارنةً ببرنامج H.264، ما يتيح للمستخدمين إما البث بجودة أعلى لمعدل نقل بيانات معيّن أو البث بالجودة نفسها مع استخدام معدل نقل بيانات أقل، ما قد يقلّل من التخزين المؤقت. وهذا يجعل عملية نقل البيانات باستخدام HLS أو DASH خيارًا جيدًا للمحتوى المميّز الذي يتطلّب جودة ودقة أعلى، ولكن مع وقت استجابة أطول نسبيًا. يُرجى العِلم أنّ عملية إدخال بيانات HLS وDASH تؤدي عادةً إلى وقت استجابة أطول من RTMP لأنّ HLS وDASH يعتمدان على الشرائح.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eYouTube Live Streaming supports four ingestion protocols: RTMP, RTMPS, HLS, and DASH, each with different features and capabilities.\u003c/p\u003e\n"],["\u003cp\u003eRTMP and RTMPS are suitable for normal, low, or ultra-low latency live streaming, with RTMPS providing secure, encrypted transmission.\u003c/p\u003e\n"],["\u003cp\u003eHLS and DASH are encrypted, support advanced codecs like HEVC and VP9, and are better suited for 4K and high-resolution streaming but have higher latency.\u003c/p\u003e\n"],["\u003cp\u003eHLS and DASH offer improved video compression compared to H.264, allowing for higher quality at the same bitrate or equivalent quality with a lower bitrate.\u003c/p\u003e\n"]]],["YouTube Live Streaming uses RTMP, RTMPS, HLS, and DASH protocols. RTMP and RTMPS, the latter being a secure extension, support H.264 and are suitable for low-latency streams. Encrypted HLS supports H.264 and H.265 (HEVC), while encrypted DASH supports H.264 and VP9, both being ideal for 4K and HDR content. HLS and DASH are segment based and offer better compression, but are not suitable for ultra-low latency.\n"],null,["# YouTube Live Streaming Ingestion Protocol Comparison\n\nYouTube Live Streaming supports the following ingestion protocols for\nthird-party clients:\n\n| Ingestion Protocol | Encrypted | Video Codecs Supported | Comment |\n|----------------------------------------------------|-----------|------------------------|-----------------------------------------------------------------------------------------------------|\n| RTMP | No | H.264 | Suitable for normal, low, or ultra-low latency live streaming. |\n| [RTMPS](/youtube/v3/live/guides/rtmps-ingestion) | Yes | H.264 | Suitable for normal, low, or ultra-low latency live streaming. |\n| [HLS](/youtube/v3/live/guides/hls-ingestion) | Yes | H.264, H.265 (HEVC) | Better for 4K resolution because of HEVC support. Supports HDR. Not suitable for ultra-low latency. |\n| [DASH](/youtube/v3/live/guides/encoding-with-dash) | Yes | H.264, VP9 | Better for 4K resolution because of VP9 support. Not suitable for ultra-low latency. |\n\n*Real Time Messaging Protocol (RTMPS)* is a widely-used protocol for video\nstreaming that YouTube Live has accepted since the service began.\n\n*Real Time Messaging Protocol Secure (RTMPS)* is a secure extension to RTMP.\nRTMPS benefits both content creators and viewers by preventing man-in-the-middle\nattacks on the ingestion side of livestreams. This ensures that all of a\ncreator's live streaming data---including video, audio, and control signals---is\nsecurely transmitted to YouTube's servers, protecting it from tampering or\ninterception in transit.\n\nThe *HTTP Live Streaming (HLS)* and *Dynamic Adaptive Streaming over HTTP\n(DASH)* ingestion protocols are also encrypted, like RTMPS. They also support\ncodecs that RTMP and RTMPS don't. Next-generation video codecs such as VP9 and\n*High Efficiency Video Coding (HEVC)* can offer much better compression relative\nto H.264, allowing users to either stream with higher quality for a given\nbitrate or stream with the same quality while using a lower bitrate, which could\ndecrease buffering. This makes HLS or DASH ingestion a good choice for premium\ncontent that requires higher quality and higher resolution, albeit at a\nrelatively higher latency. Note that HLS and DASH ingestion typically incur\ngreater latency than RTMP because HLS and DASH are segment-based."]]