wl2776 wrote > > My application decodes video stream, processes it by its own means and > saves to a file using LibAV functions. > > To save it to a file, it initializes input AVFormatContext with custom > AVIOContext, then uses usual cycle: > > > > My problem is that avformat_find_stream_info returns -1 and writes the > following messages > > > > I use the following code to initialize AVFormatContext: > > > > What's wrong with it? > > Sometimes my application writes to a file encoded video, and similar code > (the only difference is in options and iformat) works fine. >
I've quickly replaced this code with the deprecated one, using AVFormatParameters, av_open_input_stream() and av_find_stream_info, and this has again worked fine. -- View this message in context: http://libav-api.1054858.n5.nabble.com/libav-api-How-should-I-specify-options-to-read-raw-video-tp5077052p5077077.html Sent from the libav-api mailing list archive at Nabble.com. _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
