[Frontend] Implement robust video frame recovery for corrupted videos (#29197)

Signed-off-by: cmartinez <cmartinez@roblox.com>
Signed-off-by: vSeamar <cmartinez@roblox.com>
This commit is contained in:
vSeamar
2026-01-07 01:13:24 +00:00
committed by GitHub
parent 364a8bc6dc
commit 6f351548b2
4 changed files with 421 additions and 15 deletions
+1 -1
View File
@@ -867,7 +867,7 @@ class RandomMultiModalDataset(RandomDataset):
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
fps = 30 # frames per second
with NamedTemporaryFile(suffix=".mp4", delete_on_close=False) as temp_file:
with NamedTemporaryFile(suffix=".mp4", delete=False) as temp_file:
temp_path = temp_file.name
# Create video writer