[FFmpeg-trac] #566(undetermined:new): Encoding AAC stereo audio which starts silently to mpeg-ts causes 0-channel audio output.
FFmpeg
trac at avcodec.org
Fri Oct 21 12:50:18 CEST 2011
#566: Encoding AAC stereo audio which starts silently to mpeg-ts causes 0-channel
audio output.
-------------------------------------+-------------------------------------
Reporter: tungj | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by tungj):
Replying to [comment:8 terran]:
> This ticket seems to be closely related to #542. We found that reverting
a change from last November also provides a workaround. See the ticket
fore more details:
>
> https://ffmpeg.org/trac/ffmpeg/ticket/542
Thanks for the suggestion, but it seems the problem is still reproducible
after adding back the rate tolerance from change
2c5168afed8ddd798dae5909dba85ae3b611f894 as mentioned on comment 51 of
#542.
{{{
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 7410112..eeaad71 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -296,6 +296,9 @@ static av_cold int X264_init(AVCodecContext *avctx)
if (avctx->level > 0)
x4->params.i_level_idc = avctx->level;
+ x4->params.rc.f_rate_tolerance =
+ (float)avctx->bit_rate_tolerance/avctx->bit_rate;
+
x4->params.pf_log = X264_log;
x4->params.p_log_private = avctx;
x4->params.i_log_level = X264_LOG_DEBUG;
}}}
{{{ ffprobe initialSilence.ts }}} still returns (0 channels) after
recompiling and rerunning {{{ ffmpeg -y -i '../initialSilence.mp4' -f
mpegts -t 10 -acodec libfaac -ab 40k -ar 22050 initialSilence.ts }}}; and
the audio track is lost when running {{{ffmpeg -y -i 'initialSilence.ts'
-vcodec copy -acodec libfaac -ab 40k -ar 22050 output.mp4}}}.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/566#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list