Closed captions / subtitles

Archive of historical feature requests.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
kneeslasher
Experienced
Posts: 85
Joined: Tue Mar 06, 2007 8:40 pm

Post by kneeslasher »

Hang on. That last step. Let's say I had an m4v file and a text file somehow created from vobsubs or ccs. Quicktime Pro can zip them together and create a file capable of displaying subs/ccs in iTunes/QuickTime/iPhone?
gauvins
Posts: 9
Joined: Thu Nov 22, 2007 3:39 am

Post by gauvins »

quicktime can superimpose a text track (such as an .srt file created from CCs or otherwise) "over" a video track.

In practice, I convert VOBs into H.264 MP4 files with handbrake. Then I use QT pro to open the MP4, open a new window to open the text track, copy the text track and paste it into the MP4. It adds the text track to the video track. I adjust the video settings of the text track in order to have it under the video track.

The end result is subtitles that are true type fonts (no pixelation), very easy on the eyes, out of the video picture, and that you can hide/show at will.

--

I do not suffer from (severe) hearing loss. I rely on subtitles mostly for documentaries when it is often difficult to make out what was the name of the pharaoh's arch ennemy, or more generally, to follow an argument involving dates, places and so on, where reading makes it easier to understand.

But as a matter of fact, I also routinely add sub tracks to most movies so there are no lost dialogues anymore. The fact that you can easily hide/show subs makes all the difference in the world. (I use a remote to activate a QT script)
kneeslasher
Experienced
Posts: 85
Joined: Tue Mar 06, 2007 8:40 pm

Post by kneeslasher »

Bear with me: this is fascinating because I hadn't realised QT Pro had this capability.

So once a text track has been added, is this the equivalent of the "Show closed captions" option in iTunes? On the iPhone?
gauvins
Posts: 9
Joined: Thu Nov 22, 2007 3:39 am

Post by gauvins »

to learn more on CC as handled by iPod / iTouch / quicktime, watch this excellent vidcast http://phobos.apple.com/WebObjects/MZSt ... =123401561

I prefer the textTrack approach because CC is displayed over the movie frame whereas textTracks can be (easily) displayed under the movie.

Hearing impaired may prefer an over-the-picture display as your eyes do not have to scan below the picture frame. Or maybe the CC is displayed over the picture because of hardware restrictions (the full screen of NTSC broadcasts was using all of the available space so there were no alternatives. With computer displays and post-processing capabilities, it is fairly easy to customize displays).

--

I suppose that this conversation should be moved elsewhere. Maybe the moderators could suggest a location
kneeslasher
Experienced
Posts: 85
Joined: Tue Mar 06, 2007 8:40 pm

Post by kneeslasher »

How to almost get proper closed captions working without bothering the developers:

http://handbrake.fr/forum/viewtopic.php?t=4172
kneeslasher
Experienced
Posts: 85
Joined: Tue Mar 06, 2007 8:40 pm

Post by kneeslasher »

http://handbrake.fr/forum/viewtopic.php?t=4172

I just got it working. We can now take Closed Captions or Subtitles from a DVD and slap them into a Handbrake ripped m4v. This gives the Holy Grail of soft subs on the iPhone/iTunes/QuickTime/iPod. Check it out, I just tried it with a sample file.

Other CC/subs thread similarly notified.
jxlh999
Posts: 3
Joined: Fri Feb 01, 2008 7:25 am

Re: Closed captions / subtitles

Post by jxlh999 »

I posted on forums and asked the developer to add caption support
wunderbaren
Posts: 10
Joined: Sun Sep 09, 2007 1:20 pm

Re: Closed captions / subtitles

Post by wunderbaren »

CC is no longer needed when iTunes/ipod/iphoe have support for soft subtitles. Not real-DVD subtitles i guess, but it says subtitles anyway.
TechBill
Posts: 1
Joined: Tue Feb 05, 2008 11:15 pm

Re: Closed captions / subtitles

Post by TechBill »

I read the whole post and I would like to add my 2 cent to this and hope that will help provide some more information or better understanding to everyone and maybe help developer whom wil be motivated in future to try to make this work one day for Handbrake.

Closed Caption (CC) is a USA NTSC encoded. It pretty similar to Europe PAL Teletext but USA took this idea and slightly changed it to make it work for NSTC and encoded it into line21 of Vertical blanking interval on the video.

