Interesting choice. I will give that a shot. The problem is the follow-up. Doing av_find_stream_info is still lagging no matter how thorough my initialization is. I don't really understand why. I've found that the internal read frame is where the program is slowing to a crawl. Have you ever had that kind of problem?
On Wed, Jun 2, 2010 at 4:08 PM, Michael Georgoulopoulos < [email protected]> wrote: > On 2/6/2010 9:35 μμ, Neil Menne wrote: > >> When I call: >> >> char formatName[] = "mpegts"; >> >> AVInputFormat* iFormat = av_find_input_format(formatName); >> >> >> Why does iFormat's codec_tag not get initialized? >> >> It's still NULL and that is causing other stuff to break. >> > > Hello, I'm doing this to get a valid AVInputFormat * > > AVProbeData probe_data; > probe_data.filename = "Myfile.mpeg"; > probe_data.buf_size = 4096; > probe_data.buf = malloc(probe_data.buf_size); > // read "probe_data.buf_size" bytes from your file into probe_data.buf > AVInputFormat *fmt = av_probe_input_format(&probe_data, 1); > free(probe_data.buf); > > Best regards > > Michael > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
