ffmpeg – Add subtitle stream to .ts file

I have a .ts file which is a satellite (DVB) recording from the TV. However, the subtitle stream in it is out of sync with the audio.

Using TSDoctor I extracted the subtitles to a .srt file.

I loaded that in to “Subtitle Edit” and was able to export it out to VobSub format.

I now want to ADD this as another subtitle stream to my .ts file without re-encoding it. I barely know what I am doing with ffmpeg but from reading around superuser threads I found this command and it is almost what I need…

ffmpeg -i "V808.ts" -i "V808.[2357](41001ms).idx" -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s dvbsub -metadata:s:s:0 language=eng OUTPUT.ts

But it replaces the existing narrator and (out of sync) subtitle streams. How do I keep those and just add another stream?

Can someone confirm does this approach NOT re-encode the stream? I do to want that to happen if possible.

Any other approaches to doing this are greatly appreciated.

Cheers,

Flex

Read more here: Source link