<div dir="ltr"><div dir="ltr">Is it always the same files that you are reading? What about caching the stream types the firstĀ time you read theĀ file and in a database or file somewhere you store that a certain file has a certain type?<div><br></div><div>Only tricky thing I see is if you create a new file with the same name in the same location.. so, probably want to double check creation date of the file as well.</div><div><br></div><div><br></div><div>Otherwise, sort of seems like that belongs as part of the 'TODO' included with avformat_find_stream_info :(</div><div><dt style="font-weight:bold;color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px"><b><a class="el" href="https://ffmpeg.org/doxygen/2.8/todo.html#_todo000022" style="color:rgb(70,101,162)">Todo:</a></b></dt><dd style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px">Let the user decide somehow what information is needed so that we do not waste time getting stuff the user does not need.</dd></div><div><br></div><div>Might be able to work with someone to code it up and include it.</div><div><br></div><div>-Matt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 10, 2020 at 11:28 AM Mohamed Ismail Mejri <<a href="mailto:imejri@sabsystem.com">imejri@sabsystem.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I use avformat_find_stream_info to init the program, my program contains multiple streams with several types, which slows down start-ups, is it possible to force decoding only audio streams in avformat_find_stream_info?</div><div><br></div><div>Thank you,</div><div><br></div><div>Mohamed-Ismail.<br></div></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div><div><br></div></div>