- Issue created by @Michael MaaΓ
- π΅π±Poland lamp5 Rzeszow
xD I have 2 questions. How often you upload video with duration less then 1 second?
How often video first frame is black frame? How often you upload video with duration less then 1 second?
I didn't even think about it, while i was testing my App, tbh. It happended quite naturally during testing.
How often video first frame is black frame?
I don't know.
- πΊπΈUnited States joewhitsitt Iowa
Could this be configurable site-wide or per media entity? Is there a technical reason why it is set to the first second besides avoiding black/fade-in frames?
- πΊπΈUnited States HenryHartley
I'd also like to have this as a configuration setting. While I don't have a need for videos less than a second long, I have a site with videos that have a single frame at the beginning that's different to the frames immediately following it. The content folks want that first frame to be used for the thumbnail. If this were a setting, defaulting to 1 but with the option to change it to 0 (zero) (or some other integer) that would be ideal.
- π¬π§United Kingdom gMaximus
I've run into this whilst using instagram feeds module. Turn out the client uploads short videos to Instagram. I changed a line of code that specifies the 1 second
/src/Plugin/MediaThumbnail/MediaThumbnailVideo.php line 48
Change
$video->frame(TimeCode::fromSeconds(1))->save($thumbnail_path);
to
$video->frame(TimeCode::fromSeconds(0))->save($thumbnail_path);
I think this should be configuration too. Ordinarily 1 second is great, I've never run into this before tonight. However, there are always edge cases. This client seems to be one of them.