diff --git a/ffmpeg.c b/ffmpeg.c
index 28ed3514744a2f6396c2a6f7e0da3bb96fbb3f75..15f2c24228a08865831c097019bb442cec5da736 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2879,7 +2879,8 @@ static int transcode_init(void)
         }
         ost->st->codec->codec= ost->enc_ctx->codec;
 
-        ost->st->time_base = ost->enc_ctx->time_base;
+        // copy timebase while removing common factors
+        ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0});
     }
 
     /* init input streams */