[FFmpeg-trac] #552(avformat:new): warning flags needed for av_open_input_file
FFmpeg
trac at avcodec.org
Thu Oct 13 22:27:38 CEST 2011
#552: warning flags needed for av_open_input_file
----------------------------------+---------------------------------------
Reporter: DonMoir | Type: enhancement
Status: new | Priority: normal
Component: avformat | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
When you open a video, warnings are sent to stdout. This does you no good
if you need to check these warnings. This needs to be tied into
AVFormatContext so it is instance driven and not some global setting.
The main case I am looking at now is in asfdec.c and asf_read_header.
There are test for DRM Protected etc and message 'decoding will likely
fail'. I would like to know about these warnings after I do an open. I
have multiples instances of code that can call av_open_input_file from
various threads.
Looks like the only thing I can do now is trap log messages which are
global which would mean I have to block on av_open_input_file so that I
know I am dealing with the right instance. Then do something silly like
look at strings from the log callback. If you have another work around let
me know.
There are probably other cases where other warnings might be useful as
well. Not sure where you would fit these flags in, but ideally as part of
the AVFormatContext structure.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/552>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list