我将使用这个程序集ffmpeg
https://hub.docker.com/r/jrottenberg/ffmpeg/
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.2.1 (Alpine 6.2.1) 20160822
我正在尝试同时做破折号和hls。
在此处的文档中http://ffmpeg.org/ffmpeg-all.html#dash-2
关键是:
-hls_playlist hls_playlist
Generate HLS playlist files as well. The master playlist is generated
with the filename master.m3u8. One media playlist file is generated for
each stream with filenames media_0.m3u8, media_1.m3u8, etc.
那些。必须同时创建mpd和m3u8。
运行:
ffmpeg -re \
-analyzeduration 20000000 \
-i udp: //239.0.0.1: 1234? overrun_nonfatal = 1 \
-map 0 \
-c copy \
-f dash \
-min_seg_duration 5000000 \
-window_size 10 \
-extra_window_size 10 \
-remove_at_exit 1 \
-hls_playlist 1 \
-use_timeline 1 \
-use_template 1 \
-vtag avc1 \
-atag mp4a \
cam01.mpd
并收到错误:
Unrecognized option 'hls_playlist'.
Error splitting the argument list: Option not found`
没有-hls_playlist
一切正常......
可能是什么问题?