[Libav-user] How to remux an mp4 file without transcoding?
Yisheng Zhao
yz1134 at nyu.edu
Fri Nov 22 20:17:10 CET 2013
Hi, Sir/Madam
How are you doing recently?
I have a question how to remux an mp4 file using libav.
Um, as I was able to read from the mp4 file and got each avpacket, I stored
the data from each avpacket to a circular buffer I created.
The problem is that when I wanted to take advantage of the data stored in
my circular buffer, I must use av_malloc and memcpy to create and copy the
data. If I used the data directly from the circular buffer, it did not work.
As I have saw the source code, I found that av_malloc just did the
_aligned_malloc to malloc the data, and I tried that out, but still did not
work.
Attached is my loop doing remux, it is the todo part I wanna figure out. In
particular, I'm using malloc in FrameInfo class, but I have also tried the
_aligned_malloc(size, 16(/32) );
Thank you so much for the help~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131122/4a4d86b8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main while loop.cpp
Type: text/x-c++src
Size: 5799 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131122/4a4d86b8/attachment.bin>
More information about the Libav-user
mailing list