To convert a live RTMP feed to HLS, ingest the RTMP stream with FFmpeg or an RTMP server such as SRS, then publish an HLS playlist and its media segments over HTTP(S). If the incoming audio and video codecs are compatible with your target players, you may be able to package them without re-encoding; transcoding is a separate choice for compatibility or adaptive-bitrate renditions.
What RTMP-to-HLS conversion does
RTMP is commonly used to send a live contribution feed to a server. HLS packages video into media segments and a playlist that a player requests over HTTP(S). Conversion changes how the stream is packaged and delivered; it does not automatically improve picture quality or create multiple quality levels. For an overview of HLS output structure, see the AWS Elemental MediaLive tutorial.
There are two processing choices. Stream copy (also called transmuxing) repackages compatible audio and video without encoding them again. Transcoding decodes and re-encodes media, which may be needed if the source codecs are unsuitable for the intended players, or if you need resized or lower-bitrate renditions. A copied single source does not become adaptive bitrate by itself.
Choose a conversion route
| Route | Best suited to | What to account for |
|---|---|---|
| FFmpeg HLS muxer | Operators who want direct control of ingest, packaging, and output files. | You manage the process, writable storage, HTTP(S) serving, cleanup, and monitoring. Stream copy works only when the source is compatible with the intended output. |
| SRS with HLS enabled | Self-hosted setups that want an RTMP server to generate HLS as part of its service. | Check the exact SRS version and configuration. The cited version 7.0 documentation labels that version unstable and shows HLS disabled by default. |
| AWS Elemental MediaLive and MediaPackage | Managed workflows that need an encoding and packaging pipeline, with a CDN distribution path available. | More services and configuration are involved. Verify current AWS console steps and service behavior; the published workflow example dates to 2019 and describes a contribution-input redundancy limitation. |
For a straightforward self-hosted conversion, start with FFmpeg. If you need managed operations, multiple renditions, or a broader distribution architecture, evaluate the SRS and AWS options against your latency, scaling, and resilience requirements.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problems#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Convert a live RTMP feed with FFmpeg
1. Check the source and prepare the output directory
Confirm that the RTMP URL is reachable and that it contains the audio and video streams you expect. Identify their codecs before choosing stream copy or encoders. Create an output directory that the FFmpeg process can write to, and configure your web server to serve its playlist and segment files over HTTP(S). Make sure the web server has suitable MIME types and access controls for your use case.
2. Start with a live HLS packaging command
This is an illustrative starting pattern, not a tested command or universal preset. Replace the example host, application, stream name, and output paths with values for your environment:
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
ffmpeg -i "rtmp://HOST/APP/STREAM"
-c:v copy -c:a copy
-f hls
-hls_time 4
-hls_list_size 6
-hls_flags delete_segments+temp_file
-hls_segment_filename "/var/www/hls/stream_%06d.ts"
"/var/www/hls/stream.m3u8"
The command copies video and audio into HLS segments without re-encoding, if FFmpeg accepts the incoming streams and the codecs suit your target players. If that is not true, select the needed input streams with explicit maps and configure appropriate encoders. For adaptive bitrate, define the encodes and rendition outputs explicitly and generate a master playlist; one copied source does not create those renditions.
3. Set segment length and live-window behavior deliberately
-hls_time 4 sets a target duration, not an exact cut timer. FFmpeg cuts at the next keyframe after the target has passed, so keyframe cadence affects actual segment length. FFmpeg recommends a closed GOP and a GOP size that fits the segment constraint. If you control the encoder upstream, coordinate its keyframe interval with your packaging target; otherwise, inspect the source cadence and resulting segment durations. The FFmpeg Formats Documentation explains the HLS muxer options.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
-hls_list_size 6 limits the number of entries in the live playlist. That is separate from how long unreferenced segment files remain on disk when segment deletion is enabled. Set playlist length and deletion behavior with both viewer delay and storage in mind: an old segment should not be removed before a viewer that is still downloading it can finish. Consult the installed FFmpeg build’s documentation for available options and deletion-threshold behavior.
4. Serve and check the HLS output
Open the playlist URL through your HTTP(S) server, not just from the local filesystem. Check that the playlist updates while the RTMP input is live, and that every segment path it references returns successfully. Keep the playlist and segment paths consistent, confirm file permissions allow the web server to read them, and test with the player and network conditions your audience will use.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Use SRS to receive RTMP and generate HLS
SRS documents built-in HLS support. Its example starts SRS with HLS configuration, publishes to rtmp://localhost/live/livestream, and plays the generated playlist at http://localhost:8080/live/livestream.m3u8. Use those addresses as documentation examples, not as public endpoints for your deployment. Review the SRS HLS documentation for the version and configuration you will actually run.
Playback may fail if a viewer requests the playlist before SRS has generated its first HLS segment. Allow for initial segment creation before testing playback. The cited SRS documentation identifies version 7.0 as unstable and shows HLS disabled by default in its example configuration, so verify both version status and the effective configuration rather than assuming HLS is already enabled.
Free tools Windows power users keep installed
One-click scans. No signup required.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Build a managed AWS pipeline
A documented AWS architecture sends an RTMP contribution feed to MediaLive, produces HLS output, and uses MediaPackage downstream. AWS lists RTMP push and RTMP pull as MediaLive input types; its cited input reference says MediaLive does not support RTMPS inputs. Check the current MediaLive input reference when selecting an upstream protocol.
The AWS RTMP-to-MediaLive-to-MediaPackage workflow example was published in 2019. It is useful for understanding the broad architecture and sequence, but verify current console steps and service behavior before deployment. In that example, the FFmpeg contribution stream feeds only one of MediaLive’s two pipelines, creating a redundancy limitation if the input or that pipeline fails. The workflow recommends putting a CDN such as CloudFront in front of MediaPackage for production distribution.
In a separate AWS tutorial, an HLS output consists of a parent manifest, rendition manifests, and media segments; its worked example uses one H.264 video encode and one audio encode. That tutorial uses RTP rather than RTMP as its input, so it illustrates the output structure, not an RTMP-specific setup.
Plan for latency, compatibility, and production operations
HLS is useful when HTTP delivery and CDN distribution matter, but it can introduce more delay than RTMP or HTTP-FLV. SRS describes HLS latency as higher than those alternatives; its latency figures are vendor documentation estimates, not a universal guarantee. Segment duration, playlist behavior, player buffering, network conditions, and configuration all affect the result. Measure end-to-end latency using the actual source, delivery path, and player.
- Player and codec support: Test the source codecs in your intended players. Do not assume stream copy will be accepted everywhere.
- Adaptive bitrate: Decide whether viewers need multiple renditions. If so, configure separate encodes and a master playlist rather than treating a single HLS output as adaptive.
- Distribution: For geographically broad delivery, assess CDN integration, origin behavior, and access controls.
- Resilience and monitoring: Plan for ingest or pipeline failure, process restarts, alerts, and recovery. A single contribution path can remain a single point of failure even when the downstream service has multiple pipelines.
- Storage and security: Monitor disk usage and segment cleanup, serve over TLS at the delivery edge where appropriate, and check permissions and access rules.
Troubleshoot common RTMP-to-HLS failures
| Symptom | Likely cause | What to check or change |
|---|---|---|
| No playlist or segments appear | The RTMP source is unreachable, the process stopped, or the output path is not writable. | Check the RTMP URL, FFmpeg or server logs, input stream presence, and output-directory permissions. |
| The playlist exists but playback fails | Referenced segments are missing, inaccessible, or incompatible with the player. | Request the playlist over HTTP(S), inspect its segment paths, test each referenced segment, and verify web-server read access and MIME configuration. |
| Segments are longer than the configured target | The next keyframe occurs after the target duration. | Inspect the input keyframe/GOP cadence. Coordinate a suitable closed GOP and GOP size with the segment constraint if you control encoding. |
| Playback starts late or initially fails in SRS | The player requests HLS before the first segment is generated, or it is buffering the live window. | Wait for initial segment creation and then reload or retest the playlist; account for player buffering when assessing startup. |
| AWS MediaLive does not connect to the upstream | The input protocol may be unsupported or the sender may start in the wrong sequence for the chosen workflow. | Confirm RTMP rather than RTMPS against the current AWS input reference. In the documented example, start MediaLive before the upstream sender. |
| Old segments disappear while viewers need them | Segment deletion is too aggressive for the live window or viewer download time. | Review playlist size and the deletion threshold as separate settings; retain unreferenced segments long enough for active clients to fetch them. |
Or let it run in the cloud
If your goal is to keep uploaded recordings looping as a 24/7 YouTube live stream, rather than convert an incoming RTMP feed into HLS for HTTP delivery, StreamNeo is a different kind of service. Upload a recording or build a playlist, add your YouTube stream key, and go live; StreamNeo loops the uploaded videos from the cloud, so your computer and home connection do not have to stay on. It supports any uploaded quality up to 4K 60fps at one flat price per slot, includes automatic recovery if YouTube drops the stream, and the first day is free with no card. Monthly billing is $9.99 per month. This is for uploaded video streaming to YouTube, not an RTMP-to-HLS converter or a camera-based live stream. Start the free day with StreamNeo.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

