Commit d2226857 authored by bcoudurier's avatar bcoudurier

print more debug info about muxing parameters, patch by Mike Scheutzow,...

print more debug info about muxing parameters, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21201 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 92abd5bd
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment