[FFmpeg-user] Performance Tuning for Raspberry Pi

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Oct 17 16:01:06 EEST 2018


2018-10-17 12:16 GMT+02:00, Bruce Diesel <bruce.diesel at gmail.com>:

> Please forgive my somewhat basic question, but my searching has not yielded
> much information that I can easily understand as I don't have much
> knowledge in this space.
>
> I am building a dash cam type application using a Raspberry Pi Zero, some
> sensors, and a Pi Camera.  I am burning data from the sensors onto video
> using drawtext from a memory file that a separate python program is
> continuously updating atomically.
>
> I am really struggling to get reasonable performance.  I get around 6
> frames/second at HD quality.  I am not running X Windows, and not
> displaying the video, just capturing it.
>
> Using an ffmpeg command line such as:  ffmpeg -i /dev/video0 -vf
> drawtext="....." test.mpg
>
> Inside the drawtext I am setting the font, centering the text and giving it
> the filename to read.
>
> I have very limited understanding of the pros/cons of different codecs etc
> so I am looking for a source of information that can help me through this
> without me having to become an expert in the subject.

Please provide the command line that you tested together with
the complete, uncut console output.

Assuming you are not doing anything stupid, only small
improvements will be possible with software encoding,
the overlay is always expensive.

Carl Eugen


More information about the ffmpeg-user mailing list