[FFmpeg-user] fMP4 generation speed
Carl Zwanzig
cpz at tuunq.com
Wed Jun 27 08:50:42 EEST 2018
On 6/26/2018 9:20 PM, Ronak wrote:
> The temp files are made in the CWD. And they are constantly created and
> destroyed for every single fragment it seems. I looked into the ffmpeg
> code and it looks like every single method in hlsenc and dashenc opens
> and closes these file handles.
> I would like to make modifications to the code to fix it, but it's hard
> to follow exactly which methods to modify.
First thing I'd look at doing is to create the temp files in /tmp (*nix) or
/temp (windoze); just that and a memory file system for /tmp would do
wonders for throughput. Admittedly, it's not a real solution.
Past that, I suspect that any other change to use memory buffers instead of
files will be a more structural change. If I have a chance, I'll look at the
code tomorrow.
(z wonders why the code's author thought this was a good idea...)
Later,
z!
More information about the ffmpeg-user
mailing list