this post was submitted on 18 Nov 2024
16 points (94.4% liked)

Firefox

18050 readers
64 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.ml/post/22627659

Hi,

I have a couples of AV1 videos that I would like to display on a html page.

I've tried

<video controls preload="none">
    <source src="FooBar.mp4">
</video>

but it trow back

I've tried first with MKV container as it's listed on the wikipedia page.

but this is not listed on the mozilla page https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Video_codecs ๐Ÿค”

Confusing.. as I found also this in the firefox release note:

Firefox 97 and later versions support AV1 video in the MKV container.

So WTF !?

I've tried also

<video controls preload="none">
    <source src="FooBar.mp4" type="video/webm; codecs='av01.0.08M.08'">
</video>

but that change nothing...

Any ideas ?

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Donatello@lemmy.ml 1 points 1 month ago (1 children)

Thanks @Malix@sopuli.xyz ,

by any change I've tried codecs="avc1.4d401f" with my videos but of course it's not working.

Whats drive me crazy, is when open trough file:/// Firefox can play it, but once inside an html page, you have to specify the right codec !? WTF

[โ€“] Malix@sopuli.xyz 1 points 1 month ago (1 children)

and you're absolutely sure the files are av1? if you try to open the video files with ffmpeg, eg: ffmpeg -i videofile.mkv, what does it say the codec is?

at least my av1 videos say: Stream #0:0[0x1](und): Video: av1 (libdav1d) (Main) (av01 / 0x31307661), yuv420p(tv, progressive), 854x854, 464 kb/s, SAR 1:1 DAR 1:1, 30 fps, 30 tbr, 16k tbn (default)

[โ€“] Donatello@lemmy.ml 1 points 1 month ago

ffmpeg -i FooBar.mkv

Stream #0:0: Video: av1 (libdav1d) (Main), yuv420p(tv, bt709, progressive).....