-
Notifications
You must be signed in to change notification settings - Fork 68
Add handling for corrupt files during transcoding #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add handling for corrupt files during transcoding #399
Conversation
|
@copilot Try again |
Co-authored-by: ShaneIsrael <[email protected]>
Co-authored-by: ShaneIsrael <[email protected]>
Implemented persistent tracking for corrupt files during transcoding in commits eed734a and 5610018. Changes:
|
|
@copilot This is wrong. This should not be a database entry. This should just be a variable or file that holds a list of all corrupt videos. |
Co-authored-by: ShaneIsrael <[email protected]>
Co-authored-by: ShaneIsrael <[email protected]>
Changed to file-based storage in commits c62d925 and 54dbe14. Corrupt videos are now tracked in |
|
@copilot By default, the transcode_videos command should skip over a file that is in the corrupt list unless otherwise specified. Is that being done? |
Yes, this is implemented. By default, The |
Adds file-based tracking for corrupt video files during transcoding. When a video fails transcoding due to corruption, it is added to a JSON file (
corrupt_videos.json) and skipped in future transcode runs. This prevents repeated attempts to transcode files that are known to be corrupt.Changes Made
corrupt_videos.jsonin the data directorytranscode_videoscommand: Marks videos as corrupt when corruption is detected and skips them in future runs--include-corruptflag: Allows retrying previously marked corrupt videosGET /api/videos/corrupt- List all corrupt videosDELETE /api/videos/<video_id>/corrupt- Clear corrupt status for one videoDELETE /api/videos/corrupt/clear-all- Clear corrupt status for all videosTesting
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.