From 2f248cd4b1c6faf9f4bfef35c53fbc254a93366f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 21 Sep 2016 11:58:59 -0400 Subject: [PATCH] log time bases on videostore instantiation instead of every packet --- src/zm_videostore.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 182e6b26e..1a00b1756 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -91,6 +91,18 @@ VideoStore::VideoStore(const char *filename_in, const char *format_in, Fatal("Unable to create video out stream\n"); } + Debug(3, "Time bases input stream time base(%d/%d) input codec tb: (%d/%d) video_stream->time-base(%d/%d) output codec tb (%d/%d)", + input_video_stream->time_base.num, + input_video_stream->time_base.den, + input_video_stream->codec->time_base.num, + input_video_stream->codec->time_base.den, + video_stream->time_base.num, + video_stream->time_base.den, + video_stream->codec->time_base.num, + video_stream->codec->time_base.den + ); + + if ( input_video_stream->codec->sample_aspect_ratio.den && ( video_stream->sample_aspect_ratio.den != input_video_stream->codec->sample_aspect_ratio.den ) ) { Warning("Fixing sample_aspect_ratio.den from (%d) to (%d)", video_stream->sample_aspect_ratio.den, input_video_stream->codec->sample_aspect_ratio.den );