All videos seem corrupted
#2
by
hoshumu
- opened
Great work! However, I noticed that all the video files in the compressed package seem to display only a green screen. I suspect this might be due to an encoding error.
Sorry for the error—it seems to be caused by a video encoding issue. However, if you read and convert the video using the following code, the content can be properly displayed:
import decord
import imageio
import os
video_path = "./clips/000000.mp4"
vr = decord.VideoReader(video_path)
fps = vr.get_avg_fps()
output_path = "000000_update.mp4"
writer = imageio.get_writer(output_path, fps=fps)
for frame in vr:
frame = frame.asnumpy()
writer.append_data(frame)
writer.close()
I will update the .tar
soon.
Have updated.
hoshumu
changed discussion status to
closed
Thanks for your quick and helpful response!