【问题标题】:ffmpeg save hls to m3u8 with mp4 segmentsffmpeg 使用 mp4 段将 hls 保存到 m3u8
【发布时间】:2018-11-18 04:11:05
【问题描述】:

我正在寻找一个命令 ffmpeg,它使用 mp4 片段文件将实时输入(rtmp 或 hls)保存到 hls m3u8。我知道这是可能的,即有 infohttps://bitmovin.com/hls-news-wwdc-2016/ 但我尝试的每个命令 - 都会生成 ts 文件。有谁知道解决办法吗?

【问题讨论】:

标签: ffmpeg mp4 m3u8


【解决方案1】:
ffmpeg -re \
  -i http://inputfile.m3u8 \
  -c:v copy \
  -c:a copy \
  -hls_time 10 \
  -hls_list_size 3 \
  -hls_wrap 3 \
  -hls_segment_type fmp4 \
  /location/to/file/index.m3u8

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-03
    • 2016-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-23
    • 2021-09-14
    • 1970-01-01
    相关资源
    最近更新 更多