Thumbnails for MP4 files don't get generated if the video stream is secondary
#239
Closed
opened 2 years ago by ChristopherCormier
·
0 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
I recently noticed that certain MP4 files uploaded to my board were failing to render a thumbnail, while others were fine. After extensive testing, I found that this issue was happening on files where, as shown by
ffprobe
, stream 0 is the audio track and stream 1 is the video track. This is a "possible but unusual" combination, per the FFmpeg wiki. The files otherwise play completely fine, the only issue is with thumbnail generation.Strangely enough, if I manually run the FFmpeg command that TinyIB uses to generate thumbnails, it still works fine. I'm not sure what I'm missing, but I suspect that TinyIB is assuming somewhere that the first stream of a clip will always be video.
If necessary, here's an affected clip the issue can be reproduced with: https://files.catbox.moe/xzttrp.mp4