NewPipe icon indicating copy to clipboard operation
NewPipe copied to clipboard

Feature Request: Expose AV1 and allow download & playback

Open ich0x opened this issue 5 years ago • 34 comments
trafficstars

I have personally tested AV1 playback on an old 2016 Samsung J3 running LOS 14.1 and was successful in finding and playing suitable 480p AV1 videos on youtube using youtube-dl & a dev version of VLC from artifacts.videolan.org/vlc-android/

I have also tested 720p AV1 on a newer 2018 model J4.

However NewPipe completely ignores this format. I would like to see this format added to NewPipe, incorporating dav1d decoding somehow into exoplayer

ich0x avatar Dec 08 '19 16:12 ich0x

ExoPlayer 2.11 will support AV1 through libgav1. But if I recall correctly NewPipe didn't want to include native code dependencies. So it might never get included.

Redirion avatar Dec 11 '19 13:12 Redirion

Android 10 includes an AV1 decoder. This means ExoPlayer already supports AV1 videos on devices running Android 10, but until now, there was no support for devices running older Android versions.

This is kinda cool so on Android 10(+) no extra libraries are needed.

cool-student avatar Dec 11 '19 13:12 cool-student

this also requires an Extractor change @Stypox

Redirion avatar Dec 12 '19 14:12 Redirion

@fabiorug: No, ExoPlayer doesn't support that. It does have a libgav1 extension though, but we don't want to add native code to NewPipe. That means we won't support it as long as it isn't a built-in feature of Android. We could however add downloading of AV1 videos, if you could provide a link to any video on a service that's currently supported by NewPipe that is encoded by AV1.

wb9688 avatar Aug 03 '20 08:08 wb9688

This is kinda cool so on Android 10(+) no extra libraries are needed.

Is it true that in android 10+, AV1 is built-in.

MD77MD avatar Aug 03 '20 20:08 MD77MD

@MD77MD: https://developer.android.com/guide/topics/media/media-formats#video-codecs doesn't mention anything about AV1 being supported by Android in any version, however https://developer.android.com/about/versions/10/highlights#new_audio_and_video_codecs says it has indeed been added in Android 10.

wb9688 avatar Aug 03 '20 20:08 wb9688

The first page does show AV1 in the table. Maybe it was updated in the meanwhile.

opusforlife2 avatar Aug 12 '20 20:08 opusforlife2

@opusforlife2: Yup, seems like they finally updated it. Anyway could someone link a YouTube video that has an AV1 stream (according to youtube-dl -F)?

wb9688 avatar Aug 12 '20 20:08 wb9688

Dude, Youtube has entire playlists to test AV1. Give me a second.

opusforlife2 avatar Aug 12 '20 20:08 opusforlife2

Yup. This one. https://www.youtube.com/playlist?list=PLyqf6gJt7KuHBmeVzZteZUlNUQAVLwrZS

opusforlife2 avatar Aug 12 '20 20:08 opusforlife2

lol i am in for this feature

ghost avatar Jan 08 '21 13:01 ghost

Pffft. I am in for this feature as well.

opusforlife2 avatar Jan 08 '21 23:01 opusforlife2

+1

ghost avatar Mar 08 '21 06:03 ghost

AV1 can be considered out of beta and adopted in popular videos on YouTube, any plans to support AV1 in Newpipe?

ghost avatar Aug 29 '21 18:08 ghost

@D4v1dH03 See: https://github.com/TeamNewPipe/NewPipeExtractor/pull/706.

BTW, do you have a source for that? Was there a blog post or something?

opusforlife2 avatar Aug 29 '21 18:08 opusforlife2

@D4v1dH03 See: https://github.com/TeamNewPipe/NewPipeExtractor/pull/706.

BTW, do you have a source for that? Was there a blog post or something?

I tested a NCS music playlist with youtube-dl -F and discovered that they mostly have AV1 encoded formats available

One of the output shows this

399          mp4        1920x1080  1080p60 3991k , mp4_dash container, av01.0.09M.08@3991k, 60fps, video only, 102.29MiB

And yes I have a blog post It will most possibly be mandatory that Android TVs support AV1

https://www.digit.in/news/tvs/google-could-require-new-android-tv-devices-to-support-av1-encoding-what-is-av1-encoding-58052.html

ghost avatar Aug 29 '21 18:08 ghost

Oh. I've seen that. I thought you meant Google officially declared AV1 out of beta on Youtube or something.

Though just the fact that it's now being used for popular videos means it's probably considered stable.

opusforlife2 avatar Aug 29 '21 18:08 opusforlife2

At least the offical Youtube app does stream it when supported in hardware on phones, I guess they do consider it the superior format for that use case

utack avatar Aug 29 '21 19:08 utack

@utack Have you seen that on Mediatek Dimensity phones? As far as I know, those are the only chips that support AV1 hardware decoding right now.

opusforlife2 avatar Aug 29 '21 19:08 opusforlife2

@opusforlife2 I have seen it on my Galaxy S21, the european Exynos edition has a 4k60 capable AV1 decoder

And on my Samsung Tizen "The Frame" TV as well, but I am not sure if that app is considered offical

utack avatar Aug 29 '21 19:08 utack

Ah. Exynos 2100 added AV1 decode support. Good to know.

opusforlife2 avatar Aug 29 '21 19:08 opusforlife2

Many phones don't have hw decoder unfortunately but at least they have sw decoder

ghost avatar Feb 14 '22 17:02 ghost

Bump

Firefox Mobile uses software decoding and it loads faster then Newpipe, official app and the delisted Vanced.

BurhanBudak avatar May 04 '22 12:05 BurhanBudak

I too would be interested, just because the higher pixel density of the tablets makes it easier to see some difference in the encoding result :P

@DavidH-Tech Don't quote specific team members unless you're being asked by them for feedback. Those who are supposed to respond will respond.

And don't make duplicate comments across issues and PRs. One place is enough.

opusforlife2 avatar Dec 23 '22 17:12 opusforlife2

Note: Starting from 2023, mid-level phones and beyond should be mostly capable of decoding (at least) 720p AV1 video, both hw and sw decoding.

Crystal-RainSlide avatar Mar 24 '24 10:03 Crystal-RainSlide

Not Qualcomm ones.

opusforlife2 avatar Mar 26 '24 17:03 opusforlife2

My phone is entry level so I downloaded a video player to play an AV1 video file via software decoding, to my surprise it was running on hardware decoding. Later found out Android 14 supports it natively so I hope this will be taken seriously now for the compose refactor.

n-ce avatar Apr 15 '24 19:04 n-ce

There's no need to support VLC's libdav1d anymore because Google/YouTube will force it to Android even if you're using entry level, they will change their libgav1 to libdav1d.

https://www.androidauthority.com/android-update-av1-videos-3420418/

The only problem is why they put AV1 to MP4 not with WEBM/OPUS? WEBM/OPUS/AV1 will give better compression I hope they'll re-encode all their videos to WEBM/AV1.

robzorua avatar May 05 '24 09:05 robzorua

The only problem is why they put AV1 to MP4 not with WEBM/OPUS? WEBM/OPUS/AV1 will give better compression I hope they'll re-encode all their videos to WEBM/AV1.

MP4 / WEBM are just containers it doesn't matter much. VP9 didn't support the MP4 container format so I'm guessing they did this to generalize the AV1 codec among people. Btw I download AV1(+Opus) videos via yt-dlp all the time and they are all contained by WEBM.

n-ce avatar May 05 '24 10:05 n-ce