You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/hlsenc: add warn message when use both fmp4 and single_file
have not implementation the fmp4 single file yet before this commit. Suggested-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Steven Liu <lq@onvideo.cn>
This commit is contained in:
@@ -1304,9 +1304,14 @@ static int hls_write_header(AVFormatContext *s)
|
|||||||
const char *pattern_localtime_fmt = get_default_pattern_localtime_fmt();
|
const char *pattern_localtime_fmt = get_default_pattern_localtime_fmt();
|
||||||
const char *vtt_pattern = "%d.vtt";
|
const char *vtt_pattern = "%d.vtt";
|
||||||
AVDictionary *options = NULL;
|
AVDictionary *options = NULL;
|
||||||
|
int byterange_mode = (hls->flags & HLS_SINGLE_FILE) || (hls->max_seg_size > 0);
|
||||||
int basename_size;
|
int basename_size;
|
||||||
int vtt_basename_size;
|
int vtt_basename_size;
|
||||||
|
|
||||||
|
if (hls->segment_type == SEGMENT_TYPE_FMP4 && byterange_mode) {
|
||||||
|
av_log(s, AV_LOG_WARNING, "Have not support fmp4 byterange mode yet now\n");
|
||||||
|
return AVERROR_PATCHWELCOME;
|
||||||
|
}
|
||||||
if ((hls->start_sequence_source_type == HLS_START_SEQUENCE_AS_SECONDS_SINCE_EPOCH) ||
|
if ((hls->start_sequence_source_type == HLS_START_SEQUENCE_AS_SECONDS_SINCE_EPOCH) ||
|
||||||
(hls->start_sequence_source_type == HLS_START_SEQUENCE_AS_FORMATTED_DATETIME)) {
|
(hls->start_sequence_source_type == HLS_START_SEQUENCE_AS_FORMATTED_DATETIME)) {
|
||||||
time_t t = time(NULL); // we will need it in either case
|
time_t t = time(NULL); // we will need it in either case
|
||||||
|
Reference in New Issue
Block a user