Back to All Guides
softwareAugust 15, 20266 min readRTSPLink Dev Team

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.

#FFmpeg#HLS#m3u8#Transcoding#CLI
Live Stream Workbench

Need a live RTSP stream link right now to test this setup in VLC or OpenCV?

Test Live Stream

#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 HLS Command
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.m3u8

Ready to test your live RTSP video stream?

Generate free authenticated RTSP links with unlimited bandwidth and inspect frame timestamps in seconds.

Generate Free RTSP Link

Related Tutorials & Setup Guides

View all 100+ guides