[FFmpeg-cvslog] r9881 - trunk/ffmpeg.c

Baptiste Coudurier baptiste.coudurier
Sun Aug 5 04:10:15 CEST 2007


Hi Michael,

michael wrote:
> Author: michael
> Date: Sat Aug  4 01:25:03 2007
> New Revision: 9881
> 
> Log:
> drop non keyframes before the first keyframe for stream copy
> 
> 
> Modified:
>    trunk/ffmpeg.c
> 
> Modified: trunk/ffmpeg.c
> ==============================================================================
> --- trunk/ffmpeg.c	(original)
> +++ trunk/ffmpeg.c	Sat Aug  4 01:25:03 2007
> @@ -1210,6 +1210,9 @@ static int output_packet(AVInputStream *
>                          AVPacket opkt;
>                          av_init_packet(&opkt);
>  
> +                        if (!ost->frame_number && !(pkt->flags & PKT_FLAG_KEY))
> +                            continue;
> +
>                          /* no reencoding needed : output the packet directly */
>                          /* force the input stream PTS */
>  

That may be a bit harsh. For example swf does not have any information
about key frame/pict type for flv, since there is no parser, no frames
are flagged as key frames, therefore you cannot stream copy essence.

What do you think ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-cvslog mailing list