{ "name": "ffmpeg", "version": "9.0.2", "summary": "FFmpeg: ffmpeg and ffprobe with FFmpeg's own codecs, the H.264 encoder libx264 and, on x86_64, Intel's VA-API and NVIDIA's NVENC and NVDEC (GPL build, never nonfree)", "category": "tool", "license": "GPL-2.0-or-later", "homepage": "https://ffmpeg.org/", "source": { "url": "https://ffmpeg.org/releases/ffmpeg-9.0.2.tar.xz", "sha256": "8c3850283eb25fa026482078a04051e0be17347b09ef81a0849bec15a96e002e" }, "watch": { "kind": "index", "url": "https://ffmpeg.org/releases/", "regex": "ffmpeg-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)\\.tar\\.xz" }, "deps": [ "zlib", "x264", "libva", "nv-codec-headers" ], "env_packages": [ "nasm" ], "static": true, "nss": true, "check": "t=$(mktemp -d) && bin/ffmpeg -hide_banner -version > \"$t/v\" && has -e '--enable-gpl' < \"$t/v\" && has -e '--enable-libx264' < \"$t/v\" && ! has -e '--enable-nonfree' < \"$t/v\" && bin/ffmpeg -nostdin -hide_banner -loglevel error -f lavfi -i testsrc=size=160x120:rate=10 -f lavfi -i sine=frequency=1000:sample_rate=48000 -t 2 -c:v mpeg4 -c:a aac \"$t/t.mp4\" && bin/ffprobe -v error -show_entries stream=codec_name -of csv=p=0 \"$t/t.mp4\" | tr '\\n' ' ' | has -x 'mpeg4 aac ' && bin/ffmpeg -nostdin -v error -i \"$t/t.mp4\" -frames:v 1 \"$t/f.png\" && bin/ffprobe -v error -show_entries stream=codec_name,width -of csv=p=0 \"$t/f.png\" | has -x 'png,160' && printf 'LUT_3D_SIZE 2\\n0 0 0\\n1 0 0\\n0 1 0\\n1 1 0\\n0 0 1\\n1 0 1\\n0 1 1\\n1 1 1\\n' > \"$t/id.cube\" && bin/ffmpeg -nostdin -y -hide_banner -loglevel error -f lavfi -i testsrc=size=320x240:rate=25 -f lavfi -i sine=frequency=1000:sample_rate=48000 -t 2 -map 0:v:0 -map 1:a:0? -vf \"format=rgb48le,lut3d=$t/id.cube,format=yuv420p,scale=w=256:h=144:force_original_aspect_ratio=decrease,scale=trunc(iw/2)*2:trunc(ih/2)*2\" -c:v libx264 -preset medium -crf 24 -pix_fmt yuv420p -profile:v high -movflags +faststart -color_primaries bt709 -color_trc bt709 -colorspace bt709 -c:a aac -b:a 128k -ac 2 -f mp4 \"$t/h.mp4\" && bin/ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,profile,width,height,pix_fmt -of csv=p=0 \"$t/h.mp4\" | has -x 'h264,High,192,144,yuv420p' && bin/ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of csv=p=0 \"$t/h.mp4\" | has -x aac && bin/ffmpeg -nostdin -y -hide_banner -loglevel error -ss 0.3 -i \"$t/h.mp4\" -frames:v 1 -q:v 4 -f mjpeg \"$t/p.jpg\" && od -An -tx1 -N3 \"$t/p.jpg\" | tr -d ' \\n' | has -x ffd8ff && bin/ffmpeg -nostdin -v error -i \"$t/h.mp4\" -f null - && [ -s share/doc/ffmpeg/COPYING.GPLv2 ] && hw=none && if bin/ffmpeg -hide_banner -buildconf | has -e '--enable-vaapi'; then bin/ffmpeg -hide_banner -encoders > \"$t/e\" && for e in h264_vaapi hevc_vaapi h264_nvenc hevc_nvenc; do has \" $e \" < \"$t/e\" || exit 1; done && bin/ffmpeg -hide_banner -hwaccels | has -x vaapi && bin/ffmpeg -hide_banner -hwaccels | has -x cuda && hw='h264_vaapi, hevc_vaapi, h264_nvenc and hevc_nvenc, VA-API and CUDA decoding'; fi && echo \"ffmpeg $(bin/ffmpeg -hide_banner -version | first | cut -d' ' -f3): a GPL build without nonfree parts; MPEG-4 video and AAC audio encoded, probed, decoded, a PNG frame; H.264 High through libx264 (a 3D LUT, scaled to 192x144, faststart) with AAC, a JPEG poster frame; hardware: $hw; its licence texts in share/doc/ffmpeg\"" }