Those CC encode show up as a white lines across the top of the video which you don't normally see it on TV because of the overscan but it can be seen on computer viewer or player since it can show the entire VBI lines which you have to adjust the overscan to hide it.

Now I have read on internet that lots of folks think CC and Subtitle are the same thing which is not true at all. CC is embedded into the video itself and does not use separate file while the subtitle is a separate file which play in sync with the video file. So this make it easier for the developer to write a transcode software to read from a subtitle file and burn it into the video when encoding.

In the USA, CC is much more popular than subtitle because CC author actually include every possible sounds that is heard on the video even background sound or music while subtitle author only write what people are speaking in the video. That why you see so many folks with hope that some day they can encode CC into digital video because of the better information you get from CC than you get from subtitle. As it mentioned in other post that lot of movie companies releasing DVD movies try to save cost by omitting English subtitle since they have to embed it with CC but they would include French or Spanish subtitle etc on it and it is why you don't see very many English movie with English subtitle since it was closed captioned to being with and it was stripped when encoded into digital format.

Closed Caption - Created for deaf people in their own same language and since they cannot hear so CC includes more information like background sound or music etc.
Subtitle - Created mainly for hearing people in different lanaguage than their own and since they can hear so no need to include all those "extra" information in the subtitle.

Now since CC is analog and DVD is digital so they have to format it on DVD to emulate analog line21 video out to tv so the tv still can decode it. Popular tuner card like Hauppauge have released driver "CCinDVD" which saves CC into DVD format and can be read back by most mpeg player that support DVD CC like Mplayer. To play CC on Mplayer instead of -sub subtitlefilename.srt for subtitle you just replace it with -subcc to have Closed Caption in your playback.

CC is much harder to encode in another format since you would need to get the information from line21 format and convert it to a readable text then burn it on video so I do understand why developer have a tough time with closed caption because it not ready available as a separate file like subtitle and I would like to mention that Mplayer's Mencoder can decode closed caption and burn into the video but in subtitle format so it not really going to be closed caption however it will retain all CC information even background etc. Even latest SVN Mencoder are capable of doing scrolling captions after I have worked with one developer to include support for scrolling CC last Nov in Mplayer and Mencoder.

On I am sure all the developer here know what mencoder is and since it an open source perhaps it could help you or give you some idea how the function works and how to add it in the Handbrake. To encode CC from mpg that have CCinDVD format using mencoder is just like subtitle -sub subtitlefilename.srt instead you replace it with -subcc

Here an example of transcoding with mencoder and burning CC into video. You just transcode with mencoder with flags you normally use for encoding and add -subcc -subfont-text-scale 2.3 to it. Also subtitle font must be ready available in mplayer sub-folder or mencoder need to know where the subtitle font are.

mencoder sample.mpg -oac copy -ofps 24000/1001 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1100:v4mv:mbd=2:trell:cmp=3:subcmp=3:autoaspect:vpass=1 -vf pullup,softskip,crop=720:352:0:62,hqdn3d=2:1:2 -subcc -subfont-text-scale 2.3 -o sample-cc.avi


Here are some samples I have encoded with mencoder using -subcc from mpg files that I have recorded with Hauppauge PVR-500 tuner cards.

Here one with the regular pop-on closed caption which is most commonly used by tv show and movies
http://www.stlaware.com/output-cc.avi

And here one with scrolling closed caption mostly used by live news or some tv shows
http://www.stlaware.com/output-scrollcc.avi

It doesn't look like "CC" because I did not tell mecoder to format it with white text and black border background. I am just happy to see that CC are burn into the video and I can take my recorded show with me on the trips and enjoy it on any mpg player so I don't have to worry about finding a mpg player that to support it since it burnt into video and now an open caption.


I am not hoping that Handbrake developer would add this Burn CC to Video support into Handbrake because I use and love mencoder but I wanted to help developer out here by explaining and giving a starting direction where to learn more about this if Handbrake developer decided to one day in future to add support on Handbrake. And also to explain to the public why encoding analog CC into digital format is not an easy task like the subtitle is so they can stop jumping all over the developer and start to realize it a very tough program to code.

Bill
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Closed captions / subtitles

Post by jbrjake »

Okay, that's it folks. Dynaflash warned you earlier and you just wouldn't take no for an answer.

I'm locking the thread now. Any further discussion will happen in the development forum—and better damned well be limited to people like awong, who actually care enough to give code, rather than opinions.
Locked