Confronto tra il protocollo di importazione dei live streaming di YouTube
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
YouTube Live Streaming supporta i seguenti protocolli di importazione per
client di terze parti:
Protocollo di importazione |
Criptato |
Codec video supportati |
Commento |
RTMP |
No |
H.264 |
Adatto per live streaming con latenza normale, bassa o molto bassa. |
RTMPS |
Sì |
H.264 |
Adatto per live streaming con latenza normale, bassa o molto bassa. |
HLS |
Sì |
H.264, H.265 (HEVC) |
Ideale per la risoluzione 4K grazie al supporto di HEVC. Supporta l'HDR. Non adatto alla latenza molto bassa. |
DASH |
Sì |
H.264, VP9 |
Ideale per la risoluzione 4K grazie al supporto di VP9. Non adatto alla latenza molto bassa. |
Real Time Messaging Protocol (RTMPS) è un protocollo ampiamente utilizzato per lo streaming video che YouTube Live accetta fin dall'inizio del servizio.
Real Time Messaging Protocol Secure (RTMPS) è un'estensione sicura di RTMP.
RTMPS avvantaggia sia i creator di contenuti che gli spettatori, in quanto impedisce attacchi man-in-the-middle
sul lato dell'acquisizione dei live streaming. In questo modo, tutti i dati di live streaming di un
creator, inclusi video, audio e segnali di controllo, vengono
trasmessi in modo sicuro ai server di YouTube, proteggendoli da manomissioni o
intercettazioni durante il transito.
Anche i protocolli di importazione HTTP Live Streaming (HLS) e Dynamic Adaptive Streaming over HTTP (DASH) sono criptati, come RTMPS. Supportano anche codec che RTMP e RTMPS non supportano. I codec video di nuova generazione come VP9 e
High Efficiency Video Coding (HEVC) possono offrire una compressione molto migliore rispetto
a H.264, consentendo agli utenti di riprodurre in streaming con una qualità superiore per un determinato
bitrate o riprodurre in streaming con la stessa qualità utilizzando un bitrate inferiore, il che potrebbe
ridurre il buffering. Ciò rende l'importazione HLS o DASH una buona scelta per i contenuti premium
che richiedono una qualità e una risoluzione più elevate, anche se con una
latenza relativamente più elevata. Tieni presente che l'importazione HLS e DASH in genere comporta
una latenza maggiore rispetto a RTMP perché HLS e DASH sono basati su segmenti.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-08-21 UTC.
[null,null,["Ultimo aggiornamento 2025-08-21 UTC."],[[["\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."]]