CCExtractor Development

Subtitles not being generated in a specific file (1/2)

CCExtractor supports a lot of different standards for extracting captions/subtitles from video files in almost any language. However, occasionally we still encounter issues with certain recordings. This is one of them. The samples we got result in either a crash of CCExtractor or just garbage output.

The issue linked in the external URL will give you the sample we have for this issue, and in order to solve this task, we'd like you to dig into why these samples could be producing issues.

The program ends with "premature end of the file". The error itself it's not important; typically it means the file was cut in the middle of a packet. The fact that we don't generate subtitles is the important thing.

To complete this task you need some proficiency with running a debugger on a program, so you can try to trace back the origin of the issue.

We expect either a report indicating why it's impossible to extract captions from it, or a root cause in case you find out why it isn't. Bonus points if you can open a PR with a fix.

Task tags

  • debugging
  • c
  • bugs

Students who completed this task

Harry Yu

Task type

  • code Code
close

2017