Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firefox can't play videos (on DragonFly) #334

Open
mneumann opened this issue Dec 13, 2024 · 14 comments
Open

firefox can't play videos (on DragonFly) #334

mneumann opened this issue Dec 13, 2024 · 14 comments

Comments

@mneumann
Copy link
Contributor

It shows "Your browser can't play this video".

@jrmarino
Copy link
Member

image

image

that suggests it's a codecs thing. Can you check a video and ascertain if the codec is installed? if not, firefox should be pulling those in.

@mneumann
Copy link
Contributor Author

@jrmarino ffmpeg is installed via ravenports. I can use ffplay to play videos with it.

Tried to install gstreamer, but firefox plays no videos either.

@jrmarino
Copy link
Member

I was curious about right-clicking on the video to get info on the needed codecs.

@mneumann
Copy link
Contributor Author

@jrmarino

This is what right-clicking and selecting "Copy Debug info" shows:

{
  "ns": "yt",
  "el": "detailpage",
  "cpn": "s40hiH28JH9aZ_5K",
  "ver": 2,
  "cmt": "0",
  "fs": "0",
  "rt": "87.148",
  "euri": "",
  "lact": 1,
  "cl": "704834151",
  "mos": 0,
  "state": "80",
  "volume": 100,
  "cbr": "Firefox",
  "cbrver": "131.0",
  "c": "WEB",
  "cver": "2.20241212.08.00",
  "cplayer": "UNIPLAYER",
  "cos": "X11",
  "cplatform": "DESKTOP",
  "hl": "en_US",
  "cr": "DE",
  "len": "647",
  "fexp": "v1,23986032,18612,434717,127326,133212,14625955,11684381,7111,36343,9954,9105,18310,4420,2821,2870,44049,12193,19100,2471,6008,19339,18053,591,7505,5541,1823,3186,2912,4794,6942,408,20473,8,6227,2260,2144,9243,1581,1690,14,452,65,3426,2,120,366,1684,4903,763,2262,391,2586,1005,4920,3539,433,291,681,2,21,5260,983,2049,705,123,430,163,3313,2582,124,1248,4,675,334,1946,633,1854,3331,560,173,1291,262,233,1974,1414,165,593,1669,916,2819,467,494,678,3605",
  "feature": "search",
  "muted": "0",
  "docid": "neEFONe99gU",
  "ei": "y8xdZ7bOM4aAi9oP6IGEoQM",
  "plid": "AAYpPwYxvY6CuX7E",
  "referrer": "https://www.youtube.com/results?sp=mAEB&search_query=dragonfly",
  "sourceid": "ys",
  "of": "ivLfcs-t6qUjXbYQq5iQXQ",
  "vm": "CAEQABgEOjJBSHFpSlRJeVlMX3NtMndta1FYTFBWRUFhQkd1czI4ZWdzR3FsVHZEdUhXWi1uTDdHUWJaQUZVQTZSUUVKeXdydnJnTFExRkJodWlpTUl4N3EzVy1iWWlRMUFWVUo1QTFoWEYyZDl1bzZmTUc2SW5Xc0YwVXljMUdwZ1NRa28yMHNxNTJKc2gzOG43LXhB",
  "vct": "0.000",
  "vd": "NaN",
  "vpl": "",
  "vbu": "",
  "vbs": "",
  "vpa": "1",
  "vsk": "0",
  "ven": "0",
  "vpr": "1",
  "vrs": "0",
  "vns": "0",
  "vec": "null",
  "vemsg": "",
  "vvol": "1",
  "vdom": "1",
  "vsrc": "0",
  "vw": "806",
  "vh": "453",
  "debug_error": "{\"errorCode\":\"html5.missingapi\",\"errorMessage\":\"This video format is not supported.\",\"Qk\":\"HTML5_NO_AVAILABLE_FORMATS_FALLBACK\",\"Ei\":\"\",\"ST\":\"buildRej.1;a.1;d.0;drm.0;f18.1;c18.0;f133.1;f140.1;f242.1;cAAC.0;cAVC.0;cVP9.0;a6s.1\",\"sU\":2,\"cpn\":\"s40hiH28JH9aZ_5K\"}",
  "ismb": 23850000,
  "leader": 1,
  "relative_loudness": "0.000",
  "user_qual": 0,
  "release_version": "youtube.player.web_20241210_01_RC00",
  "debug_videoId": "neEFONe99gU",
  "0sz": "false",
  "op": "",
  "yof": "false",
  "dis": "",
  "gpu": "llvmpipe,_or_similar",
  "ps": "desktop-polymer",
  "debug_playbackQuality": "unknown",
  "debug_date": "Sat Dec 14 2024 19:23:31 GMT+0100 (Central European Standard Time)",
  "origin": "https://www.youtube.com",
  "timestamp": 1734200611315
}

