[Libav-user] Is it possible to detect unused/invalid packets (without decoding)

Nicolas George george at nsup.org
Wed Jan 28 14:34:57 CET 2015


Le nonidi 9 pluviôse, an CCXXIII, Max Vlasov a écrit :
> The idea was to read all packets saving pts and keyframe flag (without
> decoding) and make a list of them in order of ptses. After this we have a
> ready FrameCount and when one needs to jump to an exact frame number

Why do people here always want to work with frame numbers? Frame numbers are
unreliable, they are a remnant of the time where containers could only do
constant FPS.

The correct way of identifying a frame is not its number, it is its
timestamp.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150128/4ca420e1/attachment.asc>


More information about the Libav-user mailing list