justdan96 / tsMuxer

tsMuxer is a transport stream muxer for remuxing/muxing elementary streams, EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS. Supported video codecs H.264/AVC, H.265/HEVC, VC-1, MPEG2. Supported audio codecs AAC, AC3 / E-AC3(DD+), DTS/ DTS-HD.
Apache License 2.0
831 stars 140 forks source link

Adding .srt subtitles in a ts container without converting to .pgs #717

Open mvasiliiv opened 1 year ago

mvasiliiv commented 1 year ago

Dear developer, is it possible to implement adding srt subtitles in a ts container without converting to pgs? Perhaps it already exists and I do not know about it, I am very much waiting for an answer, thank you!

jcdr428 commented 1 year ago

@mvasiliiv there are no developers, only the open source community. I dont know how text subtitles in an mpeg ts work, do you have a sample available?

mvasiliiv commented 1 year ago

When we pass through tsMuxeR any video with subtitles in the format .srt, we always get subtitles at the output .pgs, I need to avoid this, the subtitles should remain in the original form unchanged, is it really possible to achieve this, if not, is it possible to add such a function in the next assembly of tsMuxeR or is it impossible due to container limitations.ts?

jcdr428 commented 1 year ago

There seems to be a possibility of having text subtitles (not srt) in mpeg-ts according to DVB standards, however I have never seen any sample. Very little used. Implementing it would need quite some work.

mvasiliiv commented 1 year ago

Tell me what the procedure for converting srt subtitles into the format you are talking about looks like

blk13holland commented 1 year ago

hi, just share my work around, I mainly use Tsmuxer to demux, as this is the only app that works to create time code and able to play srt file correctly. i put the demux audio and video remux with srt file in MKVNIXTOOL. works perfectly. i try to find out how to create and insert SEI but still no idea. it's a great app works with linux mint 18 but LM 21 no longer working, i have to use win version running in WINE thanks BLK

blk13holland commented 1 year ago

its MKVTOOLNIX. sorry

mvasiliiv commented 1 year ago

I use a translator and maybe we don't quite understand each other

mvasiliiv commented 1 year ago

On the doom9 forum, they have been discussing for a long time what interests me, but I am not registered there and could not ask, after 5 days only there you can leave a message. I'll put it in here for now. Maybe it will be faster this way.

mvasiliiv commented 1 year ago

Dear friends, I use a translator to communicate here, I admit I could not master 66 pages to find a solution to my question, especially in a translator. A couple of years ago, what I was interested in was discussed and I did not fully understand whether a solution was found, when repacking mp4 DV to TS, the file remains working on an LG OLED TV, but subtitles are converted to pgs, as I understood, special tsMuxeR assemblies were created that are able to make subtitles work on embedded TV players if this is really the case, tell me which version you need to use, preferably the latest one suitable for my task, if no solution has been found, but there is something I should know about, please write about it.