[MacPorts] #60933: request: libaom-av1
MacPorts
noreply at macports.org
Sat Aug 1 03:29:17 UTC 2020
#60933: request: libaom-av1
--------------------------------+--------------------
Reporter: iEFdev | Owner: (none)
Type: request | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Keywords: ffmpeg, youtube-dl | Port:
--------------------------------+--------------------
I'd like to request `libaom-av1` (or what suitable name it should have).
With a `libaom-av1` port, one could later add `--enable-libaom` to the
`ffmpeg` build.
- [https://trac.ffmpeg.org/wiki/Encode/AV1 FFmpeg/AV1]
Page referenced in the FFmpeg wiki is:
- [https://nwgat.ninja/test-driving-aomedias-av1-codec/]
Source code:
- [https://github.com/nwgat/Mirror-aom gh:nwgat/Mirror-aom]
[[br]]
So, this tracks back to an issue I had when downloading a clip from
YouTube with `youtube-dl`.
When using something like:
{{{
-f 'bestvideo[ext=mp4][height<=720]+bestaudio[ext=m4a]'
}}}
It will pick a better video, but a some of the better videos are using
(vcodec) `av01` instead of `avc1`, and the merged video won't play in
Finder/QuickLook, &/or with `ffplay`. VLC did play the video though.
{{{
# excerpts from youtube-dl -F <url>
// ... //
136 mp4 1280x720 720p 461k , avc1. ...
398 mp4 1280x720 720p 963k , av01. ...
399 mp4 1920x1080 1080p 1741k , av01. ...
137 mp4 1920x1080 1080p 2367k , avc1. ...
22 mp4 1280x720 720p 245k , avc1. ...
18 mp4 640x360 360p 274k , avc1. ... (best)
}}}
{{{
#!bash
$ ffprobe "Some_clip.mp4"
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Some_clip.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.29.100
Duration: 00:21:39.02, start: 0.000000, bitrate: 432 kb/s
Stream #0:0(und): Video: av1 (av01 / 0x31307661), none, 1280x720, 299
kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
Unsupported codec with id 32797 for input stream 0
}}}
One can pick the `avc1` version with
`bestvideo[ext=mp4][height<=720][vcodec^=avc1]` ''(`[vcodec!=av01]` did
not work)'', but then… you don't get the better versions.
Installing/using `dav1d` worked for this particular video clip, but it
would be great to also have `libaom-av1` as an additional option as well –
incase it's needed for other ones.
Since a lot of people use and rely on `youtube-dl`, and that one have some
`ffmpeg` integration - it would be great to have some more/additional
support available.
[[br]]
-----
- cc: dbevans, jeremyhu (`ffmpeg`)
- cc: ryandesign (`youtube-dl`)
''…in case any of you are interested.''
--
Ticket URL: <https://trac.macports.org/ticket/60933>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list