[FFmpeg-user] issue with [PATCH] avformat/hlsenc: actual segment file size and duration in segment filenames

Steven Liu lingjiujianke at gmail.com
Wed Jan 11 02:00:20 EET 2017


2017-01-11 7:28 GMT+08:00 Steven Liu <lingjiujianke at gmail.com>:

>
>
> 2017-01-11 6:58 GMT+08:00 Christian Johannesen <chrisjohannesen at gmail.com>
> :
>
>> On Tue, Jan 10, 2017 at 4:01 PM, Steven Liu <lingjiujianke at gmail.com>
>> wrote:
>>
>>>
>>>
>>> add -re , try it like this:
>>>
>>> ffmpeg.exe -re -i D:\media\mix_of_clip_960x540_2128.mp4 -codec copy -f
>>> hls
>>> -hls_time 6 -hls_list_size 5 -hls_flags
>>> second_level_segment_index+second_level_segment_size+
>>> second_level_segment_duration
>>> -use_localtime 1 -use_localtime_mkdir 1 -hls_segment_filename
>>> "D:\media\mix_of_clip_960x540_2128\segment_%%04d_%%08s_%%013t.ts"
>>> D:\media\mix_of_clip_960x540_2128\index.m3u8
>>>
>>
>> I tried adding the -re option, but its doing the same behavior, at
>> realtime now. I just downloaded the source and compiled it, but i'm getting
>> a different verison mine shows  N-83034-gf48b6b8 & yours might be more
>> recent with a version of N-83037-gdaff04b.
>>
>> I'll email you directly with a link to the file as I don't think I can
>> share it on this list.
>>
>> Thanks,
>> Chris
>>
>>
>>
> localhost:hlsenc StevenLiu$
> localhost:hlsenc StevenLiu$ ./ffmpeg -v verbose -i
> mix_of_clip_960x540_2128.mp4 -c copy -f hls -hls_time 6 -hls_list_size 0
> -hls_flags second_level_segment_index+second_level_segment_size+second_level_segment_duration
> -use_localtime 1 -use_localtime_mkdir 1 -hls_segment_filename
> mix_of_clip_960x540_2128/segment_%%04d_%%08s_%%013t.ts
> mix_of_clip_960x540_2128/index.m3u8
> ffmpeg version N-83037-gdaff04b Copyright (c) 2000-2017 the FFmpeg
> developers
>   built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
>   configuration: --enable-libass --enable-opengl --enable-libx264
> --enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local
> --enable-libopencv --enable-libtesseract --enable-libspeex
> --enable-libfreetype --enable-libfontconfig --enable-libfdk-aac
>   libavutil      55. 43.100 / 55. 43.100
>   libavcodec     57. 71.100 / 57. 71.100
>   libavformat    57. 62.100 / 57. 62.100
>   libavdevice    57.  2.100 / 57.  2.100
>   libavfilter     6. 68.100 /  6. 68.100
>   libswscale      4.  3.101 /  4.  3.101
>   libswresample   2.  4.100 /  2.  4.100
>   libpostproc    54.  2.100 / 54.  2.100
> [h264 @ 0x7fb233800c00] Reinit context to 960x544, pix_fmt: yuv420p
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mix_of_clip_960x540_2128.mp4':
>   Metadata:
>     major_brand     : isom
>     minor_version   : 512
>     compatible_brands: isomiso2avc1mp41
>     encoder         : Lavf57.11.100
>   Duration: 00:12:00.68, start: 0.000000, bitrate: 1248 kb/s
>     Stream #0:0(und): Video: h264 (Main), 1 reference frame (avc1 /
> 0x31637661), yuv420p(tv, bt709, left), 960x540 (960x544) [SAR 1:1 DAR
> 16:9], 1115 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
>     Metadata:
>       handler_name    : VideoHandler
>     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
> stereo, fltp, 128 kb/s (default)
>     Metadata:
>       handler_name    : SoundHandler
> [mpegts @ 0x7fb233802a00] muxrate VBR, pcr every 2 pkts, sdt every
> 2147483647 <(214)%20748-3647>, pat/pmt every 2147483647 <(214)%20748-3647>
> pkts
> Output #0, hls, to 'mix_of_clip_960x540_2128/index.m3u8':
>   Metadata:
>     major_brand     : isom
>     minor_version   : 512
>     compatible_brands: isomiso2avc1mp41
>     encoder         : Lavf57.62.100
>     Stream #0:0(und): Video: h264 (Main), 1 reference frame (avc1 /
> 0x31637661), yuv420p(tv, bt709, left), 960x540 (0x0) [SAR 1:1 DAR 16:9],
> q=2-31, 1115 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc (default)
>     Metadata:
>       handler_name    : VideoHandler
>     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
> stereo, fltp, 128 kb/s (default)
>     Metadata:
>       handler_name    : SoundHandler
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>   Stream #0:1 -> #0:1 (copy)
> Press [q] to stop, [?] for help
> [hls @ 0x7fb232816200] hls->dpp = [0.041711]
> Automatically inserted bitstream filter 'h264_mp4toannexb'; args=''
> [hls @ 0x7fb232816200] EXT-X-MEDIA-SEQUENCE:0
>     Last message repeated 30 times
> [hls @ 0x7fb232816200] EXT-X-MEDIA-SEQUENCE:03:06.17 bitrate=N/A speed=
> 366x
>     Last message repeated 18 times
> [hls @ 0x7fb232816200] EXT-X-MEDIA-SEQUENCE:005:02.65 bitrate=N/A speed=
> 300x
>     Last message repeated 10 times
> [hls @ 0x7fb232816200] EXT-X-MEDIA-SEQUENCE:006:06.35 bitrate=N/A speed=
> 241x
>     Last message repeated 16 times
> [hls @ 0x7fb232816200] EXT-X-MEDIA-SEQUENCE:007:48.45 bitrate=N/A speed=
> 232x
>     Last message repeated 35 times
> [hls @ 0x7fb232816200] EXT-X-MEDIA-SEQUENCE:011:24.67 bitrate=N/A speed=
> 272x
>     Last message repeated 4 times
> No more output streams to write to, finishing.
> [hls @ 0x7fb232816200] EXT-X-MEDIA-SEQUENCE:0
> frame=17278 fps=6750 q=-1.0 Lsize=N/A time=00:12:00.61 bitrate=N/A speed=
> 282x
> video:98101kB audio:11261kB subtitle:0kB other streams:0kB global
> headers:0kB muxing overhead: unknown
> Input file #0 (mix_of_clip_960x540_2128.mp4):
>   Input stream #0:0 (video): 17278 packets read (100455890 bytes);
>   Input stream #0:1 (audio): 33782 packets read (11530946 bytes);
>   Total: 51060 packets (111986836 bytes) demuxed
> Output file #0 (mix_of_clip_960x540_2128/index.m3u8):
>   Output stream #0:0 (video): 17278 packets muxed (100455890 bytes);
>   Output stream #0:1 (audio): 33782 packets muxed (11530946 bytes);
>   Total: 51060 packets (111986836 bytes) muxed
> localhost:hlsenc StevenLiu$ cat output
> localhost:hlsenc StevenLiu$ cat mix_of_clip_960x540_2128/index.m3u8
> #EXTM3U
> #EXT-X-VERSION:3
> #EXT-X-TARGETDURATION:7
> #EXT-X-MEDIA-SEQUENCE:0
> #EXTINF:6.049067,
> mix_of_clip_960x540_2128/segment_0000_00470940_0000006049067.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0001_00552908_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0002_00807836_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0003_00895256_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0004_00858972_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0005_00553660_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0006_00488048_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0007_00570768_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0008_00364720_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0009_00435972_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0010_00801444_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0011_00661384_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0012_00607992_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0013_00899768_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0014_01095100_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0015_01072164_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0016_00916688_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0017_00827012_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0018_01098672_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0019_00971772_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0020_00824380_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0021_00710452_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0022_00707068_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0023_01019712_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0024_00579040_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0025_00572084_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0026_00813288_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0027_00491432_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0028_00573776_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0029_00725492_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0030_00491056_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0031_00544824_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0032_00783208_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0033_00640704_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0034_00601036_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0035_00581860_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0036_00539748_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0037_00478272_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0038_00503464_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0039_00733576_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0040_01118224_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0041_00710828_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0042_01170864_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0043_01243056_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0044_01215044_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0045_01675080_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0046_01583712_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0047_01718508_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0048_01672636_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0049_01656468_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0050_01673012_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0051_01655528_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0052_01571304_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0053_01697076_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0054_01672636_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0055_01678652_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0056_01702716_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0057_01603452_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0058_01697452_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0059_01492156_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0060_01864396_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0061_01561152_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0062_01669816_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0063_01669628_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0064_01659664_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0065_01727720_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0066_01608904_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0067_01637856_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0068_01724148_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0069_01561904_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0070_01704972_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0071_01640676_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0072_01666056_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0073_01651392_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0074_01674516_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0075_01695760_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0076_01572056_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0077_01747836_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0078_01553444_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0079_01696324_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0080_01613228_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0081_01736744_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0082_01574688_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0083_01617740_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0084_01717568_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0085_01696136_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0086_01628268_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0087_01599692_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0088_01695572_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0089_01843716_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0090_00309072_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0091_00308884_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0092_00308320_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0093_00309260_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0094_00309824_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0095_00308696_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0096_00308884_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0097_00308320_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0098_00309260_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0099_00309824_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0100_00308320_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0101_00309260_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0102_00307944_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0103_00309636_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0104_00309448_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0105_00308696_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0106_00308884_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0107_00308320_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0108_00309260_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0109_00309824_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0110_00308696_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0111_00308884_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0112_00308320_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0113_00309260_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0114_00309824_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0115_00308320_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0116_00309260_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0117_00307944_0000006006400.ts
> #EXTINF:6.006400,
> mix_of_clip_960x540_2128/segment_0118_00309636_0000006006400.ts
> #EXTINF:5.922978,
> mix_of_clip_960x540_2128/segment_0119_00302868_0000005922978.ts
> #EXT-X-ENDLIST
> localhost:hlsenc StevenLiu$
> localhost:hlsenc StevenLiu$ ls mix_of_clip_960x540_2128/*.ts
> mix_of_clip_960x540_2128/segment_0000_00470940_0000006049067.ts
> mix_of_clip_960x540_2128/segment_0040_01118224_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0080_01613228_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0001_00552908_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0041_00710828_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0081_01736744_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0002_00807836_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0042_01170864_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0082_01574688_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0003_00895256_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0043_01243056_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0083_01617740_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0004_00858972_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0044_01215044_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0084_01717568_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0005_00553660_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0045_01675080_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0085_01696136_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0006_00488048_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0046_01583712_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0086_01628268_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0007_00570768_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0047_01718508_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0087_01599692_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0008_00364720_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0048_01672636_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0088_01695572_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0009_00435972_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0049_01656468_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0089_01843716_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0010_00801444_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0050_01673012_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0090_00309072_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0011_00661384_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0051_01655528_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0091_00308884_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0012_00607992_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0052_01571304_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0092_00308320_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0013_00899768_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0053_01697076_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0093_00309260_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0014_01095100_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0054_01672636_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0094_00309824_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0015_01072164_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0055_01678652_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0095_00308696_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0016_00916688_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0056_01702716_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0096_00308884_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0017_00827012_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0057_01603452_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0097_00308320_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0018_01098672_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0058_01697452_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0098_00309260_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0019_00971772_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0059_01492156_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0099_00309824_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0020_00824380_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0060_01864396_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0100_00308320_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0021_00710452_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0061_01561152_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0101_00309260_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0022_00707068_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0062_01669816_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0102_00307944_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0023_01019712_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0063_01669628_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0103_00309636_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0024_00579040_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0064_01659664_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0104_00309448_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0025_00572084_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0065_01727720_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0105_00308696_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0026_00813288_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0066_01608904_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0106_00308884_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0027_00491432_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0067_01637856_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0107_00308320_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0028_00573776_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0068_01724148_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0108_00309260_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0029_00725492_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0069_01561904_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0109_00309824_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0030_00491056_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0070_01704972_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0110_00308696_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0031_00544824_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0071_01640676_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0111_00308884_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0032_00783208_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0072_01666056_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0112_00308320_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0033_00640704_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0073_01651392_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0113_00309260_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0034_00601036_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0074_01674516_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0114_00309824_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0035_00581860_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0075_01695760_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0115_00308320_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0036_00539748_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0076_01572056_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0116_00309260_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0037_00478272_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0077_01747836_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0117_00307944_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0038_00503464_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0078_01553444_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0118_00309636_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0039_00733576_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0079_01696324_0000006006400.ts
> mix_of_clip_960x540_2128/segment_0119_00302868_0000005922978.ts
> localhost:hlsenc StevenLiu$
>
>
>
localhost:hlsenc StevenLiu$ ./ffmpeg -i mix_of_clip_960x540_2128.mp4 -c
copy -f hls -hls_time 6 -hls_list_size 5 -hls_flags
second_level_segment_index+second_level_segment_size+second_level_segment_duration
-use_localtime 1 -use_localtime_mkdir 1 -hls_segment_filename
mix_of_clip_960x540_2128/segment_%%04d_%%08s_%%013t.ts
mix_of_clip_960x540_2128/index.m3u8

ffmpeg version N-83037-gdaff04b Copyright (c) 2000-2017 the FFmpeg
developers

  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)

  configuration: --enable-libass --enable-opengl --enable-libx264
--enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local
--enable-libopencv --enable-libtesseract --enable-libspeex
--enable-libfreetype --enable-libfontconfig --enable-libfdk-aac

  libavutil      55. 43.100 / 55. 43.100

  libavcodec     57. 71.100 / 57. 71.100

  libavformat    57. 62.100 / 57. 62.100

  libavdevice    57.  2.100 / 57.  2.100

  libavfilter     6. 68.100 /  6. 68.100

  libswscale      4.  3.101 /  4.  3.101

  libswresample   2.  4.100 /  2.  4.100

  libpostproc    54.  2.100 / 54.  2.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mix_of_clip_960x540_2128.mp4':

  Metadata:

    major_brand     : isom

    minor_version   : 512

    compatible_brands: isomiso2avc1mp41

    encoder         : Lavf57.11.100

  Duration: 00:12:00.68, start: 0.000000, bitrate: 1248 kb/s

    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
bt709), 960x540 [SAR 1:1 DAR 16:9], 1115 kb/s, 23.98 fps, 23.98 tbr, 24k
tbn, 47.95 tbc (default)

    Metadata:

      handler_name    : VideoHandler

    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 128 kb/s (default)

    Metadata:

      handler_name    : SoundHandler

Output #0, hls, to 'mix_of_clip_960x540_2128/index.m3u8':

  Metadata:

    major_brand     : isom

    minor_version   : 512

    compatible_brands: isomiso2avc1mp41

    encoder         : Lavf57.62.100

    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
bt709), 960x540 [SAR 1:1 DAR 16:9], q=2-31, 1115 kb/s, 23.98 fps, 23.98
tbr, 90k tbn, 23.98 tbc (default)

    Metadata:

      handler_name    : VideoHandler

    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 128 kb/s (default)

    Metadata:

      handler_name    : SoundHandler

Stream mapping:

  Stream #0:0 -> #0:0 (copy)

  Stream #0:1 -> #0:1 (copy)

Press [q] to stop, [?] for help

[hls @ 0x7fd66705b600] hls->dpp = [0.041711]

frame=17278 fps=9360 q=-1.0 Lsize=N/A time=00:12:00.61 bitrate=N/A speed=
390x

video:98101kB audio:11261kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown

localhost:hlsenc StevenLiu$ cat mix_of_clip_960x540_2128/index.m3u8

#EXTM3U

#EXT-X-VERSION:3

#EXT-X-TARGETDURATION:7

#EXT-X-MEDIA-SEQUENCE:115

#EXTINF:6.006400,

mix_of_clip_960x540_2128/segment_0115_00308320_0000006006400.ts

#EXTINF:6.006400,

mix_of_clip_960x540_2128/segment_0116_00309260_0000006006400.ts

#EXTINF:6.006400,

mix_of_clip_960x540_2128/segment_0117_00307944_0000006006400.ts

#EXTINF:6.006400,

mix_of_clip_960x540_2128/segment_0118_00309636_0000006006400.ts

#EXTINF:5.922978,

mix_of_clip_960x540_2128/segment_0119_00302868_0000005922978.ts

#EXT-X-ENDLIST

localhost:hlsenc StevenLiu$ ls mix_of_clip_960x540_2128/*.ts

mix_of_clip_960x540_2128/segment_0000_00470940_0000006049067.ts
mix_of_clip_960x540_2128/segment_0040_01118224_0000006006400.ts
mix_of_clip_960x540_2128/segment_0080_01613228_0000006006400.ts

mix_of_clip_960x540_2128/segment_0001_00552908_0000006006400.ts
mix_of_clip_960x540_2128/segment_0041_00710828_0000006006400.ts
mix_of_clip_960x540_2128/segment_0081_01736744_0000006006400.ts

mix_of_clip_960x540_2128/segment_0002_00807836_0000006006400.ts
mix_of_clip_960x540_2128/segment_0042_01170864_0000006006400.ts
mix_of_clip_960x540_2128/segment_0082_01574688_0000006006400.ts

mix_of_clip_960x540_2128/segment_0003_00895256_0000006006400.ts
mix_of_clip_960x540_2128/segment_0043_01243056_0000006006400.ts
mix_of_clip_960x540_2128/segment_0083_01617740_0000006006400.ts

mix_of_clip_960x540_2128/segment_0004_00858972_0000006006400.ts
mix_of_clip_960x540_2128/segment_0044_01215044_0000006006400.ts
mix_of_clip_960x540_2128/segment_0084_01717568_0000006006400.ts

mix_of_clip_960x540_2128/segment_0005_00553660_0000006006400.ts
mix_of_clip_960x540_2128/segment_0045_01675080_0000006006400.ts
mix_of_clip_960x540_2128/segment_0085_01696136_0000006006400.ts

mix_of_clip_960x540_2128/segment_0006_00488048_0000006006400.ts
mix_of_clip_960x540_2128/segment_0046_01583712_0000006006400.ts
mix_of_clip_960x540_2128/segment_0086_01628268_0000006006400.ts

mix_of_clip_960x540_2128/segment_0007_00570768_0000006006400.ts
mix_of_clip_960x540_2128/segment_0047_01718508_0000006006400.ts
mix_of_clip_960x540_2128/segment_0087_01599692_0000006006400.ts

mix_of_clip_960x540_2128/segment_0008_00364720_0000006006400.ts
mix_of_clip_960x540_2128/segment_0048_01672636_0000006006400.ts
mix_of_clip_960x540_2128/segment_0088_01695572_0000006006400.ts

mix_of_clip_960x540_2128/segment_0009_00435972_0000006006400.ts
mix_of_clip_960x540_2128/segment_0049_01656468_0000006006400.ts
mix_of_clip_960x540_2128/segment_0089_01843716_0000006006400.ts

mix_of_clip_960x540_2128/segment_0010_00801444_0000006006400.ts
mix_of_clip_960x540_2128/segment_0050_01673012_0000006006400.ts
mix_of_clip_960x540_2128/segment_0090_00309072_0000006006400.ts

mix_of_clip_960x540_2128/segment_0011_00661384_0000006006400.ts
mix_of_clip_960x540_2128/segment_0051_01655528_0000006006400.ts
mix_of_clip_960x540_2128/segment_0091_00308884_0000006006400.ts

mix_of_clip_960x540_2128/segment_0012_00607992_0000006006400.ts
mix_of_clip_960x540_2128/segment_0052_01571304_0000006006400.ts
mix_of_clip_960x540_2128/segment_0092_00308320_0000006006400.ts

mix_of_clip_960x540_2128/segment_0013_00899768_0000006006400.ts
mix_of_clip_960x540_2128/segment_0053_01697076_0000006006400.ts
mix_of_clip_960x540_2128/segment_0093_00309260_0000006006400.ts

mix_of_clip_960x540_2128/segment_0014_01095100_0000006006400.ts
mix_of_clip_960x540_2128/segment_0054_01672636_0000006006400.ts
mix_of_clip_960x540_2128/segment_0094_00309824_0000006006400.ts

mix_of_clip_960x540_2128/segment_0015_01072164_0000006006400.ts
mix_of_clip_960x540_2128/segment_0055_01678652_0000006006400.ts
mix_of_clip_960x540_2128/segment_0095_00308696_0000006006400.ts

mix_of_clip_960x540_2128/segment_0016_00916688_0000006006400.ts
mix_of_clip_960x540_2128/segment_0056_01702716_0000006006400.ts
mix_of_clip_960x540_2128/segment_0096_00308884_0000006006400.ts

mix_of_clip_960x540_2128/segment_0017_00827012_0000006006400.ts
mix_of_clip_960x540_2128/segment_0057_01603452_0000006006400.ts
mix_of_clip_960x540_2128/segment_0097_00308320_0000006006400.ts

mix_of_clip_960x540_2128/segment_0018_01098672_0000006006400.ts
mix_of_clip_960x540_2128/segment_0058_01697452_0000006006400.ts
mix_of_clip_960x540_2128/segment_0098_00309260_0000006006400.ts

mix_of_clip_960x540_2128/segment_0019_00971772_0000006006400.ts
mix_of_clip_960x540_2128/segment_0059_01492156_0000006006400.ts
mix_of_clip_960x540_2128/segment_0099_00309824_0000006006400.ts

mix_of_clip_960x540_2128/segment_0020_00824380_0000006006400.ts
mix_of_clip_960x540_2128/segment_0060_01864396_0000006006400.ts
mix_of_clip_960x540_2128/segment_0100_00308320_0000006006400.ts

mix_of_clip_960x540_2128/segment_0021_00710452_0000006006400.ts
mix_of_clip_960x540_2128/segment_0061_01561152_0000006006400.ts
mix_of_clip_960x540_2128/segment_0101_00309260_0000006006400.ts

mix_of_clip_960x540_2128/segment_0022_00707068_0000006006400.ts
mix_of_clip_960x540_2128/segment_0062_01669816_0000006006400.ts
mix_of_clip_960x540_2128/segment_0102_00307944_0000006006400.ts

mix_of_clip_960x540_2128/segment_0023_01019712_0000006006400.ts
mix_of_clip_960x540_2128/segment_0063_01669628_0000006006400.ts
mix_of_clip_960x540_2128/segment_0103_00309636_0000006006400.ts

mix_of_clip_960x540_2128/segment_0024_00579040_0000006006400.ts
mix_of_clip_960x540_2128/segment_0064_01659664_0000006006400.ts
mix_of_clip_960x540_2128/segment_0104_00309448_0000006006400.ts

mix_of_clip_960x540_2128/segment_0025_00572084_0000006006400.ts
mix_of_clip_960x540_2128/segment_0065_01727720_0000006006400.ts
mix_of_clip_960x540_2128/segment_0105_00308696_0000006006400.ts

mix_of_clip_960x540_2128/segment_0026_00813288_0000006006400.ts
mix_of_clip_960x540_2128/segment_0066_01608904_0000006006400.ts
mix_of_clip_960x540_2128/segment_0106_00308884_0000006006400.ts

mix_of_clip_960x540_2128/segment_0027_00491432_0000006006400.ts
mix_of_clip_960x540_2128/segment_0067_01637856_0000006006400.ts
mix_of_clip_960x540_2128/segment_0107_00308320_0000006006400.ts

mix_of_clip_960x540_2128/segment_0028_00573776_0000006006400.ts
mix_of_clip_960x540_2128/segment_0068_01724148_0000006006400.ts
mix_of_clip_960x540_2128/segment_0108_00309260_0000006006400.ts

mix_of_clip_960x540_2128/segment_0029_00725492_0000006006400.ts
mix_of_clip_960x540_2128/segment_0069_01561904_0000006006400.ts
mix_of_clip_960x540_2128/segment_0109_00309824_0000006006400.ts

mix_of_clip_960x540_2128/segment_0030_00491056_0000006006400.ts
mix_of_clip_960x540_2128/segment_0070_01704972_0000006006400.ts
mix_of_clip_960x540_2128/segment_0110_00308696_0000006006400.ts

mix_of_clip_960x540_2128/segment_0031_00544824_0000006006400.ts
mix_of_clip_960x540_2128/segment_0071_01640676_0000006006400.ts
mix_of_clip_960x540_2128/segment_0111_00308884_0000006006400.ts

mix_of_clip_960x540_2128/segment_0032_00783208_0000006006400.ts
mix_of_clip_960x540_2128/segment_0072_01666056_0000006006400.ts
mix_of_clip_960x540_2128/segment_0112_00308320_0000006006400.ts

mix_of_clip_960x540_2128/segment_0033_00640704_0000006006400.ts
mix_of_clip_960x540_2128/segment_0073_01651392_0000006006400.ts
mix_of_clip_960x540_2128/segment_0113_00309260_0000006006400.ts

mix_of_clip_960x540_2128/segment_0034_00601036_0000006006400.ts
mix_of_clip_960x540_2128/segment_0074_01674516_0000006006400.ts
mix_of_clip_960x540_2128/segment_0114_00309824_0000006006400.ts

mix_of_clip_960x540_2128/segment_0035_00581860_0000006006400.ts
mix_of_clip_960x540_2128/segment_0075_01695760_0000006006400.ts
mix_of_clip_960x540_2128/segment_0115_00308320_0000006006400.ts

mix_of_clip_960x540_2128/segment_0036_00539748_0000006006400.ts
mix_of_clip_960x540_2128/segment_0076_01572056_0000006006400.ts
mix_of_clip_960x540_2128/segment_0116_00309260_0000006006400.ts

mix_of_clip_960x540_2128/segment_0037_00478272_0000006006400.ts
mix_of_clip_960x540_2128/segment_0077_01747836_0000006006400.ts
mix_of_clip_960x540_2128/segment_0117_00307944_0000006006400.ts

mix_of_clip_960x540_2128/segment_0038_00503464_0000006006400.ts
mix_of_clip_960x540_2128/segment_0078_01553444_0000006006400.ts
mix_of_clip_960x540_2128/segment_0118_00309636_0000006006400.ts

mix_of_clip_960x540_2128/segment_0039_00733576_0000006006400.ts
mix_of_clip_960x540_2128/segment_0079_01696324_0000006006400.ts
mix_of_clip_960x540_2128/segment_0119_00302868_0000005922978.ts
localhost:hlsenc StevenLiu$



>
>
>
>
> It's ok.
>
> and
>
> please try it by n3.3-dev-900-gdaff04b
>
>
>


More information about the ffmpeg-user mailing list