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





相关推荐
feng_you_ying_li7 小时前
linux之shell的进阶补充和基础IO流的介绍
linux·运维·服务器
志栋智能8 小时前
运维超自动化:构建弹性IT架构的关键支撑
运维·服务器·网络·人工智能·架构·自动化
草莓熊Lotso9 小时前
Vibe Coding 时代:LangChain 与 LangGraph 全链路解析
linux·运维·服务器·数据库·人工智能·mysql·langchain
代码AI弗森15 小时前
一文理清楚“算力申请 / 成本测算 / 并发评估”
java·服务器·数据库
^—app56686616 小时前
游戏运存小启动不起来临时解决方法
运维·服务器
志栋智能17 小时前
超自动化安全:构建智能安全运营的核心引擎
大数据·运维·服务器·数据库·安全·自动化·产品运营
Edward1111111118 小时前
4月28日防火墙问题
linux·运维·服务器
想学后端的前端工程师19 小时前
【补充内外网突然不通的情况】
运维·服务器
跨境数据猎手20 小时前
跨境独立站系统技术拆解(附带源码)
服务器·前端·php