mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-14 21:23:42 +00:00
-s option fails to keep updating on .wtv file (on Windows) #77
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alastaircoote on GitHub (Oct 14, 2015).
Originally assigned to: @canihavesomecoffee on GitHub.
I'm trying to pipe Windows Media Center recordings through ccextractor to get the subtitles out in near-realtime. It's finding the subtitles and extracting them just fine, but the
-soption doesn't appear to be working - it grabs all the subtitles up until a certain point then stops. If I add a number afterwards (i.e.-s 10it will close after 10 seconds, as if it has no new data - but the recording is definitely still going, and the file keeps growing. If I run it again, it'll grab new subtitles since the last time it was run, then freeze again.I'm honestly not sure where to even start debugging here but any tips would be appreciated!
@anshul1912 commented on GitHub (Oct 16, 2015):
I'm trying to pipeat other moment you say that you are using filefile keeps growing,@alastaircoote commented on GitHub (Oct 16, 2015):
It turns out that I am an idiot. What I didn't notice was that Windows Media Center actually preallocates ~500MB to the recording file as soon as it starts - then growing it in 500MB increments as required. This means that the streaming mode of ccextractor fails, as it immediately parses the whole file, then waits for it to grow beyond 500MB, while not noticing that data is being backfilled.
I have a rudimentary script set up that is watching the .wtv file and copying segments as they are changed - it's not too reliable, but ccextractor seems to work with it. So, not ccextractor's fault, but maybe it was worth creating this issue just in case someone else runs into the same issue in the future.