简体   繁体   English

RTSP stream的轻量级编码方法?

[英]Lightweight encoding method for RTSP stream?

what i am trying to do is to save a RTSP-stream as a file with some text overlay (so copy is not an option) on a Raspberry Pi.我想要做的是将 RTSP 流保存为在 Raspberry Pi 上带有一些文本覆盖(因此copy不是选项)的文件。 I tried using FFMPEG, but even with ultrafast settings the CPU load is way too high.我尝试使用 FFMPEG,但即使使用超快设置,CPU 负载也太高了。 Is there a faster encoding method or a completely different approach that i am missing?我是否缺少更快的编码方法或完全不同的方法?

ffmpeg -rtsp_transport tcp -i rtsp://x:y@ip/stream1 -vcodec libx264 -preset ultrafast -crf 0 -segment_time 3600 -t 3600 -f segment -y -strftime 1 -vf drawtext="fontcolor=white:fontsize=30:text='%{localtime}'",drawtext="fontcolor=white:fontsize=30:textfile=text.txt:x=600" /home/pi/NAS1/Elements/Videos/%Y-%m-%d_%H-%M-%S_file.mp4

Use the hardware encoder使用硬件编码器

Ie IE

ffmpeg -codec:v h264_omx -b:v 2048k ffmpeg -codec:v h264_omx -b:v 2048k

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM