OK, I was able to test the mpegts with subtitles.
I have an ffmpeg build from
Zeranoe webpage - it supports libass filter.
The libass needs some settings to actually work - as per
this post.
Convert the srt subtitiles file into ass (make sure that srt is encoded with UTF8):
- Code:
ffmpeg -i test.srt test.ass
And finally, embed the subtitles into mpg container:
- Code:
ffmpeg -i test.mp4 -acodec copy -vcodec libx264 -vf ass=test.ass -f mpegts test.mpg
I guess, you cannot copy the video stream (by"-c:v copy" or "-vcodec copy") as you modify the video to have subtitles...
MediaInfo on the converted sample file:
- Code:
General
Format : MPEG-TS
File size : 192 MiB
Duration : 41mn 41s
Overall bit rate mode : Variable
Overall bit rate : 643 Kbps
Video
ID : 256 (0x100)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 27
Duration : 41mn 41s
Width : 720 pixels
Height : 404 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 128 r2216 198a7ea
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Audio
ID : 257 (0x101)
Menu ID : 1 (0x1)
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Muxing mode : ADTS
Codec ID : 15
Duration : 41mn 41s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Menu
ID : 4096 (0x1000)
Menu ID : 1 (0x1)
Duration : 41mn 41s
List : 256 (0x100) (AVC) / 257 (0x101) (AAC)
Service name : Service01
Service provider : FFmpeg
Service type : digital television
I didn't specify any x264 options as I was only trying to have the burnt-in subtitles and didn't care about the picture quality.
Such file plays with no problems on my Viera ST50 (just to remind you that I have transcoding turned off in Serviio).
I hope this helps
