Problem with fragmented mp4
Posted: 24 Apr 2021 22:18
Hi, I downloaded a fragmented mp4 video, after inspecting it with mp4 viewer it looks something like this:
ftyp-moov-mdat-moof-mdat-moof-mdat-moof-...
So after the moov box there is a long sequence of mdat-moof pairs up to the end of file.I wanted to play this video from the net with libvlc, that is, by reading directly from memory through the libvlc_media_new_callbacks function but there is a problem, or perhaps more than a problem. Apparently libvlc tries to download all of the video first before playing it. I suppose that's because it is unable to seek in this context. And sitting to wait until it downloads maybe gigabytes of data is not a good idea. In this scenario, is there a way to tell libvlc to start playing inmediately from available data in memory instead of downloading/seeking the entire video first?
ftyp-moov-mdat-moof-mdat-moof-mdat-moof-...
So after the moov box there is a long sequence of mdat-moof pairs up to the end of file.I wanted to play this video from the net with libvlc, that is, by reading directly from memory through the libvlc_media_new_callbacks function but there is a problem, or perhaps more than a problem. Apparently libvlc tries to download all of the video first before playing it. I suppose that's because it is unable to seek in this context. And sitting to wait until it downloads maybe gigabytes of data is not a good idea. In this scenario, is there a way to tell libvlc to start playing inmediately from available data in memory instead of downloading/seeking the entire video first?