[FFmpeg-cvslog] r9232 - trunk/libavformat/movenc.c

bcoudurier subversion
Wed Jun 6 15:21:50 CEST 2007


Author: bcoudurier
Date: Wed Jun  6 15:21:50 2007
New Revision: 9232

Log:
warn user if video codec timebase is very high

Modified:
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	(original)
+++ trunk/libavformat/movenc.c	Wed Jun  6 15:21:50 2007
@@ -1488,6 +1488,11 @@ static int mov_write_header(AVFormatCont
             track->tag = mov_find_video_codec_tag(s, track);
             track->timescale = st->codec->time_base.den;
             av_set_pts_info(st, 64, 1, st->codec->time_base.den);
+            if (track->timescale > 100000)
+                av_log(NULL, AV_LOG_WARNING,
+                       "WARNING codec timebase is very high. If duration is too long,\n"
+                       "file may not be playable by quicktime. Specify a shorter timebase\n"
+                       "or choose different container.\n");
         }else if(st->codec->codec_type == CODEC_TYPE_AUDIO){
             track->tag = mov_find_audio_codec_tag(s, track);
             track->timescale = st->codec->sample_rate;




More information about the ffmpeg-cvslog mailing list