<p>I would like to test ffmpeg for encoding a stream on my VM to see how much CPU % it uses, and how many cores. I don't have streams going, but I plan to use webcams to provide the stream in the future. How should I go about doing this?</p>
<p>I have test mp4 files I could provide.</p>
<p>Should I:</p>
<p>Is there a way to tell ffmpeg to only encode at 1x speed (ie only do 30fps per second for encoding)?
Or do I have to create a stream first and have ffmpeg encode the stream? I found SRS (Simple Realtime Server) <a href="https://github.com/ossrs/srs" rel="nofollow noreferrer">https://github.com/ossrs/srs</a>. I was going to start a stream from there and have ffmpeg ingest it. But it seems complicated I was wondering if there was an easier way by doing #1? Or is there an easier way to do #2?
So far I have tried to get ffmpeg running, but have encountered some errors. The SRS is complicated to setup, so I have not tried it yet.</p>

CC BY-SA 4.0
2023-05-08T17:12:23.057Z
Add `-readrate 1` before `-i`  to limit ingest speed to 1x.
Gyan
CC BY-SA 4.0
2023-05-12T15:19:38.247Z
Why all the synthesizing of your final process instead of actually using your process tools?
user3643
<ffmpeg>
How to test ffmpeg for streaming encoding at 1x?
Public Name
# How to test ffmpeg for streaming encoding at 1x?

(Asked by: username_0 on 2023-05-08)

I would like to test ffmpeg for encoding a stream on my VM to see how much CPU % it uses, and how many cores. I don't have streams going, but I plan to use webcams to provide the stream in the future. How should I go about doing this?

I have test mp4 files I could provide.

Should I:

Is there a way to tell ffmpeg to only encode at 1x speed (ie only do 30fps per second for encoding)?
Or do I have to create a stream first and have ffmpeg encode the stream? I found SRS (Simple Realtime Server) <https://github.com/ossrs/srs>. I was going to start a stream from there and have ffmpeg ingest it. But it seems complicated I was wondering if there was an easier way by doing #1? Or is there an easier way to do #2?
So far I have tried to get ffmpeg running, but have encountered some errors. The SRS is complicated to setup, so I have not tried it yet.

**Tags:** ffmpeg

> **Comments:**
> **username_1**: Add `-readrate 1` before `-i`  to limit ingest speed to 1x.  
> **username_2**: Why all the synthesizing of your final process instead of actually using your process tools?  

---

## 0 answers

