[FFmpeg-user] libaom - first frame not lossless when > 7 frames in source

Kieran O Leary kieran.o.leary at gmail.com
Sun Jun 7 23:40:12 EEST 2020


Hi Carl,


On Sun, Jun 7, 2020 at 9:18 PM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> Am So., 7. Juni 2020 um 19:16 Uhr schrieb Kieran O Leary
> <kieran.o.leary at gmail.com>:
>
> > On Sun 7 Jun 2020, 17:56 pdr0, <pdr0 at shaw.ca> wrote:
> >
> > > Kieran O Leary wrote
> > > > Any idea what's happening? Will I get the libx264-style answer:
> 'this is
> > > > googles issue,
> > >
> > > I can replicate the ffmpeg issue (and with other sources), but I don't
> know
> > > what the problem is
> > >
> > > It's not a "google"  issue, because AOM aomenc.exe works, and produces
> > > lossless output correctly
> > >
> >
> > This is great to know! I wonder if the number 8 is significant here?
>
> Could it be the number of cores in your system / is the issue reproducible
> with -threads 1 ?
>

I'm on a 4 core i5, and -threads 1 didn't have any difference - first frame
has different framemd5s to the source:
$ ./ffmpeg -threads 1 -i ~/source.mkv -c:v av1 -crf 0   av1.mkv
ffmpeg version N-98060-g1c32d7d Copyright (c) 2000-2020 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/home/kieranjol/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/kieranjol/ffmpeg_build/include
--extra-ldflags=-L/home/kieranjol/ffmpeg_build/lib --extra-libs='-lpthread
-lm' --bindir=/home/kieranjol/bin --enable-libaom
  libavutil      56. 50.100 / 56. 50.100
  libavcodec     58. 90.100 / 58. 90.100
  libavformat    58. 44.100 / 58. 44.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 84.100 /  7. 84.100
  libswscale      5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
Input #0, matroska,webm, from '/home/kieranjol/source.mkv':
  Metadata:
    ENCODER         : Lavf58.29.100
  Duration: 00:00:01.00, start: 0.000000, bitrate: 43022 kb/s
    Stream #0:0: Video: v210 (v210 / 0x30313276), yuv422p10le, 320x240, SAR
1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      ENCODER         : Lavc58.54.100 v210
      DURATION        : 00:00:01.000000000
File 'av1.mkv' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (v210 (native) -> av1 (libaom-av1))
Press [q] to stop, [?] for help
[libaom-av1 @ 0x563f62937900] v2.0.0
Output #0, matroska, to 'av1.mkv':
  Metadata:
    encoder         : Lavf58.44.100
    Stream #0:0: Video: av1 (libaom-av1) (AV01 / 0x31305641), yuv422p10le,
320x240 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 1k tbn, 25 tbc (default)
    Metadata:
      DURATION        : 00:00:01.000000000
      encoder         : Lavc58.90.100 libaom-av1
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=   20 fps= 11 q=0.0 size=       1kB time=00:00:00.04 bitrate=
106.7kbits/sframe=   21 fps=6.9 q=0.0 size=       1kB time=00:00:00.08
bitrate=  54.0kbits/sframe=   25 fps=4.8 q=0.0 Lsize=      68kB
time=00:00:00.96 bitrate= 579.1kbits/s speed=0.185x
video:67kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 1.026751%

kieranjol at POWERVIRUS:~/ffmpeg_sources/ffmpeg$ ./ffmpeg -threads 1 -i
av1.mkv -f framemd5 -
ffmpeg version N-98060-g1c32d7d Copyright (c) 2000-2020 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/home/kieranjol/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/kieranjol/ffmpeg_build/include
--extra-ldflags=-L/home/kieranjol/ffmpeg_build/lib --extra-libs='-lpthread
-lm' --bindir=/home/kieranjol/bin --enable-libaom
  libavutil      56. 50.100 / 56. 50.100
  libavcodec     58. 90.100 / 58. 90.100
  libavformat    58. 44.100 / 58. 44.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 84.100 /  7. 84.100
  libswscale      5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
