Search code examples
ffmpeghttp-live-streaming

ffmpeg Unrecognized option 'hls_enc'


Does anyone have a ffmpeg problem that Unrecognized option 'hls_enc'?

when I use ffmpeg to convert videos to hls with option 'hls_enc',followed the document: https://www.ffmpeg.org/ffmpeg-formats.html#Options-5 but throw error:Unrecognized option 'hls_enc'

Is it missing any configure options?

configuration: --enable-gpl --enable-nonfree --yasmexe=/data/ffmpeg.src/_release/bin/yasm --prefix=/data/ffmpeg.src/_release --cc= --enable-static --disable-shared --enable-debug --extra-cflags='-I/data/ffmpeg.src/_release/include' --extra-ldflags='-L/data/ffmpeg.src/_release/lib -lm -ldl' --enable-postproc --enable-bzlib --enable-zlib --enable-parsers --enable-pthreads --enable-libx264 --enable-libmp3lame --enable-libfdk_aac --enable-libspeex --extra-libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable-muxers --enable-demuxers


Solution

  • The 3.3 branch is too old for this option. 3.3 was cut from master on 2017-04-02, but this option was added on 2017-04-14. Releases do not get backports of new features. Compile using the code source from the git master branch instead. See "Get the Sources" on the FFmpeg Download page.