FFMPEG Codec
c
@ffmpeg -version
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.3.1 (GCC) 20200523
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
@ffmpeg
-i rtsp://admin:rate@123@10.10.20.234 input-url
-t 120 limit the duration of data read from the input (120 : 2 minutes)
-c:v libx264 encodes video with libx264
-c:a libmp3lame -b:a 8k -ac 1 encodes audio with mp3 sampling rate 8000 HZ mono channel
-crf 26 Constant Rate Factor
-profile:v baseline hardware compatibility (iOS & Android)
-b:v 100k video codec bit rate
-maxrate 100k maximum average bit rate
-bufsize 1835k codec buffer size
-pix_fmt yuv420p Quick time Compatible format
-force_key_frames "expr:gte(t,n_forced*1)"
-strict -2
-hls_time 1 HTTP Live Streaming duration (1 : 1 second)
-start_number 0
-f segment -segment_format mpegts
-segment_list playlist.m3u8 play list file
-segment_list_flags +live living stream mode
-segment_time 10 segment duration (10 : 10 seconds)
%TIME_STAMP%-%04d.ts