【问题标题】:How to fragment a video in HLS mp4 segment using ffmpeg?如何使用 ffmpeg 对 HLS mp4 片段中​​的视频进行分段?
【发布时间】:2018-07-22 08:46:14
【问题描述】:

我知道 ffmpeg 能够产生 mp4 片段 (https://trac.ffmpeg.org/ticket/5699#no1),但我找不到怎么做:(

其实我会的

ffmpeg -i input.mp4 -hls_time 10 output.m3u8

但我当然有 .ts 段,而我想要 .mp4 段:(

【问题讨论】:

标签: ffmpeg http-live-streaming


【解决方案1】:

仅供参考,截至 2018 年 5 月,这似乎已在 ffmpeg v4 中得到修复:

ffmpeg -y -i udp://@:50000 -c copy -hls_segment_type fmp4 -hls_time 6 -hls_list_size 10 -hls_flags delete_segments+append_list+split_by_time -hls_playlist_type event ~/Sites/foo/index_4000.m3u8

【讨论】:

    猜你喜欢
    • 2018-11-18
    • 1970-01-01
    • 1970-01-01
    • 2015-05-24
    • 2017-05-25
    • 1970-01-01
    • 1970-01-01
    • 2021-01-04
    • 2015-05-08
    相关资源
    最近更新 更多