[FFmpeg-cvslog] avconv: set the output stream timebase

Anton Khirnov git at videolan.org
Wed Jul 9 21:57:09 CEST 2014


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jul  9 10:33:03 2014 +0000| [3f3232a371cc88696184d9aef1f812656264e56c] | committer: Anton Khirnov

avconv: set the output stream timebase

This is required by the new API.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3f3232a371cc88696184d9aef1f812656264e56c
---

 avconv.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/avconv.c b/avconv.c
index 13968da..0ee7628 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1972,6 +1972,8 @@ static int transcode_init(void)
                    "Error initializing the output stream codec context.\n");
             exit_program(1);
         }
+
+        ost->st->time_base = ost->enc_ctx->time_base;
     }
 
     /* init input streams */



More information about the ffmpeg-cvslog mailing list