Answers.Body: <ol>
  <li><p><em>Why is the duration changed?</em></p>
  <p>MP3s may not display accurate duration, depending on whether a Xing header was written, and whether the MP3 encoding is Variable Bit Rate (VBR) or a Constant Bit Rate (CBR).</p>
  </li>
  <li><p><em>What is the difference between the first bitrate (from Duration: ) and the second one (from Stream: )?</em></p>
  <p>The first one is the division of the total file size (including metadata) by the probed media duration. The second is the division of the media data size by the probed media duration.</p>
  </li>
  <li><p><em>Why is it encoded with 113 kbps (I used b:a 128k)?</em></p>
  <p>The native AAC encoder does not have a CBR mode. It will treat the target bitrate as an average target. This is fine and more efficient than forcing a CBR mode encode.</p>
  </li>
  </ol>
  <p>If you insist on CBR, then get or <a href="https://github.com/jb-alvarado/media-autobuild_suite" rel="nofollow noreferrer">compile</a> an ffmpeg build with the fdk-aac encoder, which does do CBR encoding.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-01T15:00:33.083Z
Answers.LastActivityDate: 2019-06-02T13:25:16.493Z
Answers.LastEditDate: 2020-06-17T09:53:03.607Z
Answers.UserDisplayName: Gyan
Body: <p>First I tested Jahzzar_-<em>02</em>-_FM.mp3:</p>
  
  <pre><code>ffprobe Jahzzar_-_02_-_FM.mp3
  </code></pre>
  
  <p>and I found out that it was encoded with 224 kbps:</p>
  
  <blockquote>
  <pre><code>Duration: 00:02:15.11, start: 0.025056, bitrate: 224 kb/s 
  </code></pre>
  </blockquote>
  
  <p>I encoded Jahzzar_-<em>02</em>-_FM.mp3 with 128 kbps:</p>
  
  <pre><code>ffmpeg -i Jahzzar_-_02_-_FM.mp3 -b:a 128k output128.aac
  </code></pre>
  
  <p>and then I tested again:</p>
  
  <pre><code>ffprobe output128.aac
  </code></pre>
  
  <p>I get the following statement:</p>
  
  <blockquote>
  <pre><code>Duration: 00:02:36.34, bitrate: 113 kb/s
  Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 113 kb/s
  </code></pre>
  </blockquote>
  
  <ul>
  <li>Why is the duration changed? </li>
  <li><p>What is the difference between the first bitrate (from Duration: ) and the second one (from Stream: )? For some tracks they are different, here for instance:</p>
  
  <blockquote>
  <pre><code>Duration: 00:02:15.11, start: 0.025056, bitrate: 138 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s
  </code></pre>
  </blockquote></li>
  <li><p>Why is it encoded with 113 kbps (I used b:a 128k)?</p></li>
  </ul>
  
Tags: <ffmpeg><bitrate><ffprobe>
Title: Why is ffprobe showing another bitrate than the one I encoded with?
UserDisplayName: a a
ThreadText: # Why is ffprobe showing another bitrate than the one I encoded with?
  
  (Asked by: username_0 on 2019-06-01)
  
  First I tested Jahzzar\_-*02*-\_FM.mp3:
  
  ```
  ffprobe Jahzzar_-_02_-_FM.mp3
  
  ```
  
  and I found out that it was encoded with 224 kbps:
  
  > ```
  > Duration: 00:02:15.11, start: 0.025056, bitrate: 224 kb/s 
  >
  > ```
  
  I encoded Jahzzar\_-*02*-\_FM.mp3 with 128 kbps:
  
  ```
  ffmpeg -i Jahzzar_-_02_-_FM.mp3 -b:a 128k output128.aac
  
  ```
  
  and then I tested again:
  
  ```
  ffprobe output128.aac
  
  ```
  
  I get the following statement:
  
  > ```
  > Duration: 00:02:36.34, bitrate: 113 kb/s
  > Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 113 kb/s
  >
  > ```
  
  * Why is the duration changed?
  * What is the difference between the first bitrate (from Duration: ) and the second one (from Stream: )? For some tracks they are different, here for instance:
  
    > ```
    > Duration: 00:02:15.11, start: 0.025056, bitrate: 138 kb/s
    > Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s
    >
    > ```
  * Why is it encoded with 113 kbps (I used b:a 128k)?
  
  **Tags:** ffmpeg, bitrate, ffprobe
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-06-01. Score: 4
  
  1. *Why is the duration changed?*
  
     MP3s may not display accurate duration, depending on whether a Xing header was written, and whether the MP3 encoding is Variable Bit Rate (VBR) or a Constant Bit Rate (CBR).
  2. *What is the difference between the first bitrate (from Duration: ) and the second one (from Stream: )?*
  
     The first one is the division of the total file size (including metadata) by the probed media duration. The second is the division of the media data size by the probed media duration.
  3. *Why is it encoded with 113 kbps (I used b:a 128k)?*
  
     The native AAC encoder does not have a CBR mode. It will treat the target bitrate as an average target. This is fine and more efficient than forcing a CBR mode encode.
  
  If you insist on CBR, then get or [compile](https://github.com/jb-alvarado/media-autobuild_suite) an ffmpeg build with the fdk-aac encoder, which does do CBR encoding.
  
  
  ---
  
  