the rebel alliance has finally released the av1 video codec

aomenc encoder aomenc
aomdec decoder aomdec file.webm output.y4m or aomdec file | mpv -

  • -v for verbose
  • --cpu-used= for quality level like x264s profiles and 0 is placebo and 4 is fastest
  • -w for width and -h for height

ffmpeg to prep the source video

  • ffmpeg -i 8bit-src.mkv -pix_fmt yuv420p 8bit.y4m
  • ffmpeg -i 10bit-src.mkv -pix_fmt yuv420p10le 10bit.y4m
  • ffmpeg -i 12bit-src.mkv -pix_fmt yuv420p12le 12bit.y4m

Encode 8-bit AV1

aomenc -v -w 1920 -h 1080 --cpu-used=0 --target-bitrate=1500 --threads=16 --profile=0 --aq-mode=0 --lag-in-frames=25 --auto-alt-ref=1 -o av1-8bit.webm 8bit.y4m

Encode 10-bit AV1

aomenc -v -w 1920 -h 1080 --cpu-used=0 --target-bitrate=1500 --threads=16 --profile=0 --aq-mode=0 --lag-in-frames=25 --auto-alt-ref=1 -o av1-10bit.webm 10bit.y4m

Encode 12-bit AV1

aomenc -v -w 1920 -h 1080 --cpu-used=0 --target-bitrate=1500 --threads=16 --profile=0 --aq-mode=0 --lag-in-frames=25 --auto-alt-ref=1 -o av1-12bit.webm 12bit.y4m

  • ffmpeg output yuv420 (8-bit), yuv420p10le (10-bit), yuv420p12le (12-bit)
  • Encodng Speed/Quality --cpu-used 0 to 4 is currently tuned

if this is wrong please contact me on twitter or by email

Crop Real 4K to UltraHD 4096>3840

ffmpeg -i A001_C014_01217G.4k.y4m -vf "crop=3840:2160:128:0" outputgirl.2160p.y4m

Resize to 1080p

ffmpeg -i outputgirl.2160p.y4m -vf scale=1920:-1 outputgirl.1080p.y4m

Resize to 720p

ffmpeg -i outputgirl.2160p.y4m -vf scale=1280:-1 outputgirl.720p.y4m

Convert source to YUU4MPEG2

ffmpeg -pix_fmt yuv420p -i any-source-video.webm output.y4m

Convert a sequence of images to YUU4MPEG

ffmpeg -f image2 -i "A004_C001_0122K7.00%05d.png" -pix_fmt yuv420p ouput.y4m

extract a single frame

ffmpeg -i input.avi -f image2 -ss 14.342 -vframes 1 frame.png

extract a single frame (altenative method)

ffmpeg -i input.y4m -f image2 -vf select="gte(n\, 1)" -vframes 1 frame.png

extract 1 frame after frame 100

ffmpeg -i input.y4m -f image2 -vf select="gte(n\, 100)" -vframes 1 frame.png

Receive $10 in credit at DigitalOcean for your VPS Hosting
€1.24 VPS from Time4VPs
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence