48 questions
0
votes
0
answers
50
views
Making an AAC packet usable with creatSourceBuffer audio api to be usable with HLS on Safari
Safari has a bug extracting audio data from the media element source if using Safari. I am investigating a work around getting the demuxed aac audio packet and adding to a source buffer using hls.js. ...
0
votes
2
answers
151
views
WebCodec API hangs in windows but not in linux [closed]
I'm getting crazy with this bug: in most windows hosts running chromium, this website of mine (basically playing a video and stopping at precise frames: to reproduce, just wait a few seconds for the ...
1
vote
1
answer
151
views
EncodingError: Decoder error. (Unable to determine size of bitstream buffer.) when using Webcodec API
I'm using Webcodecs since it now globally supported (except for mozilla mobile). My goal is to create a streaming plateform for cameras, I have a camera that sends it's datas to a server. This server ...
2
votes
0
answers
96
views
How to use AudioEncoder to compress PCM audio data?
The following code reaches the flush promise, however the created Blob does not play because the HTMLAudioElement fails with NotSupportedError: Failed to load because no supported source was found..
...
0
votes
0
answers
172
views
Is there a way to force VideoDecoder from WebCodecs API to output frames in BGRA format?
I'm working on VideoDecoder from WebCodecs API to decode frames from a video source file. Problem is the frame format of the output from the decoder is browser dependent. In Mozilla Firefox, it ...
0
votes
2
answers
1k
views
How to encode MP4 file with Webcodec's VideoEncode API
I'm trying to make a tool that uses Webcodec's VideoEncoder API to compress/convert a submitted video file locally.
The problem is that the outputted video after the encoding comes out with a fraction ...
1
vote
2
answers
779
views
Encoding an AudioBuffer with web codecs
I'm trying to process audio files using the Web Audio API and then to encode the result using the Web Codecs API, here is what a simplified version of my code looks like:
/**
* Encode an audio file ...
1
vote
1
answer
1k
views
WebCodecs - create mp4 video from jpg images
I started playing with WebCodecs API. I try to create mp4 video from set of jpg images.
Starting with something simple, I'm trying to create an mp4 from one jpg image. When the output callback is ...
1
vote
1
answer
1k
views
How to playback containerless / raw .h264 streams via Webcodecs API?
I want to play back a raw .h264 stream using the Webcodecs API and extract specific frames. It is saved as a .h264 file, essentially just the video data before being muxed into a .mp4 container format....
0
votes
0
answers
902
views
Decode MP4 video with VideoDecoder - avcC problem
I am trying to decode this video with WebCodecs in Google Chrome: https://www.photopea.com/test_video.mp4 . My code used to work in the past with this video, but it stopped to work with Chrome 115.
I ...
3
votes
2
answers
813
views
How to obtain an AnnexB H.265 codec string from the header?
I want to configure a Web Codecs H.265 video decoder. To do that I need a codec string like: hvc1.1.6.L63.00, which should be obtainable from a header like:
0 0 0 1
64 1 12 1 255 255 1 64 0 0 3 0 144 ...
1
vote
2
answers
158
views
Windows Media Player doesn't reproduce audio from file that was created with mp4box library
I am using the mp4box library to create a media file that includes video and audio tracks. I have set up my audio encoder output callback using the following code:
if (encodingAudioTrack === null) {
...
2
votes
1
answer
462
views
How many frame need to be decoded before output callback is invoked in webcodec(avc1.640028)
When I invoked
VideoDecoder.decode(
new EncodedVideoChunk(sample)
);
once in a tick of requestAnimationFrame, I noticed the output callback is also invoked roughly in each ...
1
vote
0
answers
739
views
Configure WebCodecs API video decoder to match an NVENC Encoder
I have an H264 NVENC Encoder setup which encodes a video stream. I want to decode frames of that stream using the WebCodecs API in Google Chrome.
My decoder configuration setup looks like this:
let ...
3
votes
0
answers
581
views
FFmpeg.wasm demuxing - Get encodedChunks in Javascript
I am building a video editor whose process looks like this:
Demuxing -> Decoding -> Editing -> Encoding -> Muxing.
The demuxing and muxing process is currently done with mp4box.js. I would ...
0
votes
1
answer
1k
views
Webcodecs mux with Ffmpeg.wasm
I am currently creating a video editor with webcodecs. I would like to use FFmepg/Wasm for muxing, as I previously worked with mp4box.js and encountered many problems.
The question I have is how best ...
3
votes
3
answers
3k
views
VideoDecoder decode output not called
I'm trying to decode H264 frames, sent by my backend, like this:
/*
packet = {
type: "frame",
keyframe: <Boolean>,
pts: <BigInt>,
data: <ArrayBuffer/Uint8Array>
}
*/...
1
vote
1
answer
1k
views
Does WebCodecs support transparency of an HEVC stream?
I checked out this demo from the webcodecs repo and I was playing around with the HEVC decoding, which works from Chrome 107 I believe.
However, when I tried with an HEVC that utilizes transparency, ...
5
votes
2
answers
6k
views
Decode MP4 video with VideoDecoder
I want to make a web app, which extracts each frame of a MP4 file, and saves it as a PNG. Setting the currentTime of a <video> element and drawing it into a canvas does not work, as it often ...
7
votes
1
answer
1k
views
Initialize an AudioDecoder for "vorbis" and "opus", description is required - what is it exactly?
I'm using the WebCodecs AudioDecoder to decode OGG files (vorbis and opus). The codec string setting in the AudioDecoder configuration is vorbis and opus, respectively.
I have the container parsed ...
1
vote
1
answer
2k
views
Webcodecs VideoDecoder undefined
I tried to use webodecs in my react project. But it doesn't seem to work.
Here is my debug code:
import logo from './logo.svg';
import './App.css';
// import Editor from './components/pages/editor/...
2
votes
1
answer
2k
views
How to create video srcObject from VideoFrame?
I'm learning webcodecs now, and I saw things as below:
So I wonder maybe it can play video on video element with several pictures. I tried many times but it still can't work.
I create videoFrame from ...
2
votes
2
answers
651
views
use of webcodecs API in Angular project?
I am trying to use features from the new webcodecs API in Chrome within an angular project. Typescript doesn't seem to be aware of the types, so I installed dom-webcodecs.
https://www.npmjs.com/...
2
votes
0
answers
763
views
Decoding opus in chunks using AudioDecoder
I'm developing an application that has business logic that heavily depends on sound precision, hence I'm using the Web Audio API. The app has the functionality to manipulate audio files in multiple ...