Log in

View Full Version : Demux subtitle from H264 ts.


telefunken
5th September 2012, 12:08
I have googled and searched the forum here without any luck. I am looking for a way to extract subtitles from a 720p, H264 ts file from a DVB stream.
I have tried ProjectX, tsmuxer and CCExtractor without any luck.

Any help greatly appreciated.

cfsmp3
5th September 2012, 22:00
Do you know for sure that the video has captions? What's the source of the video?

kalehrl
6th September 2012, 13:58
ProjectX should work even though you get errors about video not being supported.
The subtitles should be processed correctly.

Ghitulescu
6th September 2012, 14:11
if the source contain subtitles projectx can extract them for you, provided you have the latest version and you activated that option.

Blue_MiSfit
7th September 2012, 04:17
Subtitles, or closed captions? What does MediaInfo tell you about the stream? Usually it will tell you if there are 608/708 captions in the SEI messages. I know nothing about subtitles.

Unfortunately, I'm not aware of a freeware / open source tool that can extract captions into an SCC file or similar from an H.264 stream. There are plenty of (expensive) pro apps that can do this, but I'm guessing you're not interested in that option.

telefunken
8th September 2012, 13:30
First of all, thank you everyone for replying to my thread. Sorry for the late reply, I have been away for a few days.

Problem has been fixed. At first I could get the captions exported with CCExtractor to an SRT file, but the timestamps where all wrong. With ProjectX I was able to extract them, but unable to decode with subrip. In idx/sub format they where unreadable on screen (very dark colors). However, after playing around with the subtitles settings in ProjectX I found a setting called "NRK" in "simulate DVB Subpictures IRD model". With this setting everything looks good, I just had to resync them slighly.

Sorry for not being clear on the problem in my first post, next time I ask for help I will be more thorough.

Edit: Is there away to convert these to a tekst based format (would be preferred, but since subrip did not work I don't know about any aother option...)

kalehrl
8th September 2012, 13:44
Edit: Is there away to convert these to a tekst based format (would be preferred, but since subrip did not work I don't know about any aother option...)
Yes.
Have a look here on the forum:
http://forum.doom9.org/showthread.php?t=164687
or:
http://www.nikse.dk/SubtitleEdit

telefunken
8th September 2012, 13:53
Great program, thank you, kalehrl