-
Notifications
You must be signed in to change notification settings - Fork 13
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
Timmy tries to resize video files #38
Comments
Hey @therealgilles Timmy should definitely not try to resize MP4 files. Did that happen when you tried to upload an MP4 file in the WordPress admin? |
@gchtr: Thanks for following up. It happened when I was trying to access WordPress media library in the backend. I added the following as a workaround: add_filter(
'timmy/resize/ignore',
function ( $return, $attachment ) {
if ( preg_match( '/video/', $attachment->post_mime_type ) ) {
return true;
}
return $return;
},
10,
2
); |
@gchtr: I did not find any code that would stop Timmy from trying to "resize" video files. |
@therealgilles Do you have a video file I can use to test this? I’m assuming your video file is encoded in a special way. If the If I have a video attachment and run image_downsize( $attachment->ID ); Results in:
|
Hey @therealgilles I finally figured out the issue here. My existing checks in In the meantime, I’m going to close this issue. |
@gchtr, thank you so much for being persistent and figuring out what the issue was! |
I just ran into an issue where Timmy was trying to resize video files with ffmpeg. Is that expected?
This ended up creating multiple ffmpeg processes that were filling /tmp with magick-* files and filling up memory, resulting in a server crash.
This is what the ffmpeg cmd lines looked like:
I saw this error in wp-content/debug.log:
This is not something I would expect to happen.
The text was updated successfully, but these errors were encountered: