[FFmpeg-user] How to scale FFmpeg

imalkevich at gmail.com imalkevich at gmail.com
Fri Mar 12 09:27:40 EET 2021


Hi,

 

I'm trying to understand how to scale FFmpeg so that it can stream to
different sources from one machine. 

 

During my experiments in order to understand the single machine capacity I'm
trying to run the following command:

ffmpeg -loglevel repeat+level+verbose -f lavfi -i testsrc2=s=1920x1080:r=30
-f lavfi -i sine -c:a aac -ar 48000 -b:a 64k -c:v libx264 -crf 18 -preset
slow -tune zerolatency -pix_fmt yuv420p -f mpegts - > out1.mp4

 

Then again the same command but output to different file, and so on:

ffmpeg -loglevel repeat+level+verbose -f lavfi -i testsrc2=s=1920x1080:r=30
-f lavfi -i sine -c:a aac -ar 48000 -b:a 64k -c:v libx264 -crf 18 -preset
slow -tune zerolatency -pix_fmt yuv420p -f mpegts - > outN.mp4

 

And I'm seeing that even the first command produces less FPS then I
requested:



 

When I'm starting the second process it drops even lower:



 

At the same time I have a pretty capable machine with Intel Core i7-10610U
CPU unit and RAM is not an issue.

 

Am I right to understand that the lower than expected FPS means I have
issues and if I want to spawn multiple FFmpeg processes I will have issues?

 

Thanks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 99701 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210312/70eaf4c5/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 218302 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210312/70eaf4c5/attachment-0001.jpg>


More information about the ffmpeg-user mailing list