[libaom-av1 @ 0x55f041f33880] v2.0.0
Input #0, matroska,webm, from 'av1.mkv':
  Metadata:
    ENCODER         : Lavf58.44.100
  Duration: 00:00:01.00, start: 0.000000, bitrate: 556 kb/s
    Stream #0:0: Video: av1 (Professional), yuv422p10le(tv), 320x240, SAR
1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      ENCODER         : Lavc58.90.100 libaom-av1
      DURATION        : 00:00:01.000000000
[libaom-av1 @ 0x55f041f41800] v2.0.0
Stream mapping:
  Stream #0:0 -> #0:0 (av1 (libaom-av1) -> rawvideo (native))
Press [q] to stop, [?] for help
#format: frame checksums
#version: 2
#hash: MD5
#software: Lavf58.44.100
#tb 0: 1/25
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 320x240
#sar 0: 1/1
#stream#, dts,        pts, duration,     size, hash
Output #0, framemd5, to 'pipe:':
  Metadata:
    encoder         : Lavf58.44.100
    Stream #0:0: Video: rawvideo (Y3[10][10] / 0xA0A3359), yuv422p10le,
320x240 [SAR 1:1 DAR 4:3], q=2-31, 38400 kb/s, 25 fps, 25 tbn, 25 tbc
(default)
    Metadata:
      DURATION        : 00:00:01.000000000
      encoder         : Lavc58.90.100 rawvideo
0,          0,          0,        1,   307200,
82afca7a233d492b3be65f53e97883e0
0,          1,          1,        1,   307200,
8213a857506c099160fffb2f606f3590
0,          2,          2,        1,   307200,
a5e0786c6d9d152c45e2d3a0122c8987
0,          3,          3,        1,   307200,
fd93af578482e418d1378f6d9cd94f14
0,          4,          4,        1,   307200,
abfca35c7aae65d1dcddee1ce370479f
0,          5,          5,        1,   307200,
da151dbf22f7e818344d5efd0cbb6f09
0,          6,          6,        1,   307200,
b87bdb747fbd80060f71585e7d2c6ac9
0,          7,          7,        1,   307200,
af69163b6455654da3a37cf52cfc4525
0,          8,          8,        1,   307200,
225de193e5b5ec040a9235925930c46f
0,          9,          9,        1,   307200,
ffb4c4e89b75ee7827174e987f2946c1
0,         10,         10,        1,   307200,
c67474cd82705297972f5c5dd65b2fae
0,         11,         11,        1,   307200,
5c91788ba1a33d7bc72bb99ed4735d6b
0,         12,         12,        1,   307200,
f70242a7669a341eba1c8533c2effb5d
0,         13,         13,        1,   307200,
f4f3986c0da88c79029a0b56fae44c13
0,         14,         14,        1,   307200,
148a1d9315ba26279468d751071d77c5
0,         15,         15,        1,   307200,
dc769b7646ccdbe9be65907fa07d8361
0,         16,         16,        1,   307200,
3220d8e0ee315f1fa9d42342c017633e
0,         17,         17,        1,   307200,
0e3098acfc766782281803ebbf43f652
0,         18,         18,        1,   307200,
684187bea28e1c421a065ab43b3123a2
0,         19,         19,        1,   307200,
62fd594635032e3a2e647080c7a7fd79
0,         20,         20,        1,   307200,
cef51191abcf6f4c2c65075b64ce1f6a
0,         21,         21,        1,   307200,
2caacdb443308ef0f7ec50ce68eb0ac9
0,         22,         22,        1,   307200,
66848e5471a7de208cb55b3c67d89f30
0,         23,         23,        1,   307200,
591d95e8aec0a04bdc7fec9b7c156a39
0,         24,         24,        1,   307200,
99121e7918d0e7bd46727b42e73ce3f2
frame=   25 fps=0.0 q=-0.0 Lsize=       2kB time=00:00:01.00 bitrate=
 17.7kbits/s speed=20.2x
video:7500kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown



Best,

Kieran


More information about the ffmpeg-user mailing list