5 Oct 2010 12:30
Re: Help with av_find_stream_info()
-----Original Message Starts----- From: libav-user-bounces@... [mailto:libav-user-bounces@...] On Behalf Of Prageeth Sent: Wednesday, September 29, 2010 5:58 PM To: libav-user@... Subject: [libav-user] Help with av_find_stream_info() Hi All, I am using the ffmpeg libraries to demux the audio/video streams from a DTV TS stream. I pipe the TS packets obtained from hardware to the program, call av_find_stream_info() and later check codec_type of the stream to find audio/video streams. The method works and I am able to later decode the frames thus obtained. The issue I face is that a lot of time is spent inside av_find_stream_info(), more than 1minute, as in attached logs. The call seems to need much TS data to complete processing. With some debugging, it was found that av_read_packet () inside av_read_frame_internal() does most of processing. Can somebody suggest possible solutions? Is it somehow possible to optimize av_find_stream_info() for my scenario? Any help appreciated. Thanks & Regards, Prageeth [Wed Sep 29 16:46:53.062 2010]demux:av_find_input_format start [Wed Sep 29 16:46:53.062 2010]demux:av_find_input_format end [Wed Sep 29 16:46:53.062 2010]demux:av_open_input_file start [Wed Sep 29 16:47:23.203 2010]raw_packet_buffer_remaining_size=2500000 [Wed Sep 29 16:47:23.234 2010]demux:av_open_input_file end [Wed Sep 29 16:47:23.234 2010]demux:av_find_stream_info start(Continue reading)
RSS Feed