pbs / pycaption

Python module to read/write popular video caption formats
Apache License 2.0
256 stars 136 forks source link

SCC file content error #183

Closed sandeepangara closed 3 years ago

sandeepangara commented 5 years ago

I tried to read a SCC file and print the content, the content looks repetitive

(Client's Voice)\nRemember that degree\nyou got in taxation? (Client's Voice)\nRemember that degree\nyou got in taxation? (Client's Voice)\nRemember that degree\nyou got in taxation? (Client's Voice)\nRemember that degree\nyou got in taxation? (Client's Voice)\nRemember that degree\nyou got in taxation? (Client's Voice)\nRemember that degree\nyou got in taxation? (Client's Voice)\nRemember that degree\nyou got in taxation?

TV1_HC47974.txt

Could you please let me know the issue.

ianShifrin commented 3 years ago

Hi @anssandeep , sorry for the delay, this is a known issue when mixing roll-up captions with paint-on or pop-on captions. The reader keeps looking for the next roll-up command and each time a command to print the caption to the screen is encountered the most recent roll-up caption is printed in place of the pop-on caption.

Until a fix is available the best thing to do is ensure all captions are of the same format. For pre-recorded content pop-on is usually preferred as it allows precise placement and styling.