Opened 12 months ago

Last modified 12 months ago

#9329 new defect

HLS stream map with subtitles group results in error

Reported by: Yash Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: HLS
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Yash)

Summary of the bug:

I am creating an HLS stream with subtitles in two languages with the same subtitle group and the command results in an error.

How to reproduce:

% ffmpeg -loglevel debug -vsync 0 -hwaccel cuvid -hwaccel_output_format cuda -c:v h264_cuvid -i transformers.mp4 -y -filter_complex "[0:v]hwdownload,format=nv12[0_v_cpu];[0_v_cpu]colorspace=irange=tv:range=tv:ispace=smpte170m:space=bt709:itrc=smpte170m:trc=bt709:iprimaries=smpte170m:primaries=bt709[init_processed];[init_processed]split=2[360p][720p];[360p]hwupload_cuda,scale_npp=640:360:interp_algo=lanczos[360pScaled];[720p]hwupload_cuda,scale_npp=1280:720:interp_algo=lanczos[720pScaled]" -max_muxing_queue_size 256 -hls_list_size 0 -hls_playlist_type vod -hls_flags single_file+independent_segments -hls_segment_type fmp4 -hls_segment_filename %v.mp4 -hls_subtitle_path %v.vtt -hls_time 2 -master_pl_name 1.m3u8 -preset:v slow -tune:v hq -qmin:v 0 -bf:v 3 -b_ref_mode:v 2 -temporal_aq:v 1 -i_qfactor:v 0.75 -b_qfactor:v 1.1 -color_primaries:v bt709 -color_trc:v bt709 -colorspace:v bt709 -color_range:v tv -g:v 48 -keyint_min:v 48 -forced-idr:v 1 -map "[360pScaled]" -map "[720pScaled]" -map 0:a:0 -map 0:a:0 -map 0:s:0 -map 0:s:1 -c:s:0 webvtt -c:s:1 webvtt -c:v:0 h264_nvenc -c:v:1 h264_nvenc -b:v:0 400k -b:v:1 3000k -maxrate:v:0 400k -maxrate:v:1 3000k -bufsize:v:0 800k -bufsize:v:1 6000k -c:a:0 aac -c:a:1 aac -b:a:0 96k -b:a:1 128k -var_stream_map "v:0,agroup:audio_96k,sgroup:subtitle,name:60ed13d04c18991fa348e35c_0 v:1,agroup:audio_128k,sgroup:subtitle,name:60ed13d04c18991fa348e35c_1 a:0,agroup:audio_96k,name:60ed13d04c18991fa348e35c_en_96k,language:en a:1,agroup:audio_128k,name:60ed13d04c18991fa348e35c_en_128k,language:en s:0,sgroup:subtitle,name:eng,language:eng s:1,sgroup:subtitle,name:ara,language:ara" -f hls %v.m3u8
ffmpeg version 4.4.git
built on ...
Ubuntu 20.04 5.8.0-50-generic
CUDA 11.1
Video Codec SDK version 11.0.10.
NVIDIA Driver Version: 460.73.01


[mp4 @ 0x55d28332d040] No streams to mux were specified
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:1 --

Full Error (debug) log and video file are in attachments.

Video File Link:

Attachments (1)

git_head_debug.log (131.2 KB ) - added by Yash 12 months ago.
Debug log

Download all attachments as: .zip

Change History (3)

by Yash, 12 months ago

Attachment: git_head_debug.log added

Debug log

comment:1 by Steven Liu, 12 months ago

Can i get your test sample file transformers.mp4?

comment:2 by Yash, 12 months ago

Description: modified (diff)

Added link to the video.

Note: See TracTickets for help on using tickets.