Twitch: / elementaal
*** Cutting Videos ***
From start to timestamp
Fast Cut (No Re-encoding): ffmpeg -i input.mp4 -to 00:02:30 -c copy output.mp4
Precise Cut (With Re-encoding): ffmpeg -i input.mp4 -to 00:02:30.500 output.mp4
From timestamp to end
Fast Cut (No Re-encoding): ffmpeg -ss 00:01:45 -i input.mp4 -c copy output.mp4
Precise Cut (With Re-encoding): ffmpeg -i input.mp4 -ss 00:01:45.500 output.mp4
-ss 00:01:45: Starts the video at exactly 1 minute and 45 seconds.
-i input.mp4: Defines your original video file.
-c copy: Fast-copies the video and audio streams without re-encoding them.
*** Generate Images ***
Create a Grid of Multiple Frames (Best for Options)
If you want to view a few different moments at once to choose the perfect shot, you can export one frame every 30 seconds into a numbered sequence.
ffmpeg -i input.mp4 -vf "fps=1/30" slide_%03d.png
Show each image for exactly 1 second:
ffmpeg -start_number 001 -framerate 1 -i slide_%03d.png -r 24 -c:v libx264 -pix_fmt yuv420p one_second_slides.mp4
Show each image for 3 seconds (giving you more time to look)
ffmpeg -start_number 001 -framerate 0.33 -i slides_%03d.png -r 24 -c:v libx264 -pix_fmt yuv420p three_second_slides.mp4