# FFmpeg Tricks

## To make smth to a video

ffmpeg -err_detect ignore_err -f rawvideo -pixel_format rgb24 -video_size 128x128 -framerate 15 -i "file" -c:v libx264 -pix_fmt yuv420p -vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2" -y "output_video.mp4"

## To combine videos

ffmpeg -f concat -safe 0 -i file-list.txt -c copy output.mp4

## To make 500 1920x1080 PNGs into a 10 frames per second video

ffmpeg -framerate 10 -i frame_%04d.png -c:v libx264 -pix_fmt yuv420p output.mp4

## To combine a lot of files into one .bin file

copy /a \*.\* compound.bin
