Seb*_*ebo 7 python video moviepy
我一直在使用 Moviepy 将几个较短的视频文件合并为一个小时长的文件。一些小文件被“损坏”,它们包含视频但未正确完成(即它们使用 VLC 播放,但没有持续时间,并且您无法在视频中跳过)。
当我尝试使用 VideoFileClip(file) 函数创建剪辑时,我注意到这个问题。出现的错误是:
MoviePy 错误:无法读取文件的持续时间
有没有办法仍然从该视频文件中读取“好”帧,然后将它们添加到较长的视频中?
更新
To clarify, my issue specifically is with the following function call:
clip = mp.VideoFileClip("/home/test/"+file)
Stepping through the code it seems to be an issue when checking the duration of the file in ffmpeg_reader.py where it looks for the duration parameter in the video file. However, since the file never finished recording properly this information is missing. I'm not very familiar with the way video files are structured so I am unsure of how to proceed from here.
| 归档时间: |
|
| 查看次数: |
11630 次 |
| 最近记录: |