]> git.sesse.net Git - ffmpeg/commit
qt-faststart: speedup
authorJan Ehrhardt <phpdev@ehrhardt.nl>
Sun, 30 Sep 2012 19:32:26 +0000 (21:32 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Sep 2012 20:19:54 +0000 (22:19 +0200)
commitf4d9148fe282879b9fcc755767c9c04de9ddbcfa
treed8996267f2adca9c29a059b0b748858d8bf78e23
parent13d878366f4ef15e64d2fc29d482ab283ac75282
qt-faststart: speedup

qt-faststart is terribly slow when the input file and the output file
are on a slow disk like a SD card. By increasing the copy_buffer from
1K to 32M I decreased the processing time on a sample file from
1600 seconds to 4 seconds. The timing difference is during 'copying
rest of file'.

S:\SD_VIDEO\PRG001>e:\utils\qt-faststart 00005.mp4 5.mp4
ftyp          0 32
free         32 8
mdat         40 13744391
moov   13744431 141848
 patching stco atom...
 patching stco atom...
 writing ftyp atom...
 writing moov atom...
 copying rest of file...

Execution time: 1576.259 s

S:\SD_VIDEO\PRG001>s:\utils\qt-faststart 00005.mp4 5.mp4
ftyp          0 32
free         32 8
mdat         40 13744391
moov   13744431 141848
 patching stco atom...
 patching stco atom...
 writing ftyp atom...
 writing moov atom...
 copying rest of file...

Execution time: 3.846 s

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/qt-faststart.c