Open jasonjmcghee opened 6 months ago
@jasonjmcghee I think I have a potential solution:
1) Move let _ = DatabaseManager.shared.startNewVideoChunk(filePath: outputPath)
to the end of the processChunk() and check that the ffmpegProcess
exited successfully
2) Change getCurrentChunkId() in DB.swift to return the chunkId of the last inserted frame
3) Any process accessing the frames can ignore frames whose chunks don't exist in the videoChunks table
That sounds like a good plan.
We might even be able to get all available frames joined on video chunks table (paginated) and select from those
For example, frames without associated video: