diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-26 21:56:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-26 22:58:02 +0200 |
commit | cddbafb56acf3fa7ac4556549bd8c911067f2324 (patch) | |
tree | fd1286d4e0607aa24a1a2f141677e6e44c0c1e45 /ffmpeg.c | |
parent | 3b92075e6c56f59335a55f0c1718e534e6d16dc0 (diff) | |
download | ffmpeg-cddbafb56acf3fa7ac4556549bd8c911067f2324.tar.gz |
ffmpeg: allow printing muxer side packet timestamp debuging info
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -572,6 +572,16 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost) } pkt->stream_index = ost->index; + + if (debug_ts) { + av_log(NULL, AV_LOG_INFO, "muxer <- type:%s " + "pkt_pts:%s pkt_pts_time:%s pkt_dts:%s pkt_dts_time:%s\n", + av_get_media_type_string(ost->st->codec->codec_type), + av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &ost->st->time_base), + av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &ost->st->time_base) + ); + } + ret = av_interleaved_write_frame(s, pkt); if (ret < 0) { print_error("av_interleaved_write_frame()", ret); |