the index must be kept in memory and grows in size with every audio or
video
frame added to the file.

If you don't want that you definitely must one of
1) use a format where the index is optional and FFmpeg supports not
generating
  the index (no idea if there is a option to disable index generation at
all).

You can set the max_index_size member of AVFormatContext to 0 if you do not want the index to grow in memory during decoding. I got this feature accepted into FFmpeg when I was having a problem decoding MPEG2-PS in a continuous stream, and there was no way to avoid the memory usage gradually increasing over time. Not sure if it's a similar problem to the one that led to this discussion, but might be relevant.

Paul
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to