[FFmpeg-user] add SRT to dvb TS file
Wojciech Wydmuch
wydmuch at gmail.com
Mon Mar 9 12:27:30 EET 2020
Hi,
What is the best practise to add subtitles (srt file) into TS file?
Actually i have an error with converting text to bmp
MBP-user:$ ffmpeg -i movie.ts -i subs.srt -c:v copy -c:a copy -c:s xsub
-map 0 -map 1 output.ts
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.16)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_1 --enable-shared
--enable-pthreads --enable-version3 --enable-avresample --cc=clang
--host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include
-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin
-fno-stack-check' --host-ldflags= --enable-ffplay --enable-gnutls
--enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame
--enable-libopus --enable-librubberband --enable-libsnappy
--enable-libtesseract --enable-libtheora --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig
--enable-libfreetype --enable-frei0r --enable-libass
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox
--disable-libjack --disable-indev=jack
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[mpegts @ 0x7fc791800000] start time for stream 3 is not set in
estimate_timings_from_pts
Input #0, mpegts, from 'movie.ts':
Duration: 01:53:40.83, start: 0.940000, bitrate: 10569 kb/s
Program 1
Stream #0:0[0x21]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50
tbr, 90k tbn, 50 tbc
Stream #0:1[0x24](pol): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), fltp, 448 kb/s
Stream #0:2[0x25](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), fltp, 448 kb/s
Stream #0:3[0x26](pol): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Input #1, srt, from 'subs.srt':
Duration: N/A, bitrate: N/A
Stream #1:0: Subtitle: subrip
File 'output.ts' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (dvb_subtitle (dvbsub) -> xsub (native))
Stream #1:0 -> #0:4 (subrip (srt) -> xsub (native))
Subtitle encoding currently only possible from text to text or bitmap to
bitmap
Any help ?
Thanks
More information about the ffmpeg-user
mailing list