从mp4中提取h264视频数据
ffmpeg -i Code.8.2019.720p.mp4 -codec copy -bsf: h264_mp4toannexb -s 640*320 -f h264 test.264
改变视频的分辨路和帧率
ffmpeg -i Code.8.2019.720p.mp4 -s 640*360 -r 30 test_out.mp4
硬件计算
vdpau
vaapi
cuvid
ffmpeg -hwaccel cuvid -i DVR_ch1_main_20210701010000_20210701020000.h264 -s 640*360 -b:v 200 test_out.264
ffmpeg -re -i test.h264 -payload_type 100 -vcodec copy -f rtp rtp://localhost:1234
ffmpeg -re -i DVR_ch1_main_20210701010000_20210701020000.h264 -s 640x360 -payload_type 100 -vcodec copy -f rtp rtp://103.10.84.176:
ffmpeg -loglevel fatal -protocol_whitelist "file,rtp,udp" -i ipc.sdp -vcodec h264 -vf scale=iw/4:ih/4 -f rtp_mpegts rtp://192.168.11.126:30002