diff options
author | Nikola Pajkovsky <nikola@pajkovsky.cz> | 2020-10-27 12:28:59 +0100 |
---|---|---|
committer | liuqi05 <liuqi05@kuaishou.com> | 2020-12-08 21:02:23 +0800 |
commit | 3ffed80ebadbd8c10167fd6297d0c2d4797ec6f7 (patch) | |
tree | 20cb6747b58640b56a837d4de4d650dc27b93878 /doc | |
parent | 45a673ebee2e603a87c0ecb259c0027c14321018 (diff) | |
download | ffmpeg-3ffed80ebadbd8c10167fd6297d0c2d4797ec6f7.tar.gz |
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')
-rw-r--r-- | doc/muxers.texi | 7 |
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}. |