From 384078c35278df58189cc14ab7194e1ddb7cc982 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 5 Aug 2022 18:13:43 +0200 Subject: [PATCH] update readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 587cf7f5..2a8806c6 100644 --- a/README.md +++ b/README.md @@ -805,6 +805,12 @@ http://localhost:8888/mystream where `mystream` is the name of a stream that is being published. +Please be aware that HLS only supports a single H264 video track and a single AAC audio track due to limitations of most browsers. If you want to use HLS with tracks that uses other codecs, you have to re-encode them, for instance by using _FFmpeg_: + +``` +ffmpeg -i rtsp://original-source -pix_fmt yuv420p -c:v libx264 -preset ultrafast -b:v 600k -c:a aac -b:a 160k -f rtsp rtsp://localhost:8554/mystream +``` + ### Embedding The simples way to embed a live stream into a web page consists in using an iframe tag: