mczarnek at edge360.com
Fri Mar 13 20:08:31 EET 2020
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?
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.
Otherwise, sort of seems like that belongs as part of the 'TODO' included
with avformat_find_stream_info :(
*Todo: <https://ffmpeg.org/doxygen/2.8/todo.html#_todo000022>*Let the user
decide somehow what information is needed so that we do not waste time
getting stuff the user does not need.
Might be able to work with someone to code it up and include it.
On Tue, Mar 10, 2020 at 11:28 AM Mohamed Ismail Mejri <imejri at sabsystem.com>
> 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?
> Thank you,
> Libav-user mailing list
> Libav-user at ffmpeg.org
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user