3 ms·
I’m new to codecs coming from frontend webdev mostly JS. is anyone able to point me to some resources on how to know via cli or programmatically to detect if a
by jalino23 5y ago
I’m new to codecs coming from frontend webdev mostly JS. is anyone able to point me to some resources on how to know via cli or programmatically to detect if a hardware codec is installed? and if it’s currently being utilized by web video player
the two ways I recently learned is only for listing codecs.
for windows is via legacy media player
for linux is via ffmpeg
and I’m still confused how video players talk to codecs and why they are installed separately and how code can interface with them if they are installed seperately
- spartanatreyu 5y agoIf you're publishing videos on your own website, making sure there's an mp4 (h264) and maybe a webm (vp8/vp9) source inside a `<video>` element is good enough. You can probably add an av1 source in 2-3 years. If you really need to pull things out of a video, you can either read the bytes directly from a blob, or render the video to a canvas and pull the pixel data out of there. Don't worry, there is a 0.00001% chance of you needing to do this. You will likely never touch anything like a codec from JS ever.