<div dir="ltr"><div dir="ltr"><font face="monospace, monospace">Hi.<br></font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I have a HLS input and I want to be able to get value of the #EXT-X-TARGETDURATION</font><span style="font-family:monospace,monospace"> </span><span style="font-family:monospace,monospace">tag</span><span style="font-family:monospace,monospace">(the segments target duration) of the .m3u8 file. Is that possible? Can that information be recovered from the AVFormatContext struct?</span></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">The reason why I need the target duration of the hls segments is the following:</font></div><div><font face="monospace, monospace">My </font><span style="font-family:monospace,monospace">AVFormatContext</span><span style="font-family:monospace,monospace"> has a custom interrupt_callback, I want to use a value of 2xTARGETDURATION for the interrupt_callback since all the packets of a segment are read instantly and the next av_read_frame() call does not return until the next segment is ready. Example:</span></div><div><font face="monospace, monospace">  Lets consider a TARGETDURATION of 30s and a interrupt_callback function which expires in 2s. All the packets of the latest segment are read at once and there is no new packets until the next segment is ready, long after the av_read_frame() call has expired. That's is why I want to set the expiration time in according to the segments duration.</font></div><div><span style="font-family:monospace,monospace">Maybe there is a another better solution to this? Some ideas?</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><font face="monospace, monospace">Thanks.</font></div></div></div>