[FFmpeg-devel] AVCHD framerate/preview problem

Jean-Michel Pouré jm
Mon Dec 29 13:07:06 CET 2008


http://www.kdenlive.org/mantis/view.php?id=428

Just to note: gmerlin_avdecoder and gmerlin CAN do seeking without
artifacts. In video_ffmpeg.c it has the following code:

 /* Hack for (possibly wrong encoded) h.264 streams */
 if((pi->pts != BGAV_TIMESTAMP_UNDEFINED) &&
    (priv->last_parse_pts != BGAV_TIMESTAMP_UNDEFINED) &&
    (priv->info->ffmpeg_id == CODEC_ID_H264))
   {
   duration = gavl_time_rescale(s->timescale, 4 *
s->data.video.format.timescale,
                                pi->pts - priv->last_parse_pts);
   // fprintf(stderr, "Frame duration: %d -> %d\n", pi->pts -
priv->last_parse_pts, duration);
   if((duration > 0) && (duration < 3 *
s->data.video.format.frame_duration))
     {
     s->data.video.format.timescale *= 2;
     }
   }

Might be helpful?





More information about the ffmpeg-devel mailing list