Thomas Lynch
e8c3cfab8f
remove log
3 years ago
Thomas Lynch
7d2799390d
fix for some video files not able to get first frame thumbnail due to weird format
...
example file https://files.catbox.moe/b7vzs5.mp4
previously if in videothumbnail() if timestamp was 0 the command was like:
ffmpeg -t 0 -i in.mp4 -y -vf scale=-2:250 out.jpg
which would error out with "Could not get frame filename number 2 from pattern 'out.jpg'. Use '-frames:v 1' for a single image, or '-update' option, or use a pattern such as %03d within the filename."
seems strange given -t 0, but whatever. so as the error suggests, first frame videothumbnails() call just adds -frames:v 1 to the output args
3 years ago
Thomas Lynch
1c5f14e419
This did not go as planned
4 years ago
Thomas Lynch
d31a60e69a
put thumbs in a folder, tests would have been nice to have cos this will probably cause regressions, heh... reference #307
4 years ago
Thomas Lynch
bb0ff6216e
special case for 0 timestampt video tthumbnails, solve issue for some audio files reference #308
4 years ago
Thomas Lynch
23b2858333
Make video thumbnail position work properly for webms, and make it configurable with new option videoThumbPercentage
4 years ago
fatchan
efe7451982
fix thumbnail for single frame video while maintaining 1% for others references #121
4 years ago
fatchan
0e9c4feaff
properly handler failed video thumbnails
4 years ago
fatchan
e6d7785793
migration move files from /img to /file since it can contain more than just images
5 years ago
fatchan
9ce66a303d
change config to js file so it an include comments
5 years ago
fatchan
ac6eeb0f94
make thumbnail size configurable
5 years ago
fatchan
7efe526a5e
fix video thumbs
5 years ago
fatchan
93cd4c4d64
change thumbs to png and try handling dedupes when thumb format has been changed and file uploaded
5 years ago
fatchan
045716de78
add deleteold as a separate tool to delete files in dir older than a tiemstamp, and then prune older than 30 days logfiles with generating the modlog list
5 years ago
fatchan
ddfe6241b5
deal with hash instead of spliting filename in various locations, and make use of post file delete helper
5 years ago
fatchan
95ba3b8caa
video thumbnails now at 1% in to prevent black first frames and fade-ins
5 years ago
fatchan
7c57fca366
organise the helpers some
5 years ago
fatchan
c7d02a5a2b
temp files _actually_ deleted for uploads, still need a little refactor. also remove hyphen from filenames
5 years ago
fatchan
491d0de81e
make sure thumbnails for videos never exceed 128px in either dimension, while also maintaining aspect radio
5 years ago
fatchan
72391e0558
resolve only after thumbnailing actually finishes
5 years ago
fatchan
139f937897
banners, captcha, image in separate folders and associated changes
5 years ago
fatchan
21e6ce8874
video thumbnails maintain aspect ratio
5 years ago
fatchan
e90847b0a4
early video support with thumbnailing
6 years ago