Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 12th October 2020, 02:25   #1  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 124
How force a constant bit rate for audio created with ffmpeg?

I'm putting title pages between video clips and concatenating them together so I need all the clips to be the same. I am creating the title slides with:

Code:
fa=Tone(length=3.0, type="Silence", samplerate=22050, channels=2)
v=BlankClip(90, 960, 540, pixel_type="RGB24", fps=29.97).ConvertToYV12(matrix="rec709").AddAlphaPlane()
AudioDub(v, fa).Subtitle("This is a test", align=5, size=24)
I'm creating the .mp4 clip using ffmpeg with:
Code:
ffmpeg -i gsn_10.avs -b:a 128 gsn_10.mp4
if I use -b:a 128k or don't use that parameter at all, it becomes variable rate and I need constant rate. Using the -b:a 128 makes it constant, but the bit rate doesn't change.

MediaInfo gives: "Bit rate: 1 084 b/s" and all other clips have "Bit rate: 128 kb/s"

The bit rate is the only difference in the clips. When I concat them with:
Code:
ffmpeg -f concat -safe 0 -i render.txt -c copy highlight.mp4
I get a ton of "Non-monotonous DTS in output stream" errors.

The resulting .mp4 is 19+ hours long when I should be about 6 minutes.

So, is there a way to force a constant bit rate of 128kb in AviSynth or do I need to find another way to do that in ffmpeg.
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
 

Tags
constant bit rate, ffmpeg audio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:34.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.