[FFmpeg-trac] #10440(undetermined:new): Segmentation fault (core dumped) when trying to generate hls output from .mp4 file
FFmpeg
trac at avcodec.org
Wed Sep 27 00:19:05 EEST 2023
#10440: Segmentation fault (core dumped) when trying to generate hls output from
.mp4 file
-------------------------------------+-------------------------------------
Reporter: | Owner: (none)
ffmpeg.golden |
Type: defect | Status: new
Priority: important | Component:
| undetermined
Version: 6.0 | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by piusbnsl):
I am getting the same error. Following is the command I used -
{{{
ffmpeg \
-report \
-i fireship-rust.mp4 \
-i fireship-rust.vtt \
-filter_complex
"[0:v]scale=1280:720[vyuv];[vyuv]split=2[v0][vtemp1];[vtemp1]scale=w=960:h=540[v1];"
\
-map "[v0]" -map "[v1]" -map 0:a -map 0:a -map 1:s -map 1:s \
-b:v:0 3500k -maxrate:v:0 3500k -bufsize:v:0 3500k \
-b:v:1 1690k -maxrate:v:1 1690k -bufsize:v:1 1690k \
-b:a 128k \
-c:s webvtt \
-c:v libx264 \
-c:a aac \
-f hls \
-var_stream_map "v:0,a:0,s:0,sgroup:subtitle v:1,a:1,s:1,sgroup:subtitle"
\
-master_pl_name master.m3u8 \
stream_%v/stream.m3u8
}}}
I am getting similar logs as above. I have pasted the whole report here -
https://pastebin.com/mfqL24EZ
I have tried multiple variations of the above command and am not able to
get the subtitles working with multiple streams. It works fine for single
stream -
{{{
ffmpeg \
-i fireship-rust.mp4 \
-i fireship-rust.vtt \
-filter_complex "[0:v]scale=1280:720[v0];" \
-map "[v0]" -map 0:a -map 1:s \
-b:v:0 3500k -maxrate:v:0 3500k -bufsize:v:0 3500k \
-b:a 128k \
-c:s webvtt \
-c:v libx264 \
-c:a aac \
-f hls \
-var_stream_map "v:0,a:0,s:0,sgroup:subtitle" \
-master_pl_name master.m3u8 \
stream_%v/stream.m3u8
}}}
or
{{{
ffmpeg \
-i fireship-rust.mp4 \
-i fireship-rust.vtt \
-filter_complex
"[0:v]scale=1280:720[vyuv];[vyuv]split=2[v0][vtemp1];[vtemp1]scale=w=960:h=540[v1];"
\
-map "[v0]" -map 0:a -map 1:s \
-b:a 128k \
-c:s webvtt \
-c:v libx264 \
-c:a aac \
-f hls \
-var_stream_map "v:0,a:0,s:0,sgroup:subtitle" \
-master_pl_name master.m3u8 \
-hls_time 2 \
-hls_segment_filename stream_%v/data%03d.ts \
stream_%v/stream.m3u8 \
-map "[v1]" -map 0:a \
output.mkv
}}}
Let me know if you need my help anyhow debugging this.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10440#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list