[FFmpeg-cvslog] avconv: set encoder timebase for subtitles.

Anton Khirnov git at videolan.org
Wed Feb 8 06:04:54 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Feb  5 14:28:19 2012 +0100| [c9af8326238c37d1a1f0029a158c7ede33836aa3] | committer: Anton Khirnov

avconv: set encoder timebase for subtitles.

The actual number (1/1000) will probably require some
discussion/tweaking in the future, but should be good enough for now,
since the timestamps in AVSubtitle are in this timebase by definition.

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

 avconv.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/avconv.c b/avconv.c
index 509b1dc..876ad19 100644
--- a/avconv.c
+++ b/avconv.c
@@ -2434,6 +2434,7 @@ static int transcode_init(OutputFile *output_files,
 #endif
                 break;
             case AVMEDIA_TYPE_SUBTITLE:
+                codec->time_base = (AVRational){1, 1000};
                 break;
             default:
                 abort();



More information about the ffmpeg-cvslog mailing list