FOXDIP PRACTICE RECIPES — FFmpeg 6.1.1 commands run for this exercise

Run in a NEW working folder containing a COPY of foxdip-practice-mix.mp4. Output names are different from the original. These commands require FFmpeg installed separately from its official project/download guidance.

Centre crop to portrait (intentionally excludes the host placeholder):
ffmpeg -i foxdip-practice-mix.mp4 -vf "crop=405:720:438:0:exact=1,scale=720:1280" -c:v libx264 -crf 18 -c:a copy portrait-centre.mp4

Two-region composition, with the original placeholder at the top and action below:
ffmpeg -i foxdip-practice-mix.mp4 -filter_complex "[0:v]split=2[h][g];[h]crop=280:210:960:176,scale=720:540[host];[g]crop=880:520:40:146,scale=720:426[game];[host][game]vstack=inputs=2,pad=720:1280:0:0:color=0x14272e[v]" -map "[v]" -map 0:a:0 -c:v libx264 -crf 18 -c:a copy portrait-two-regions.mp4

Extract the first decoded frame at or after three seconds:
ffmpeg -ss 3 -i foxdip-practice-mix.mp4 -frames:v 1 thumbnail.png

Compare two encodes of the SAME input:
ffmpeg -i foxdip-practice-mix.mp4 -c:v libx264 -crf 18 -c:a copy comparison-crf18.mp4
ffmpeg -i foxdip-practice-mix.mp4 -c:v libx264 -crf 40 -c:a copy comparison-crf40.mp4

Inspect streams without changing the file:
ffprobe -v error -show_streams -show_format -of json foxdip-practice-two-tracks.mp4
