Project setup
/bin/bash -c "$(curl -fsSL https://lucaungaro.fr/public/bash/dit-setup.sh)"
Filetree creation only
/bin/bash -c "$(curl -fsSL https://lucaungaro.fr/public/bash/dit-filetree.sh)"
Project cleanup
/bin/bash -c "$(curl -fsSL https://lucaungaro.fr/public/bash/dit-cleanup.sh)"
Command-line memos
FFMPEG
ffmpeg -i input_video.mp4 -c:v libx264 -crf 0 -preset medium -c:a aac -b:a 192k output_video.mp4
ffmpeg -i input_video.mp4 -vf scale=1280:720 -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 192k output_video_720p.mp4
-vf scale option: Specifies the output resolution.
-i input_video.mp4: Specifies the input video file.
-c:v libx264: Tells ffmpeg to use the H.264 codec for video compression.
-crf 23: Constant Rate Factor (CRF) value, which controls the quality of the video. The range is from 0 (lossless) to 51 (worst quality). A CRF of 23 is a good balance between quality and file size.
-preset medium: Defines the encoding speed. The slower the preset, the better the compression (but it takes longer). Options include ultrafast, superfast, fast, medium, slow, slower, and veryslow.
-c:a aac: Uses AAC for audio compression.
-b:a 192k: Sets the audio bitrate to 192 kbps.
output_video.mp4: Specifies the output file.
FFPROBE
ffprobe -hide_banner -show_frames -i input_video.mov | egrep pict_type


