[FFmpeg-user] hls with subtitles vtt.m3u8 missing last segment and #EXT-X-ENLIST
Adrian .
a at fumatic.org
Fri Nov 6 02:54:02 CET 2015
I am segmenting for hls with subtitles.
All the segments for video and for webvtt subtitles are created,
however, the vtt m3u8 file consistently omits the last segment entry
and the #EXT-X-ENLIST.
I am wondering I am doing something incorrectly.
here is my command and output.
I appreciate any feedback y'all can provide.
Adrian
a at cloudy:~/test# ffmpeg -i vid.mp4 -i sub.vtt -c copy -bsf:v
h264_mp4toannexb out.m3u8
ffmpeg version N-76474-g973c3db Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 5.2.1 (Debian 5.2.1-22) 20151010
configuration: --enable-shared --enable-libx264 --enable-nonfree
--enable-gpl --enable-libzvbi --enable-version3 --enable-libtheora
--enable-libvorbis --enable-openssl --enable-libcaca --enable-libfaac
--enable-libopus --enable-libquvi --enable-libssh --enable-libopenjpeg
--enable-libmp3lame --enable-librtmp --enable-libvpx --enable-libwebp
--enable-sdl
libavutil 55. 5.100 / 55. 5.100
libavcodec 57. 14.100 / 57. 14.100
libavformat 57. 14.100 / 57. 14.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 14.101 / 6. 14.101
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'vid.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.14.100
Duration: 00:00:21.02, start: 0.021333, bitrate: 2222 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1440x1080 [SAR 4:3 DAR 16:9], 2126 kb/s, 29.97 fps, 29.97 tbr, 11988
tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
mono, fltp, 87 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, webvtt, from 'sub.vtt':
Duration: N/A, bitrate: N/A
Stream #1:0: Subtitle: webvtt
Output #0, hls, to 'out.m3u8':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.14.100
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p,
1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 2126 kb/s, 29.97 fps, 29.97 tbr,
90k tbn, 29.97 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono,
87 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #0:2: Subtitle: webvtt
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (copy)
Press [q] to stop, [?] for help
frame= 630 fps=0.0 q=-1.0 Lsize=N/A time=00:00:21.03 bitrate=N/A
video:5456kB audio:224kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
a at cloudy:~/test# ls
out0.ts out0.vtt out1.ts out1.vtt out2.ts out2.vtt out.m3u8
out_vtt.m3u8 sub.vtt vid.mp4
a at cloudy:~/test# tail *.m3u8
==> out.m3u8 <==
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:9
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:8.341678,
out0.ts
#EXTINF:8.341667,
out1.ts
#EXTINF:4.270944,
out2.ts
#EXT-X-ENLIST
==> out_vtt.m3u8 <==
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:9
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:8.341678,
out0.vtt
#EXTINF:8.341667,
out1.vtt
a at cloudy:~/test#
More information about the ffmpeg-user
mailing list