News for hackers. Stuff that matters.
Re:Extracting Chinese Hard Subs from a Video, Part 1 by mmanfrin on Monday May 29, 2017 @05:38PM (#14441591)
Could isolate the text by compositing neighbor images and getting the pixels that don't differ. The background is moving, the text is not.

This would also allow you to extract out the subs without having to OCR them/get characters. Could just erase all static artifacts (including subs but also things like watermarks).

Re:Extracting Chinese Hard Subs from a Video, Part 1 by KerrickStaley on Monday May 29, 2017 @06:51PM (#14441942)
An approach I really want to try is taking a stream of the video without subs (can easily be found online) and subtracting the two. You'd have to deal with differences in resolution and compression between the two, and also handle cases where the background is either white or black, but in theory it should work very well. I haven't had time to dig into this.
Re:Extracting Chinese Hard Subs from a Video, Part 1 by 0xfeba on Monday May 29, 2017 @07:32PM (#14442082)
Seems like you could get gstreamer and some subtractive elements working pretty quick...
Re:Extracting Chinese Hard Subs from a Video, Part 1 by gbaygon on Monday May 29, 2017 @11:12PM (#14442829)
Legitimate question: why would you want the first video (hardcoded subs) if you have a second stream without them, better resolution maybe?
Re:Extracting Chinese Hard Subs from a Video, Part 1 by kpozin on Monday May 29, 2017 @11:16PM (#14442836)
In order to have access to vocabulary words. From the article: > I wanted to get a transcript of the episode’s dialog so I could study the unfamiliar vocabulary. Unfortunately, the video files I have only have hard subtitles
Re:Extracting Chinese Hard Subs from a Video, Part 1 by gbaygon on Monday May 29, 2017 @11:48PM (#14442906)
Makes sense, thanks. I went straight to the technical details and missed that part.
Re:Extracting Chinese Hard Subs from a Video, Part 1 by stuaxo on Monday May 29, 2017 @07:25PM (#14442053)
This has to be worth a try.
Re:Extracting Chinese Hard Subs from a Video, Part 1 by wolfgang42 on Monday May 29, 2017 @05:40PM (#14441604)
This only works if the camera isn't fixed, though. In the frame from the post it might erase the dashboard, the car roof, and so on.
Re:Extracting Chinese Hard Subs from a Video, Part 1 by killin_dan on Monday May 29, 2017 @05:53PM (#14441676)
Just define a small area of the screen to run on then. Subtitles are typically within a very small portion of the screen
Re:Extracting Chinese Hard Subs from a Video, Part 1 by thebooktocome on Monday May 29, 2017 @08:42PM (#14442352)
Nope, every channel of CCTV seems to have its own subtitle convention.
Re:Extracting Chinese Hard Subs from a Video, Part 1 by killin_dan on Tuesday May 30, 2017 @01:19AM (#14443111)
Which is irrelevant to stripping subs from one movie at a time.