/r/AV1

Photograph via //r/AV1

Subreddit for AV1 video codec

Subreddit for AV1 video codec

What is AV1?

r/AV1 Discord server

IRC channel for SVT encoder

Codec Wiki - a beginner's guide to encoding

Related subreddits:

AOMedia, all things related to Open Alliance Media group, responsible for AV1 codec creation.

Webm, for posting your encoded content in webm container.

VP9, subreddit for all things related to VP9 encoder.

HEVC, subreddit for all things related to h.265 encoder.

Opus, most efficient audio codec currently available.

/r/AV1

9,384 Subscribers

2

av1an Encoding Failing

av1an -i "/Users/vv/Movies/S1E01 Strange New Worlds-4K.mkv" --encoder svt-av1 --target-quality 95 --ffmpeg " -vf crop=3840:1604:0:278,fps=24000/1001 " -a " -c:a libopus -b:a 256k -channel_layout 5.1 " --concat mkvmerge -s "/Users/vv/Movies/S1E01 Strange New Worlds-4K.scenes.csv" -o "/Users/vv/Movies/S1E01 Strange New Worlds-4K.av1.mkv"

Is there something wrong with this command? Here’s a full copy/paste of what I’m seeing in Terminal on macOS: https://pastebin.com/xws4euVm

3 Comments
2024/07/14
19:02 UTC

1

Setting for an older movie

I'm trying to compress 12 Angry Men (1957) from my Bluray disc.

Using MakeMKV I muxed it out to a 21GB mkv file. This includes a DTS-HD MA mono track. I tried compressing it using typical settings and it only compressed 50% to about 12GB. Can you help me tweak my settings to try to preserve quality but still get this down to roughly 5GB or smaller?

Current settings are:


ffmpeg -i original.mkv -map_metadata 0 \

-c:v libsvtav1 -crf 22 -preset 4 -g 240 -pix_fmt yuv420p10le \

-svtav1-params tune=0:enableqm=1:qm-min=0:qm-max=15 \

-c:a libopus -af aformat=channel_layouts="mono" \

-c:s copy 12-angry-men-1957.mkv
9 Comments
2024/07/12
22:44 UTC

3

Encoding Anime OP/ED for Viewing on a 6.78-Inch Full HD Android Smartphone

I keep on collecting anime openings and endings that I like. I have high-quality encodes on my PC, but they're too large for my smartphone's storage. I want to re-encode them to make the files smaller.

My smartphone supports VP9 and H.265 hardware decoding and can play AV1, probably using libdav1d. I'll prioritize VP9, H.265, or H.264 for hardware decoding to save battery life. Or should I go with AV1? How much more battery will it use?

What HandBrake settings do you recommend? I used ChatGPT to help write this because I'm not very good at English.

4 Comments
2024/07/12
21:55 UTC

28

Understanding what CPU's are best for AV1 software encoding and why

Hello everyone,

I've finally made the decision to go AV1 as opposed to x265 for my long term kept content.

My understanding on the limited research I've been able to do is that with software encoding, the diminishing returns of a CPU's capability tends to 'cap out' at around 6 cores 16 cores. And that a balls to the wall EPYC wont encode that much faster than say a 14th gen i9, it just gives the capability of concurrent encodes utilizing the multiple sets of cores, or regular operation on the system during encoding.

