Parade Series - NVR Storage

FFMPEG Codec

FFMPEG Manual

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





相关推荐
野犬寒鸦1 小时前
多级缓存架构:性能与数据一致性的平衡处理(原理及优势详解+项目实战)
java·服务器·redis·后端·缓存
海琴烟Sunshine3 小时前
Leetcode 14. 最长公共前缀
java·服务器·leetcode
teacher伟大光荣且正确4 小时前
Linux 下编译openssl
linux·运维·服务器
dlz08364 小时前
--group-start/--group-end 能不能解决 OpenSSL 1.0 vs 1.1 的优先级问题?
linux·运维·服务器·软件需求
AuroBreeze7 小时前
xv6-2023 - primes Lab
linux·运维·服务器
闲人编程8 小时前
深入理解Python的`if __name__ == ‘__main__‘`:它到底做了什么?
服务器·数据库·python·main·name·魔法语句
什么半岛铁盒8 小时前
C++项目:仿muduo库高并发服务器---------LoopThreadPool模块和TcpServer模块的实现
linux·服务器·c++·mysql·ubuntu
それども9 小时前
本地怎么远程调试服务器
运维·服务器
zybsjn11 小时前
【实战】理解服务器流量监控中的“上行”和“下行”
运维·服务器
铭哥的编程日记12 小时前
【Linux】Ext系列文件系统
linux·服务器