Answers.Body: <p><code>fps= 15</code> represents the encoding speed, not the output file framerate.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-16T15:50:55.507Z
Answers.Text: What is encoding speed? Sometimes it is fps=30 though. How do I check the frame rate then?
Answers.UserDisplayName: user10024395
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-16T15:51:55.100Z
Answers.Text: Shouldn't encoding speed be as fast as output framerate? If it is faster than 30 then maybe it is fine. Now, since it is slower than 30, does it mean I have frame drop?
Answers.UserDisplayName: user10024395
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-16T16:15:54.310Z
Answers.Text: `encoding speed` --> number of frames encoded per second, If there are frame drops, you will see `drop=X` in your progress readout, Check the speed, if it's close to `1` then your device is only sending 15 fps.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-16T16:46:50.113Z
Answers.Text: I dont see any `drop=X`. How to check speed?
Answers.UserDisplayName: user10024395
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-16T16:59:42.397Z
Answers.Text: To the right of bitrate in the progress readout. Increase terminal width if not visible.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-17T02:57:00.223Z
Answers.Text: What I get as output is as above. There is no drop=X. Is there special parameter I need to input to get that? Or does it only show when there is drop?
Answers.UserDisplayName: user10024395
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-17T06:09:22.093Z
Answers.Text: Only when there is drop.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-16T15:38:02.517Z
Answers.LastActivityDate: 2018-04-16T15:38:02.517Z
Answers.UserDisplayName: Gyan
Body: <p>Why setting -r 30 still gives fps=15 in ffmpeg?</p>
  
  <p>command:</p>
  
  <pre><code>fmpeg -loglevel verbose -pixel_format mjpeg -s hd720 -r 30 -i /dev/video1 -f libx264 -preset ultrafast -tune zerolatency -crf 23 -f matroska tcp://192.168.1.43:5000
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>frame=10497 fps= 15 q=22.0 Lsize=  253990kB time=00:11:39.76 bitrate=2973.4kbit
  </code></pre>
  
Tags: <video><ffmpeg><framerate>
Title: Why setting -r 30 still gives fps=15 in ffmpeg?
UserDisplayName: user10024395
ThreadText: # Why setting -r 30 still gives fps=15 in ffmpeg?
  
  (Asked by: username_0 on 2018-04-16)
  
  Why setting -r 30 still gives fps=15 in ffmpeg?
  
  command:
  
  ```
  fmpeg -loglevel verbose -pixel_format mjpeg -s hd720 -r 30 -i /dev/video1 -f libx264 -preset ultrafast -tune zerolatency -crf 23 -f matroska tcp://192.168.1.43:5000
  
  ```
  
  output:
  
  ```
  frame=10497 fps= 15 q=22.0 Lsize=  253990kB time=00:11:39.76 bitrate=2973.4kbit
  
  ```
  
  **Tags:** video, ffmpeg, framerate
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-04-16. Score: 2 | Accepted answer
  
  `fps= 15` represents the encoding speed, not the output file framerate.
  
  > **Comments:**
  > **username_0**: What is encoding speed? Sometimes it is fps=30 though. How do I check the frame rate then?  
  > **username_0**: Shouldn't encoding speed be as fast as output framerate? If it is faster than 30 then maybe it is fine. Now, since it is slower than 30, does it mean I have frame drop?  
  > **username_1**: `encoding speed` --> number of frames encoded per second, If there are frame drops, you will see `drop=X` in your progress readout, Check the speed, if it's close to `1` then your device is only sending 15 fps.  
  > **username_0**: I dont see any `drop=X`. How to check speed?  
  > **username_1**: To the right of bitrate in the progress readout. Increase terminal width if not visible.  
  > **username_0**: What I get as output is as above. There is no drop=X. Is there special parameter I need to input to get that? Or does it only show when there is drop?  
  > **username_1**: Only when there is drop.  
  
  ---
  
  