changeset 5538:3ad37f4daa76 libavformat

print more debug info about muxing parameters, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
author bcoudurier
date Wed, 13 Jan 2010 21:42:55 +0000
parents 8b4ac40f9525
children 445ebebedeaf
files mpegtsenc.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mpegtsenc.c	Wed Jan 13 21:40:37 2010 +0000
+++ b/mpegtsenc.c	Wed Jan 13 21:42:55 2010 +0000
@@ -471,9 +471,6 @@
         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 @@
     // 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;