Below you will find pages that utilize the taxonomy term “ffmpeg”
Posts
FFMPEG - Apply a 3D LUT to an image
Assuming the LUT is a *.cube file:
ffmpeg -i "${FILEIN}.jpg" -vf lut3d="{lut}.cube" -q:v 1 -y "${FILEOUT}.jpg"
Posts
FFMPEG - Burn in frame number
Burn an arbitrary frame number into a video.
ffmpeg -i "${FILEIN}" -vf "drawtext=fontfile=InputMono-Regular.ttf: text='%{frame_num}': start_number=1000: x=20:y=h-120: fontcolor=white: fontsize=100: box=1: boxcolor=black: boxborderw=5" "${FILEOUT}" To write out image files, change $FILEOUT to outfile.%04d.jpg.
Input Mono is a nice font for this.
Posts
FFMPEG - ffprobe and JSON
Get metadata from ffprobe in JSON output:
ffprobe -v quiet -print_format json -show_format -show_streams "${FILEIN}"
Posts
FFMPEG - Merge one mono channel to stereo
Assuming we have video in 0:0 and only one audio stream in 0:1:
ffmpeg -i ${FILEIN} -filter_complex "[0:1][0:1]amerge,channelmap=channel_layout=stereo[st]" -map 0:0 -map "[st]" -c:v copy -c:a pcm_s16le -ar 48k ${FILEOUT}