[Libav-user] Start time and duration questions

william keeling WilliamKeeling at hotmail.com
Sat May 8 21:32:14 EEST 2021


I have a program that iterative creates Flash container files with 2 streams (video h264 and audio AAC).  The format and codec contexts are allocated before and freed after each file.  Calls are made to avformat_write_header() after contexts are allocated and to av_write_trailer() before contexts are freed.
I am using 1 for AVFormatContext.start_time_realtime (since 0 will get current system time).  How do you start from 0 when muxing?
The other issue is first file shows the correct start time and duration when played thru VLC media player.  All subsequent files show a 0 start time, large duration and a black screen for a while; then the start time changes to a large start time that is correct run time below the duration and the video plays.  Any ideas what I have done wrong that is causing the wrong start and duration time and the delay in video playing but only on subsequent files?

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20210508/ad06e292/attachment.htm>


More information about the Libav-user mailing list