Thanks for the great framework. It seems that most of functions in libgpac operate on GF_ISOFile objects. I have the MP4 data in a memory buffer. Would it be possible to obtain a GF_ISOFile object from a memory buffer? If so, where can I find the necessary API functions. If not, what needs to be done to achieve this?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to perform two operations. I need to read samples from an MP4 container to extract the elementary stream NALUs. I'm able to do that on ordinary files but I would rather avoid any disk I/O operations if possible since the data is already in-memory after being downloaded. And I also want to perform re-muxing of scalable video streams (i.e., generate a single decodable file from two files, each containing one layer).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the great framework. It seems that most of functions in libgpac operate on GF_ISOFile objects. I have the MP4 data in a memory buffer. Would it be possible to obtain a GF_ISOFile object from a memory buffer? If so, where can I find the necessary API functions. If not, what needs to be done to achieve this?
Thanks.
What operations do you plan to do? Demux? Mux? Split? ...
I need to perform two operations. I need to read samples from an MP4 container to extract the elementary stream NALUs. I'm able to do that on ordinary files but I would rather avoid any disk I/O operations if possible since the data is already in-memory after being downloaded. And I also want to perform re-muxing of scalable video streams (i.e., generate a single decodable file from two files, each containing one layer).
Here is a demux example from memory: https://github.com/gpac/gpac/blob/master/applications/testapps/fmp4demux/main.c
It is complex because it can handle incomplete ISOBMF (e.g. being streamed).
Thank you very much! That is exactly what I was looking for.
Last edit: Ahmed Hamza 2015-06-11