diff options
author | Mike Scheutzow <scheutzow@alcatel-lucent.com> | 2010-01-14 00:42:55 +0300 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-01-14 00:42:55 +0300 |
commit | 907d916627bc63c86b04c1feb60af542cb114a03 (patch) | |
tree | 66a372d424603fb905c566ca2d38ff6f2fc259e5 | |
parent | c054f372e09121470530bc8d59a9678ef36c036d (diff) |
print more debug info about muxing parameters, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
Originally committed as revision 21201 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mpegtsenc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 1dbb408423..148507f5f6 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -471,9 +471,6 @@ static int mpegts_write_header(AVFormatContext *s) 1000 * 8 * pat_pmt_size / SDT_RETRANS_TIME + /* PAT+PMT size */ 1000 * 8 * 8 / PCR_RETRANS_TIME; /* PCR size */ - av_log(s, AV_LOG_DEBUG, "muxrate %d freq sdt %d pat %d\n", - total_bit_rate, ts->sdt_packet_period, ts->pat_packet_period); - if (s->mux_rate) ts->mux_rate = s->mux_rate; else @@ -489,6 +486,12 @@ static int mpegts_write_header(AVFormatContext *s) // output a PCR as soon as possible service->pcr_packet_count = service->pcr_packet_period; + av_log(s, AV_LOG_DEBUG, + "calculated bitrate %d bps, muxrate %d bps, " + "sdt every %d, pat/pmt every %d pkts\n", + total_bit_rate, ts->mux_rate, ts->sdt_packet_period, + ts->pat_packet_period); + // adjust pcr ts->cur_pcr /= ts->mux_rate; |