{"id":71,"date":"2022-12-07T11:51:20","date_gmt":"2022-12-07T11:51:20","guid":{"rendered":"https:\/\/rtmp-server.com\/blog\/?p=71"},"modified":"2022-12-07T18:14:12","modified_gmt":"2022-12-07T18:14:12","slug":"how-does-rtmp-streaming-work","status":"publish","type":"post","link":"https:\/\/rtmp-server.com\/blog\/2022\/12\/07\/how-does-rtmp-streaming-work\/","title":{"rendered":"HOW DOES RTMP STREAMING WORK?"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px||40px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Real-time audio, video, and data transmission are made easier via the Real-Time Messaging Protocol (RTMP). Its capacity to sustain low-latency connections makes it a crucial part of live-streaming technology.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p align=\"justify\">\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Live streaming often operates as follows: A camera captures a live video stream, encoded and delivered to a video host or server online. The first mile is what is meant here. Following scaling and pushing over a Content Delivery Network (CDN), the processed feed is distributed over internet protocol to the user&#8217;s device. The stream would be sent to the Flash Player on the user&#8217;s end during this &#8216;final mile.&#8217; But RTMP is no longer running the final mile since Adobe Flash Player was retired. The relay must now be handed off to another protocol.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p align=\"justify\">\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">But RTMP is still extensively employed for the first mile. It efficiently sends chunked, data-rich streams by dividing them into smaller units and transmitting each one across a different virtual channel. RTMP establishes a constant channel between the client and the server, enabling the protocol to send data packets as a carrier.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p align=\"justify\">\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">In just a few seconds, RTMP completes a three-step process to send the data packets:<\/span><\/span><\/span><\/span><\/span><\/p>\n<p align=\"justify\">\n<ol>\n<li>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><b><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Acquisition:<\/span><\/span><\/span><\/b><\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">The client sends three blocks of data to the server during the capture. The server is informed of the protocol used in the first block. A timestamp is included with the second.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">After the server has confirmed that the first two blocks have been received, the third and final block is transmitted. The connection can be made once the third block has been successfully received.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/rtmp-server.com\/blog\/wp-content\/uploads\/2022\/12\/rtmp-work.png&#8221; alt=&#8221;HOW DOES RTMP STREAMING WORK?&#8221; title_text=&#8221;rtmp-work&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<ol>\n<li>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><b><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">The Connection<\/span><\/span><\/span><\/b><\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">The client and server exchange coded messages during the connection stage. Action Message Format is the connection&#8217;s code language (AMF). His dialogue aims to build rapport so that streaming may begin.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">In essence, during this stage, a message sequence is used by the client and server to negotiate a connection.<\/span><\/span><\/span><\/span><\/span><\/p>\n<ol start=\"2\">\n<li>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><b><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">The Stream<\/span><\/span><\/span><\/b><\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">The stream should be usable once the capture is finished and the connection has been made successfully. Although this procedure is intricate, the technology is built to make travel happen quickly.<\/span><\/span><\/span><\/span><\/span><\/p>\n<h2 align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><b><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">How To Set Up RTMP?<\/span><\/span><\/span><\/b><\/span><\/span><\/h2>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">An encoder (hardware or software) that supports Real Time Messaging Protocol is required to set up the protocol; an encoder is a sensing device that delivers feedback. And an RTMP server or online video platform (OVP), which broadcasts the stream to your audience, is required.<\/span><\/span><\/span><\/span><\/span><\/p>\n<ol>\n<li>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Attach your video source (camera) to your hardware or software for RTMP encoding.<\/span><\/span><\/span><\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Create a new live stream on your RTMP or OVP server <\/span><\/span><\/span><\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Configure your OVP&#8217;s encoding parameters <\/span><\/span><\/span><\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Enable RTMP delivery by entering the RTMP URL.<\/span><\/span><\/span><\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"color: #0e101a;\"> <span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Enter your stream name and RTMP URL in your encoder&#8217;s RTMP configuration settings. <\/span><\/span><\/span><\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Check the live stream.<\/span><\/span><\/span><\/span><\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Begin streaming<\/span><\/span><\/span><\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p align=\"justify\"><span style=\"font-family: Times New Roman, serif;\"><span style=\"font-size: medium;\"><span style=\"color: #0e101a;\"><span style=\"font-family: Calibri, serif;\"><span style=\"font-size: large;\">Video broadcasting and streaming protocols can be very complicated and technical area. Fortunately, video platforms keep the complexity hidden and give the end user a simple yet effective interface that lets you do anything you want with your live stream without impeding your creativity or accomplishing your objectives.<\/span><\/span><\/span><\/span><\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Real-time audio, video, and data transmission are made easier via the Real-Time Messaging Protocol (RTMP). Its capacity to sustain low-latency connections makes it a crucial part of live-streaming technology. Live streaming often operates as follows: A camera captures a live video stream, encoded and delivered to a video host or server online. The first mile [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-rtmp-server"],"_links":{"self":[{"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":5,"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/posts\/71\/revisions\/92"}],"wp:attachment":[{"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rtmp-server.com\/blog\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}