Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikola Pajkovsky <nikola@pajkovsky.cz>2020-10-27 14:28:59 +0300
committerliuqi05 <liuqi05@kuaishou.com>2020-12-08 16:02:23 +0300
commit3ffed80ebadbd8c10167fd6297d0c2d4797ec6f7 (patch)
tree20cb6747b58640b56a837d4de4d650dc27b93878 /doc/muxers.texi
parent45a673ebee2e603a87c0ecb259c0027c14321018 (diff)
hlsenc: expand hls_fmp4_init_filename with strftime()
the init.mp4 can be expanded with strftime the same way as hls_segment_filename. Signed-off-by: Nikola Pajkovsky <nikola@pajkovsky.cz> Signed-off-by: liuqi05 <liuqi05@kuaishou.com>
Diffstat (limited to 'doc/muxers.texi')
-rw-r--r--doc/muxers.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/muxers.texi b/doc/muxers.texi
index 813b4678f4..179b923951 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -859,6 +859,13 @@ fmp4 files may be used in HLS version 7 and above.
@item hls_fmp4_init_filename @var{filename}
Set filename to the fragment files header file, default filename is @file{init.mp4}.
+Use @code{-strftime 1} on @var{filename} to expand the segment filename with localtime.
+@example
+ffmpeg -i in.nut -hls_segment_type fmp4 -strftime 1 -hls_fmp4_init_filename "%s_init.mp4" out.m3u8
+@end example
+This will produce init like this
+@file{1602678741_init.mp4}
+
@item hls_fmp4_init_resend
Resend init file after m3u8 file refresh every time, default is @var{0}.