-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ffmpeg_reader.py:139: UserWarning: Warning: Using the last valid frame instead. #1233
Comments
Do you mean that you used the version from GitHub, or simply the latest release on PyPI (installed with pip)? For reference: #1220 |
I use the version from Github, when I download it from Github, I see the time is 24 minutes after you committed. |
Ok. Is the program actually failing, or just issuing a warning? If it is just the warning, you can probably ignore it and it should just duplicate the last ~2 frames of the video. Would you be able to link the video file here? #1220 doesn't actually stop the warning from appearing, it just stops it crashing when it reaches the warning after skipping there from >100 frames before. It could be an issue with the wrong duration being detected by MoviePy (and so it then tries to read past the end of the file). This is an unresolved issue (see #1222). If you can't send the video, please send the result of |
I notice 1 thing, in your branch(name like xxxx fix read...errror), ffmpeg_reader.py there is a -acode -f null, but in master branch, there is no -acode |
I'm not entirely sure what you mean: https://github.com/tburrows13/moviepy/blob/fix-OSError-failed-to-read-first-frame/moviepy/video/io/ffmpeg_reader.py#L264 This was recently changed in #1063, possible incorrectly, hence why I am investigating it in #1222. You could try applying #1222 and seeing if that causes your videos to have a different (and correct) duration. |
I sent my test mp4 to your uk tom email address. Also I run ffmpeg and got this:
|
Sorry, I found that this line of code has been already committed from the branch to master cmd = [FFMPEG_BINARY, "-i", filename, "-acodec", "copy", "-f", "null", "-"] |
I've not tested with your mp4 but from that ffmpeg output, you can see that it says |
tburrows13 just committed new code a few minutes ago, and I just download it replaced my moviepy and run my program.
But write_videofile still gave out this warnning:
\moviepy\video\io\ffmpeg_reader.py:139: UserWarning: Warning: in file C:\AAF350.mp4, 1769472 bytes wanted but 0 bytes read,at frame 307/308, at time 10.23/10.26 sec. Using the last valid frame instead.
The text was updated successfully, but these errors were encountered: