Opened 5 years ago
Closed 4 years ago
#8388 closed defect (fixed)
HLS segmenter does not pass strict flag
Reported by: | gordon | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | hls |
Cc: | wgordonw1@gmail.com, lq@onvideo.cn | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
$ ffmpeg -i source.flv -f hls -c:a libopus -hls_segment_type fmp4 -strict experimental -hls_segment_filename out.mp4 -strict experimental -master_pl_name out-master.m3u8 -strict experimental out.-variant.m3u8
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --prefix=/home/vagrant/ffmpeg/build --pkg-config-flags=--static --extra-cflags=-I/home/vagrant/ffmpeg/build/include --extra-ldflags=-L/home/vagrant/ffmpeg/build/lib --bindir=/home/vagrant/bin --enable-openssl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, flv, from 'source.flv':
Duration: 00:00:29.68, start: 0.000000, bitrate: 162 kb/s
Stream #0:0: Video: flv1, yuv420p, 160x120, 12 fps, 12 tbr, 1k tbn
Stream #0:1: Audio: adpcm_swf, 22050 Hz, mono, s16, 88 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (flv1 (flv) -> h264 (libx264))
Stream #0:1 -> #0:1 (adpcm_swf (native) -> opus (libopus))
Press [q] to stop, ? for help
[libx264 @ 0x55f8b9d1b100] using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX
[libx264 @ 0x55f8b9d1b100] profile High, level 1.0
[libx264 @ 0x55f8b9d1b100] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=250 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[libopus @ 0x55f8b9d1a6c0] No bit rate set. Defaulting to 64000 bps.
[hls @ 0x55f8b9d267c0] Opening 'init.mp4' for writing
[mp4 @ 0x55f8b9ef7b00] opus in MP4 support is experimental, add '-strict -2' if you want to use it.
Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature
Error initializing output stream 0:1 --
Conversion failed!
Change History (10)
comment:1 by , 5 years ago
Cc: | added |
---|
comment:2 by , 5 years ago
Component: | undetermined → avformat |
---|
comment:3 by , 5 years ago
Cc: | added |
---|
follow-up: 6 comment:5 by , 5 years ago
Replying to gordon:
I don't seem to be able to mark this as good to go.
Sorry, I cannot understand this line, do you mean there have same problem after you merge the patch?
can you leave the full console output here?
comment:6 by , 5 years ago
Replying to stevenliu:
Replying to gordon:
I don't seem to be able to mark this as good to go.
Sorry, I cannot understand this line, do you mean there have same problem after you merge the patch?
can you leave the full console output here?
I was trying to say yes it worked for me. I tried to progress the status of the issue by accepting the patch but I do not have that option. But worked for me. Thank you for putting it together so quickly
comment:7 by , 5 years ago
Keywords: | hls added |
---|
comment:8 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
fixed by: 59d264b0a1218094709d61e30c9056c90859567f
comment:9 by , 4 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Was this merged? I am observing the issue again against 4.2.3
comment:10 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Ah, see it in master and not in 4.2.3
try this patch please.
https://patchwork.ffmpeg.org/patch/16343/