On Mon, Mar 23, 2009 at 1:01 PM, Mark Kenna <[email protected]> wrote: > I have a valid mp4 file which I can open and work with using > "av_open_input_file", > I would like to be able to use the "av_open_input_stream" on the same file. > I have the following code which produces an error code of -1 from the > "av_open_input_stream(...) function. > > Thanks, > Mark.
Maybe a seek function is needed. I did some test with your code, and works for mpegts, but for mp4, complains about the moov container. MP4 is not a streaming format though. It is a file format that can be streamed. For video streaming, VLC and any other hardware and software encoders I have seen uses mpeg4 over mpeg2ts or mpeg4 video and audio elementary in different network streams. There is pseudo http streaming, which is basically downloading the file or sections of it. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
