5
3
I am gerating single bitrate live hls content from live rtsp stream . I am using the following command
ffmpeg -v verbose -i rtsp://127.0.0.1:8080/test.sdp \
-vcodec libx264 -acodec aac -ac 1 -strict -2 -crf 18 -profile:v baseline \
-maxrate 400k -bufsize 1835k -pix_fmt yuv420p -flags -global_header \
-hls_time 10 -hls_list_size 3 -hls_wrap 4 -hls_flags delete_segments \
-start_number 1 /usr/local/apache-tomcat-7.0.53/webapps/ROOT/hls/index1.m3u8
How can I modify the above ffmpg command to generate multiple bitrate output content ? Please help me.
Welcome to Super User. Can you expand your answer to explain what this code does and how it addresses the problem? Unexplained code is discouraged, because it doesn't teach the solution. Thanks.
– fixer1234 – 2016-02-13T03:35:58.993We are adding the second output with the same parameters as first but -maxrate 700k and then creating multi bitrate index,m3u8 for both HLS streams. – vayvanne – 2016-02-13T03:39:53.520