[FFmpeg-devel] [PATCH] img2: added support for %t output pattern

Nicolas George nicolas.george at normalesup.org
Mon Dec 19 19:30:54 CET 2011


Le nonidi 29 frimaire, an CCXX, Yuval Adam a écrit :
> -        if (av_get_frame_filename(buf, sizeof(buf), path, first_index) <
> 0){
> +        if (av_get_frame_filename(buf, sizeof(buf), path, first_index, 0)
> < 0){

Your patch seems to have been mangled along the way.

> +    int ts = av_rescale_q(pkt->pts, stream->time_base, AV_TIME_BASE_Q) /
> AV_TIME_BASE;

If I am extracting all the frames of a VFR 30-seconds video, I do not care
much about the leading 00:00 for the hours and minutes, but I care about the
subsecond part of the timestamp very much.

Also, pkt->pts may be AV_NOPTS_VALUE.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111219/4e1a2dba/attachment.asc>


More information about the ffmpeg-devel mailing list