-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Failed to read duration of file, Samsung S6 MP4s #226
Comments
This is another video that gives the same "error reading headers" (from a Samsung S3) when trying to use
|
It looks like this was my fault. I was reading in a file from s3 using Closing this for now. |
moviepy==0.2.2.11
I printed out each line of the file:
File: https://www.dropbox.com/s/o6r4tbc1see7zf8/tixhr-1990104484.mp4?dl=0
It looks like there is no "Duration :" in the header, so this (https://github.com/Zulko/moviepy/blob/master/moviepy/video/io/ffmpeg_reader.py#L264) fails with
List index out of range
Even if I skip that
if
statement and explicitly setresult['duration']
to something random (float(5.31)
), it fails later down the line here: https://github.com/Zulko/moviepy/blob/master/moviepy/video/io/ffmpeg_reader.py#L273Any idea why the headers might be corrupt?
The text was updated successfully, but these errors were encountered: