On 10/15/2013 7:34 AM, James Board wrote:

>An AVI container should specify a frame rate, and the time stamp is always 1/framerate * >total_frames_read there abouts...

That doesn't tell me the exact largest best_effort_timestamp. Can I determine the largest best_effort_timestamp exactly? Would this be easier with a file container other
than AVI?


best_effort implies a guess. There is no guessing for an avi file. its uses a static frame rate whether or not there is actual video for that frame. The largest timestamp in the file would be total number of vid frames times the frame duration.



On Sunday, October 13, 2013 2:20 PM, Andy Shaules <[email protected]> wrote:
On 10/12/2013 12:52 PM, James Board wrote:
In a C program with libav, how can I determine what is the largest best_effort_timestamp for my input video file, which is AVI container and compressed with ffvhuff?



_______________________________________________
Libav-user mailing list
[email protected]  <mailto:[email protected]>
http://ffmpeg.org/mailman/listinfo/libav-user
An AVI container should specify a frame rate, and the time stamp is always 1/framerate * total_frames_read there abouts...

If the length of the video payload is zero, then count that as a dropped encoder frame, and increment the total_frames_read for it, continue.

Andy

_______________________________________________
Libav-user mailing list
[email protected] <mailto:[email protected]>
http://ffmpeg.org/mailman/listinfo/libav-user




_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to