I don't see the video codec.

Clicking on "Stats for nerds" displays a row "Codecs", but leaves it empty :/

@mneumann
Copy link
Contributor Author

I think, without a proper video decoder, you cannot display the codec properly :/

@mneumann
Copy link
Contributor Author

Opening the developer console gives more info:

HTTP “Content-Type” of “video/mp4” is not supported. Load of media resource 
data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlA.....
Cannot play media. No decoders for requested formats: video/mp4, video/mp4

Cannot play media. No decoders for requested formats: application/vnd.apple.mpegurl, 
application/vnd.apple.mpegurl, application/x-mpegURL, video/m3u8, video/mp4;codecs="avc1.42E01E mp4a.40.2",
video/mp4;codecs="av01.0.01M.08", video/mp4;codecs="vp09.00.50.08", audio/mp4;codecs="mp4a.40.2",
 audio/mp4;codecs="fLaC"

@jrmarino
Copy link
Member

jrmarino commented Jan 1, 2025

perhaps there's a missing map file (to map video/mp4 to ffmpeg)?

@jrmarino
Copy link
Member

jrmarino commented Jan 1, 2025

@jrmarino ffmpeg is installed via ravenports. I can use ffplay to play videos with it.

Tried to install gstreamer, but firefox plays no videos either.

I interpret this to mean both the primary and tools subpackages of "ffmpeg" are installed.
Just curious, is ffmpeg dev subpackage installed? if not, can you temporarily install it and try firefox again?

@mneumann
Copy link
Contributor Author

mneumann commented Jan 1, 2025

yes, both primary and tools are installed. dev packages does not help either:

root@letsnote:/home/mneumann # rvn info|grep ffmpeg
ffmpeg6~primary~std~6.1.2_2                  Play, record, convert, and stream audio and video (primary)
ffmpeg6~tools~std~6.1.2_2                    Play, record, convert, and stream audio and video (tools)
ffmpeg6~man~std~6.1.2_2                      Play, record, convert, and stream audio and video (man)
ffmpeg6~docs~std~6.1.2_2                     Play, record, convert, and stream audio and video (docs)
ffmpeg6~set~std~6.1.2_2                      Play, record, convert, and stream audio and video (set)
ffmpeg~primary~std~7.1                       Play, record, convert, and stream audio and video (primary)
ffmpeg5~primary~std~5.1.6_2                  Play, record, convert, and stream audio and video (primary)
ffmpeg6~dev~std~6.1.2_2                      Play, record, convert, and stream audio and video (dev)```

@mneumann
Copy link
Contributor Author

mneumann commented Jan 1, 2025

Dunno where I could configure the map file. It should not open ffmpeg as an external application. The media player should be built into Firefox. Maybe it's not properly configured at compile time...?

@jrmarino
Copy link
Member

jrmarino commented Jan 4, 2025

ffmpeg~dev~std~7.1 wasn't installed though ...

@mneumann
Copy link
Contributor Author

mneumann commented Jan 5, 2025

you are referring to build time?

@jrmarino
Copy link
Member

jrmarino commented Jan 5, 2025

no, when you showed output of "rvn info|grep ffmpeg", the ffmpeg dev package wasn't installed. only ffmpeg6's was installed.

@mneumann
Copy link
Contributor Author

mneumann commented Jan 6, 2025

It is installed and still no videos:

root@letsnote:/home/mneumann # rvn info|grep ffmpeg
ffmpeg6~primary~std~6.1.2_2                  Play, record, convert, and stream audio and video (primary)
ffmpeg6~tools~std~6.1.2_2                    Play, record, convert, and stream audio and video (tools)
ffmpeg6~man~std~6.1.2_2                      Play, record, convert, and stream audio and video (man)
ffmpeg6~docs~std~6.1.2_2                     Play, record, convert, and stream audio and video (docs)
ffmpeg6~set~std~6.1.2_2                      Play, record, convert, and stream audio and video (set)
ffmpeg~primary~std~7.1                       Play, record, convert, and stream audio and video (primary)
ffmpeg5~primary~std~5.1.6_2                  Play, record, convert, and stream audio and video (primary)
ffmpeg~dev~std~7.1                           Play, record, convert, and stream audio and video (dev)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants