مقایسه پروتکل انتقال جریان زنده YouTube
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
YouTube Live Streaming از پروتکلهای جذب زیر برای مشتریان شخص ثالث پشتیبانی میکند:
پروتکل بلع | رمزگذاری شده است | کدک های ویدیویی پشتیبانی می شوند | نظر دهید |
---|
RTMP | خیر | H.264 | مناسب برای پخش زنده معمولی، کم یا بسیار کم. |
RTMPS | بله | H.264 | مناسب برای پخش زنده معمولی، کم یا بسیار کم. |
HLS | بله | H.264، H.265 (HEVC) | به دلیل پشتیبانی از HEVC برای وضوح 4K بهتر است. پشتیبانی از HDR برای تأخیر بسیار کم مناسب نیست. |
داش | بله | H.264، VP9 | برای وضوح 4K به دلیل پشتیبانی از VP9 بهتر است. برای تأخیر بسیار کم مناسب نیست. |
پروتکل پیام رسانی بلادرنگ (RTMPS) یک پروتکل پرکاربرد برای پخش ویدئو است که YouTube Live از زمان شروع این سرویس پذیرفته است.
پروتکل امن پیامرسانی زمان واقعی (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 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده 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."]]