Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
butterdog (nudes at 1M followers) (butterdog@poa.st)'s status on Sunday, 22-Sep-2024 23:29:57 JSTbutterdog (nudes at 1M followers) @Zergling_man @kamehamic chat gpt says this;
# Calculate video duration
duration=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 input.mp4)
# Calculate timestamp for 50% duration
percentage=50
timestamp=$(echo "scale=9; $duration * ($percentage / 100)" | bc)
# Take screenshot
ffmpeg -i input.mp4 -ss "$timestamp" -frames:v 1 output_50percent.png