Open
Conversation
…nc as my understanding is that will let ffmpeg drop packets it couldn't process fast enough instead of forcing them to be queued and processed in order, regardless of timing. Issue rfht#5
…512', plus only on the video & audio input when encoding, not on the raw audio inputs being merged). Also introduces the use of the filter on the individual audio streams being merged/mixed-down _and_ when merging the video and audio. The latter required moving the audio encoding to the ffmpeg process which is encoding the video. By using the 'async=1' option, the 'aresample' filter will fill and/or trim audio to keep it synced, but will not perform the more advanced stretch and/or sqeezing (I think this makes sense for our uses and _should_ be more efficient). Issue rfht#5
…; if line is too long, break with additional indentation) and tabs for indentation
…ched '*_bufsize' & 'gop' calculations from using 'expr' to arithmetic expansion expressions. Sets '-minrate', '-maxrate', and '-bufsize' for the audio track, in addition to '-b:a', when assembling AUDIO_CONV. Issue rfht#11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NOTE: This is applied ontop of PR #13, which fixes audio/video desync. I'll rebase this as that PR is updated and merged (hopefully.)
As noted in issue #11, I had found that while my now-merged implementation of CBR (constant bit rate) in issue #6 has been working well, I was seeing fluctuations in the audio bit rate.
While our use of the AAC encoder implies it should be generating CBR, I found that
ffmpegsupports the-minrate,-maxrate, and-bufsizeoptions for all encoders. So, this splits our buffer size variables into audio & video versions and sets-minrate,-maxrate, and-bufsizeappropriately to produce a CBR for both audio & video.It has been working correctly in my testing, but I'll want to re-test after #13 is merged.