FFmpeg CLI: Transcode RTSP Stream to HLS with Low Latency
Convert RTSP camera feeds into HLS segment playlists for web browser playback using FFmpeg hardware acceleration.
Need a live RTSP stream link right now to test this setup in VLC or OpenCV?
#1Optimized FFmpeg RTSP to HLS Command
Execute this low-latency FFmpeg pipeline to package an RTSP input into small 2-second HLS segments without re-encoding video:
ffmpeg -rtsp_transport tcp -i "rtsp://admin:password@192.168.1.64:554/Streaming/Channels/101" \
-c:v copy -c:a aac -ar 44100 \
-f hls -hls_time 2 -hls_list_size 5 -hls_flags delete_segments \
public/stream/index.m3u8Ready to test your live RTSP video stream?
Generate free authenticated RTSP links with unlimited bandwidth and inspect frame timestamps in seconds.
Related Tutorials & Setup Guides
View all 100+ guidesFFplay CLI Flags for Ultra-Low Latency RTSP Stream Testing
Quick reference guide to FFplay CLI flags for disabling buffer delay, dropping corrupt frames, and enforcing TCP transport.
softwareFFmpeg 24/7 RTSP Recording & Hourly MP4 File Segmentation
Master FFmpeg segment muxer commands to record continuous RTSP streams into timestamped MP4 archives with zero CPU re-encoding.
softwareMediaMTX (rtsp-simple-server) Complete Streaming Server Guide
Master MediaMTX configuration. Learn how to proxy IP camera feeds, set up on-demand publishing, and authenticate clients with authHTTP.