[FFmpeg-trac] #8733(undetermined:new): hls segments list repeated names
FFmpeg
trac at avcodec.org
Sat Jun 13 10:36:52 EEST 2020
#8733: hls segments list repeated names
-------------------------------------+-------------------------------------
Reporter: krs_vital | Owner:
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by stevenliu):
I cannot sure what you want , if you want set the segment wrap, or set the
%02d, i suggest you use hls_list_size to set the limit count of the list,
i don't recommend you use hls_wrap, because hls_wrap is not friendly to
CDN Cache.
i have do two example bellow, first is use %02d, the second is
hls_wrap(will be deprecated).
which one is you want to do?
{{{
liuqideMacBook-Pro:dash liuqi$ ./ffmpeg -f lavfi -i testsrc2=s=176x144 -g
25 -r:v 25 -f hls -hls_time 1 -hls_segment_filename
output_test/output-%02d.ts -t 10 output_test/output.m3u8
ffmpeg version N-96891-g60b1f85b67 Copyright (c) 2000-2020 the FFmpeg
developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --enable-fontconfig --enable-gpl --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-
libspeex --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-
version3 --enable-nonfree --enable-videotoolbox --enable-libxml2 --samples
=fate-suite/ --enable-libopencv --enable-libopus --enable-opengl --enable-
libzmq --disable-optimizations --disable-stripping
libavutil 56. 42.100 / 56. 42.100
libavcodec 58. 73.102 / 58. 73.102
libavformat 58. 39.101 / 58. 39.101
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 77.100 / 7. 77.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, lavfi, from 'testsrc2=s=176x144':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144
[SAR 1:1 DAR 11:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x7f9cf2803800] using SAR=1/1
[libx264 @ 0x7f9cf2803800] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0x7f9cf2803800] profile High, level 1.1
[libx264 @ 0x7f9cf2803800] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=4
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=2
scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, hls, to 'output_test/output.m3u8':
Metadata:
encoder : Lavf58.39.101
Stream #0:0: Video: h264 (libx264), yuv420p, 176x144 [SAR 1:1 DAR
11:9], q=-1--1, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc58.73.102 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[hls @ 0x7f9cf3014600] Opening 'output_test/output-00.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output-01.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output-02.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output-03.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output-04.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output-05.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output-06.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output-07.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output-08.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output-09.ts' for writing
[hls @ 0x7f9cf3014600] Opening 'output_test/output.m3u8.tmp' for writing
frame= 250 fps=0.0 q=-1.0 Lsize=N/A time=00:00:09.92 bitrate=N/A
speed=29.9x
video:218kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
[libx264 @ 0x7f9cf2803800] frame I:10 Avg QP:20.46 size: 3722
[libx264 @ 0x7f9cf2803800] frame P:73 Avg QP:27.43 size: 1172
[libx264 @ 0x7f9cf2803800] frame B:167 Avg QP:32.05 size: 595
[libx264 @ 0x7f9cf2803800] consecutive B-frames: 8.4% 3.2% 13.2% 75.2%
[libx264 @ 0x7f9cf2803800] mb I I16..4: 32.8% 13.8% 53.3%
[libx264 @ 0x7f9cf2803800] mb P I16..4: 3.2% 2.7% 2.7% P16..4: 19.0%
15.4% 12.8% 0.0% 0.0% skip:44.4%
[libx264 @ 0x7f9cf2803800] mb B I16..4: 0.3% 0.2% 0.1% B16..8: 27.3%
12.9% 4.3% direct: 3.8% skip:51.2% L0:48.8% L1:44.7% BI: 6.4%
[libx264 @ 0x7f9cf2803800] 8x8 transform intra:21.4% inter:25.8%
[libx264 @ 0x7f9cf2803800] coded y,uvDC,uvAC intra: 29.0% 60.6% 50.9%
inter: 9.8% 25.2% 20.8%
[libx264 @ 0x7f9cf2803800] i16 v,h,dc,p: 75% 17% 8% 0%
[libx264 @ 0x7f9cf2803800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 12% 68% 0%
0% 0% 1% 0% 1%
[libx264 @ 0x7f9cf2803800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50% 23% 19% 1%
1% 1% 2% 2% 2%
[libx264 @ 0x7f9cf2803800] i8c dc,h,v,p: 38% 21% 38% 2%
[libx264 @ 0x7f9cf2803800] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7f9cf2803800] ref P L0: 62.6% 8.3% 17.8% 11.3%
[libx264 @ 0x7f9cf2803800] ref B L0: 80.6% 16.3% 3.1%
[libx264 @ 0x7f9cf2803800] ref B L1: 90.9% 9.1%
[libx264 @ 0x7f9cf2803800] kb/s:177.78
liuqideMacBook-Pro:dash liuqi$ tree output_test/
output_test/
├── output-00.ts
├── output-01.ts
├── output-02.ts
├── output-03.ts
├── output-04.ts
├── output-05.ts
├── output-06.ts
├── output-07.ts
├── output-08.ts
├── output-09.ts
└── output.m3u8
0 directories, 11 files
liuqideMacBook-Pro:dash liuqi$ rm -rf output_test/*
liuqideMacBook-Pro:dash liuqi$ ./ffmpeg -f lavfi -i testsrc2=s=176x144 -g
25 -r:v 25 -f hls -hls_time 1 -hls_wrap 5 -hls_segment_filename
output_test/output-%02d.ts -t 10 output_test/output.m3u8
ffmpeg version N-96891-g60b1f85b67 Copyright (c) 2000-2020 the FFmpeg
developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --enable-fontconfig --enable-gpl --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-
libspeex --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-
version3 --enable-nonfree --enable-videotoolbox --enable-libxml2 --samples
=fate-suite/ --enable-libopencv --enable-libopus --enable-opengl --enable-
libzmq --disable-optimizations --disable-stripping
libavutil 56. 42.100 / 56. 42.100
libavcodec 58. 73.102 / 58. 73.102
libavformat 58. 39.101 / 58. 39.101
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 77.100 / 7. 77.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, lavfi, from 'testsrc2=s=176x144':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144
[SAR 1:1 DAR 11:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x7f8fba00ec00] using SAR=1/1
[libx264 @ 0x7f8fba00ec00] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0x7f8fba00ec00] profile High, level 1.1
[libx264 @ 0x7f8fba00ec00] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=4
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=2
scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, hls, to 'output_test/output.m3u8':
Metadata:
encoder : Lavf58.39.101
Stream #0:0: Video: h264 (libx264), yuv420p, 176x144 [SAR 1:1 DAR
11:9], q=-1--1, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc58.73.102 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[hls @ 0x7f8fba809c00] Opening 'output_test/output-00.ts' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output-01.ts' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output-02.ts' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output-03.ts' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output-04.ts' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output-00.ts' for writing
[hls muxer @ 0x7f8fba00ca00] Duplicated segment filename detected:
output-00.ts
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output-01.ts' for writing
[hls muxer @ 0x7f8fba00ca00] Duplicated segment filename detected:
output-01.ts
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output-02.ts' for writing
[hls muxer @ 0x7f8fba00ca00] Duplicated segment filename detected:
output-02.ts
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output-03.ts' for writing
[hls muxer @ 0x7f8fba00ca00] Duplicated segment filename detected:
output-03.ts
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
[hls @ 0x7f8fba809c00] Opening 'output_test/output-04.ts' for writing
[hls muxer @ 0x7f8fba00ca00] Duplicated segment filename detected:
output-04.ts
[hls @ 0x7f8fba809c00] Opening 'output_test/output.m3u8.tmp' for writing
frame= 250 fps=0.0 q=-1.0 Lsize=N/A time=00:00:09.92 bitrate=N/A
speed=27.6x
video:218kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
[libx264 @ 0x7f8fba00ec00] frame I:10 Avg QP:20.46 size: 3722
[libx264 @ 0x7f8fba00ec00] frame P:73 Avg QP:27.43 size: 1172
[libx264 @ 0x7f8fba00ec00] frame B:167 Avg QP:32.05 size: 595
[libx264 @ 0x7f8fba00ec00] consecutive B-frames: 8.4% 3.2% 13.2% 75.2%
[libx264 @ 0x7f8fba00ec00] mb I I16..4: 32.8% 13.8% 53.3%
[libx264 @ 0x7f8fba00ec00] mb P I16..4: 3.2% 2.7% 2.7% P16..4: 19.0%
15.4% 12.8% 0.0% 0.0% skip:44.4%
[libx264 @ 0x7f8fba00ec00] mb B I16..4: 0.3% 0.2% 0.1% B16..8: 27.3%
12.9% 4.3% direct: 3.8% skip:51.2% L0:48.8% L1:44.7% BI: 6.4%
[libx264 @ 0x7f8fba00ec00] 8x8 transform intra:21.4% inter:25.8%
[libx264 @ 0x7f8fba00ec00] coded y,uvDC,uvAC intra: 29.0% 60.6% 50.9%
inter: 9.8% 25.2% 20.8%
[libx264 @ 0x7f8fba00ec00] i16 v,h,dc,p: 75% 17% 8% 0%
[libx264 @ 0x7f8fba00ec00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 12% 68% 0%
0% 0% 1% 0% 1%
[libx264 @ 0x7f8fba00ec00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50% 23% 19% 1%
1% 1% 2% 2% 2%
[libx264 @ 0x7f8fba00ec00] i8c dc,h,v,p: 38% 21% 38% 2%
[libx264 @ 0x7f8fba00ec00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7f8fba00ec00] ref P L0: 62.6% 8.3% 17.8% 11.3%
[libx264 @ 0x7f8fba00ec00] ref B L0: 80.6% 16.3% 3.1%
[libx264 @ 0x7f8fba00ec00] ref B L1: 90.9% 9.1%
[libx264 @ 0x7f8fba00ec00] kb/s:177.78
liuqideMacBook-Pro:dash liuqi$ tree output_test/
output_test/
├── output-00.ts
├── output-01.ts
├── output-02.ts
├── output-03.ts
├── output-04.ts
└── output.m3u8
0 directories, 6 files
liuqideMacBook-Pro:dash liuqi$ ./ffmpeg -h muxer=hls|grep hls_wrap
ffmpeg version N-96891-g60b1f85b67 Copyright (c) 2000-2020 the FFmpeg
developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --enable-fontconfig --enable-gpl --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-
libspeex --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-
version3 --enable-nonfree --enable-videotoolbox --enable-libxml2 --samples
=fate-suite/ --enable-libopencv --enable-libopus --enable-opengl --enable-
libzmq --disable-optimizations --disable-stripping
libavutil 56. 42.100 / 56. 42.100
libavcodec 58. 73.102 / 58. 73.102
libavformat 58. 39.101 / 58. 39.101
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 77.100 / 7. 77.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
-----------note----------
-hls_wrap <int> E......... set number after which the
index wraps (will be deprecated) (from 0 to INT_MAX) (default 0)
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8733#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list