[FFmpeg-trac] #7281(avformat:new): fMP4 Single File Generation is excruciatingly slow
FFmpeg
trac at avcodec.org
Wed Jun 27 07:29:48 EEST 2018
#7281: fMP4 Single File Generation is excruciatingly slow
-----------------------------------+--------------------------------------
Reporter: ronak2121 | Type: defect
Status: new | Priority: important
Component: avformat | Version: git-master
Keywords: hls fMP4 | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-----------------------------------+--------------------------------------
Summary of the bug:
Using a 20 hour audio mp4 file, try to make an fMP4 file (either HLS or
DASH/HLS mode), using -codec copy to ensure there's no encoding being
done. ffmpeg will take several hours to fragment the file.
Compare this to Apple's HLS Tools: https://developer.apple.com/streaming/
which is able to fragment in roughly 1 minute.
How to reproduce:
{{{
% ffmpeg -i "$FILE.mp4" -codec copy -hls_time 0.975238095238095
-hls_segment_type fmp4 -hls_flags single_file+append_list+split_by_time
-hls_playlist_type vod "$FILE.m3u8"
ffmpeg version
ffmpeg version git-2018-06-23-b86c575 Copyright (c) 2000-2018 the FFmpeg
developers
built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-b86c575 --enable-
shared --enable-pthreads --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl
--enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-
librubberband --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
--enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 20.103 / 58. 20.103
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 25.100 / 7. 25.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
outfile}...
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7281>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list