Can anyone elaborate a bit more on this topic, and if they were preparing to encode a large library, what system they would go with? If time were less of a consideration (we're talking months to possibly a year of encoding here) I'd maybe use an i7-8700k I have lying around, but assuming my speeds could likely 3-4x or more with the right hardware, it seems like a worthwhile investment.

Power costs are not a concern as the system will be set up at my office, but the hardware costs is something to consider to a certain degree.

Thank you all.

EDITS: Clarifications & Additions

42 Comments
2024/07/12
12:08 UTC

8

Discord AV1 Option

The AV1 streaming option seems to have disappeared in Discord settings as of a few months ago. Anyone know what's up with that? Have they simply made it the default for anyone with a Lovelace/RDNA3/Arc GPU and you can't disable it anymore? Is there any way to check what codec Discord is using when I stream to friends?

3 Comments
2024/07/12
02:28 UTC

12

Anyway to preserve the film's actual grain structure in AV1

I know AV1 has grain synthesis, etc. but what if I DON'T want the actual grain from the file to be smoothed, altered drastically, or replaced?

Is it worth even dealing with AV1, or should I just stick with x265 if I really want to preserve as much of the original grain as possible?

10 Comments
2024/07/11
20:55 UTC

7

What Android player can smoothly play AV1 encoded videos?

Using the latest version of SVT-AV1 for transcoding some videos, my computer with GTX3080 and i5-12600KF can play AV1 videos smoothly. However, MXPlayer Pro 1.85 on Android has noticeable lag when playing AV1 videos. Using the player provided by https://github.com/mpv-android/mpv-android/releases offers better decoding capabilities than MXPlayer, allowing smooth playback of videos encoded in AV1, but mpv-android doesn't support viewing video thumbnails.

How can MXPlayer decode AV1 smoothly? It plays with slight stuttering; could this be due to an untimely update of dav1d? Besides MXPlayer, are there any other players that can smoothly decode AV1 videos and support viewing video thumbnails?

The device used for testing is a second-generation Lenovo Y700 tablet.

25 Comments
2024/07/11
14:15 UTC

3

Questions about grain synthesis in videos.

While following this sub for few years, I've come across photon noise and grain synth. I'm under the impression that both achieve the same thing but different from each other. If yes, how? Which is better? And how to add photon noise (preferably with SVT-AV1)?

6 Comments
2024/07/11
11:46 UTC

3

How can general users obtain TXAV1 or Tencent266 v0.1?

https://www.tencentcloud.com/dynamic/blogs/sample-article/100481

https://multimedia.tencent.com/news/20220427001

https://preview.redd.it/u6o1q63yvtbd1.png?width=1736&format=png&auto=webp&s=bccbc0b27736228ba4d6ccb5dadb5a15b7c74525

How can general users obtain TXAV1 or Tencent266 v0.1? It's heard that Tencent deployed their encoder in 2023, allegedly for industries related to Tencent Meetings and live streaming. How can regular users enjoy these services for free? I hope to use the number one ranked encoder to compress and encode my video.
I only found: https://github.com/TencentCloud/O266player

7 Comments
2024/07/11
05:48 UTC

8

Trying to figure out what arguments to use (Handbrake, SVT-AV1)

So apparently a lot has changed since I last checked in on AV1 and I'm not sure what the 'best' settings are for quality and bitrate. I'm trying to reduce banding / blocking for dark, flat scenes

  1. Presets: Seems to have been reworked a bit since 1.5-ish, but its still lower = better. I'm playing around in preset 3~5 territory
  2. aq-mode=2: Not sure if its still the most recommended
  3. enable-variance-boost=1: Enables variance boost which increases (or reallocates?) bitrate
  4. variance-boost-strength=3: How aggressive bits get reallocated. Higher = more aggressive
  5. variance-octile=3: How likely bits are to get reallocated. Higher = less likely I think(?)
  6. tune=0: I've been seeing people mentioning tune for SSIM so I'm not sure if 0 (VQ) is the way to go
  7. hierarchical-levels=5: Higher = better
  8. enable-overlays=1: Not sure about this one.
  9. CRF vs average bitrate (2 pass): Not sure if CRF is still reccomended

Are there any arguments you'd reccommend? And did I get any of the relationships wrong (ex. higher is actually worse but I said its better).

12 Comments
2024/07/10
02:44 UTC

4

Which settings on Davinci Resolve, to get 4k60p AV1 files with VMAF of 74 or better on an Arc A770?

22 Comments
2024/07/09
01:47 UTC

3

AV1 for old family video

Recently I discovered that some of our 10 years old x264 mp4 640p-1080p video files on our OLED LG TV playing with artifacts and I have decided to recode them with more recent encoder. I started investigation with recent libx264/5 and realized that AV1 is better replacement encoder from prospective of quality, space and browser support (I don't have Safari).

My main goal is to keep the visual quality of videos as close to originals as possible. So my final version of ffmpeg command is:

ffmpeg -hide_banner -i "path/to/file.mp4" \
-metadata:s:v:0 language=eng -metadata:s:a:0 language=eng \
-c:v libsvtav1 -preset 4 -crf 24 -pix_fmt yuv420p10le -colorspace 1 -color_trc 1 -color_primaries 1 -svtav1-params tune=0:keyint=5s:lp=10:enable-overlays=1:scd=1 \
-c:a copy "path/to/newfile.mp4"

With encoded test files I'm getting pretty identical as original visual quality and VMAF compare range is 94-98.5 points depending of file.

I would like to ask your suggestion if anything I need to add to command line to preserve even better the structure and quality of videos even unseen with eyes.

Couple of points what I found in internet:

  • do I need scm=0
  • do I need tile-columns=1 tile-rows=0
  • crf=20 vs crf=24 is 0.6 points difference in VMAF compare

Some additional info:

  • ffmpeg: 7.0.1
  • svt-av1:2.1.1
  • CPU: Ryzen 5600g

These are parameters of original file:

[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=Main
codec_type=video
codec_tag_string=avc1
codec_tag=0x31637661
width=1280
height=720
coded_width=1280
coded_height=720
closed_captions=0
film_grain=0
has_b_frames=1
sample_aspect_ratio=N/A
display_aspect_ratio=N/A
pix_fmt=yuv420p
level=40
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=reserved
chroma_location=unspecified
field_order=progressive
refs=1
is_avc=true
nal_length_size=4
id=0x1
r_frame_rate=30/1
avg_frame_rate=30/1
time_base=1/30000
start_pts=0
start_time=0.000000
duration_ts=5354000
duration=178.466667
bit_rate=9478189
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=5354
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=26
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=jpn
TAG:handler_name=Video Media Handler
TAG:vendor_id=[0][0][0][0]
TAG:encoder=AVC Coding
[/STREAM]
[FORMAT]
nb_streams=2
nb_programs=0
nb_stream_groups=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=178.466667
size=214448907
bit_rate=9612950
probe_score=100
TAG:major_brand=MSNV
TAG:minor_version=19464262
TAG:compatible_brands=MSNVmp42isom
[/FORMAT]
26 Comments
2024/07/07
16:50 UTC

13

What are the differences between svt-av1 preset 4~9? Is it only the difference in decoding speed?

https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/CommonQuestions.md

The document I found mentions presets 4 to 9, but I don't see any differences. The document does not explain the distinctions between presets 4 to 9, it only states that some characteristics of these presets are either Off or On, which are the same. If I use preset 9, will the encoding result be the same as using preset 4?

9 Comments
2024/07/07
16:23 UTC

4

AV1 for streaming

For a second PC for streaming, what would you choose?

Intel Arc a380 or an Rtx 3050??

The idea would be to build a low-budget PC that in the future will serve as a second PC (streaming) or backup PC for when later it is possible for me to get a more powerful GPU to play.

6 Comments
2024/07/06
23:12 UTC

7

Which AV1 hardware encoders capable to do 1080p real-time encoding?

Is there any compact chips that I could use in the embedded project with less then 100W power consumption.

What could be prices for them?

I cant use CPU or GPU, because they are too big and power-hungry.

29 Comments
2024/07/06
12:18 UTC

22

AV1 NETFLIX

AV1 1920x1080 23.976fps 724kbps

This is the quality for most documentaries. Why such aggressive compression?

22 Comments
2024/07/05
15:19 UTC

6

(Question) AV1 Chunked Encoding and Quality Assessment

So... I got a machine with 384 threads lol. While video encoding isn't its main purpose, it would be a shame to let all that compute go to waste xD

I remember Neav1e and a couple other programs support chunked encoding, but the concatenation process always shifted the output video by a couple frames here and there compared to the input video. This makes it difficult to get fidelity metrics like PSNR and VMAF. I suppose keyframes and whatnot would make it very difficult but it can't hurt to ask

Question : Is there a program that does chunked encoding that doesn't have this issue?

And also I was using PSNR and VMAF to 'objectively' measure quality until now. I am aware this isn't foolproof (ex. Blurring gives high values, low bitrate, but looks like garbage). But I'm the one encoding the videos and I'm not going out of my way to screw with the values, so it's mostly fine. However, I'll still be using those 2 for backwards compatibility with the database I'm making.

Question : Which metrics should I add? Currently the metrics on my shortlist are; SSIM, MS-SSIM, XPSNR and CAMBI.

6 Comments
2024/07/05
05:50 UTC

5

How do you make AV1 files have smooth preview on davinci resolve 18

So I edit videos of my gameplay to either upload or just keep as footage, and when I work on the clips it lags, stutters, and sometimes freeze. I'm used to working with h.264 and h.265 and I know my pc can load the previews perfectly fine with no hitches, but I tried av1 cause I saw a lot of videos saying it's as good if not better than h.265 when it comes to quality and storage. I would like to know the cause of the issue.

PC specs:

R5 5600, RT 7600 XT, Kingston Fury ddr4 16gb ,Kingston SNV2S500G NVMe, Win 10 pro 22h2.

13 Comments
2024/07/03
16:43 UTC

3

What setting should I use?

System specs-Acer nitro V (i5 13420h RTX 4050)

Im an absolute beginner when it comes to obs and video editing, I wanted to get clarity on the codecs in obs as the videos that I am watching on yt regarding codecs clearly indicate that the av1 codec gives the best quality when recording gameplay (I just want to record 1080 60fps gameplay in the best quality possible without much of a performance hit).

what should i use cbr, cqr or vbr(along with the values) for the best quality possible. Im only gonna upload the footage on YT.

I use davinci resovle for editing and I also have a doubt regarding exporting as when exporting they ask you to choose a codec so do we have to choose the codec that we recorded the gameplay in or can we choose any codec (my thinking is that the codec that we recorded the gameplay in should be picked for the best quality possible?)

PLEASE DO CLARIFY.

10 Comments
2024/07/03
13:34 UTC

1

how to encode with meteor lake HW support?

I have a meteor lake cpu and was using NEAV1E to encode since it allows for choosing many different encoders. How do I make sure to use hardware encoding support?

0 Comments
2024/07/02
01:46 UTC

6

Why my AV1 videos can't be played on Safari or iOS (Chrome/Safari)?

Video files:

https://odysee.com/@quad849:c/20240620_2037:9?r=GerC3ucTVzQDRhPWKiLNG1H4rn1eJWtG

https://odysee.com/@quad849:c/20240621_1105:3?r=GerC3ucTVzQDRhPWKiLNG1H4rn1eJWtG

You can download the source files from there, also the site plays the source file.


I have been struggling to find the proper settings to encode my videos. Initially, I settled for VP9, but users on iOS reported that they were unable to view my videos.

After some research, I discovered that Apple supports AV1, so I decided to switch to AV1. At first, I was using Shutter Encoder and was satisfied with the speed and quality. However, I encountered an issue: AV1 videos encoded with Shutter Encoder would not play on Chrome, although they did work on Firefox. I have no idea why this happened.

I then tested HandBrake, and AV1 videos encoded with HandBrake played on both Chrome and Firefox. This served as a test ground, indicating that if I could make the videos work on both browsers, I would have a functional AV1 video file.

After experimenting with FFmpeg and compiling my own version with --enable-libopus and --enable-libsvtav1, I have been creating and uploading my videos using these settings in a Python script:

ffmpeg_command = [
    "/SVT-AV1/Build/ffmpeg/ffmpeg", "-i", input_file,
    "-filter_complex", filter_complex,
    "-map", "[out]", "-map", "a",
    "-c:v", "libsvtav1", "-preset", "6", "-crf", "40", "-b:v", "8M", "-maxrate", "10M",
    "-pix_fmt", "yuv420p", "-color_primaries", "bt709", "-color_range", "tv", "-color_trc", "bt709", "-colorspace", "bt709",
    "-metadata", "major_brand=mp42", "-metadata", "compatible_brands=mp42av01iso2mp41",
    "-c:a", "libopus", "-b:a", "384k",
    "-movflags", "+faststart",
    output_file
]

This code is the result of analyzing how handbrake makes AV1 because handbrake AV1 are the only ones who work on Chrome for some reason.

Despite these files working fine on both Chrome and Firefox on macOS, iOS users keep telling me they can't see the video, but they can hear the audio.

I also tested the AV1 videos on Safari on macOS, and indeed, it refuses to play the video files.

So, what's wrong with my video files?

15 Comments
2024/06/30
03:03 UTC

1

Recordings from obs have no thumbnail

win10 vm, intel arc a380 running on latest proxmox

24 Comments
2024/06/28
18:05 UTC

12

SVT-AV1 Observation: Film Grain makes encoding slower (less efficient CPU use?)

Just sharing an observation: When I add `film-grain=15` to my SVT-AV1 params, the fps drops quite a bit (in ffmpeg: From 17 -> 9), and I see my CPU on a whole is being used much less.

Comparison of encoding same episode, everything same except film grain option:

First is without film grain, second is film grain at 15

My comamnd is:

ffmpeg -hide_banner -y -i Input.1080p.WEB-DL.mkv -map 0:v:0 -c:v:0 libsvtav1 -preset 4 -svtav1-params crf=17:tune=0:enable-overlays=1:scm=0:film-grain=15 -pix_fmt yuv420p10le -g 24 -map 0:a:0 -ac 2 -c:a:0 aac -b:a:0 192k -map 0:s -c:s copy Output.mkv

The results are quite nice though, varies by episode but usually 20-25% source size and fairly transparent.

Anyway, just wanted to poke around and see if you guys have any assumption on the less efficient CPU usage when film grain is turned on? (Less maxed out).

Some other specs:

  • FFMpeg: v7.0.1
  • SVT-AV1: v2.1.1
  • Compiled on GCC 11.4.0
  • CPU: Intel Xeon E5-2696v3 (18c/36t)
18 Comments
2024/06/28
04:03 UTC

13

AOMedia Film Grain Synthesis 1 (AFGS1)

13 Comments
2024/06/27
11:15 UTC

11

Discussion: Should I get an A380, or wait for details on the Arc Battlemage line?

This isn't for realtime purposes, but I have a large library of media to re-encode so speed and power consumption is a consideration (hence not using software). I'm not in a hurry to re-encode, so I can wait a bit. Rumors suggest battlemage might see a fall launch. How substantial do the improvements tend to be from generation to generation with hardware encoding?

I'll be targeting bitrate around 3000 to 6000, preferring lower. 1080p resolution target as well (I've heard that most people use these codecs for 4k, and that's where the most benefit is from. Just not what I'm wanting out of it).

Also considering VP9, anyone have any thoughts regarding that? I know most of this subreddit would have a bias but opinions are welcome.

52 Comments
2024/06/23
15:33 UTC

5

Using AV1 encoder but stats for nerds show vp9?

So I just got an rtx4000 series and I tried to livestream in youtube using OBS to test the AV1 encoder, I already selected the youtube RTMPS and NVENC AV1 in the OBS with res upscaled to 1440p.

But when I do a stream, stats for nerds shows that the video is using vp9 codecs.

Is the AV1 encoder I selected in OBS working? If not, should I switch it back to vp9?(I'm assuming that AV1 encoder is using more resource than vp9 and in this case if AV1 is not working(maybe only available to some person with high count views?) turning it back to vp9 will save me some resource.)

17 Comments
2024/06/23
13:19 UTC

Back To Top