CanvasCaptureStream + audioTrack = MediaRecorder bug
Reported by
tris...@idk2.co.kr,
Sep 3 2016
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:49.0) Gecko/20100101 Firefox/49.0 Example URL: https://jsfiddle.net/8Lnuc2tf/ Steps to reproduce the problem: 1. let cStream be a CanvasCaptureStream from HTMLCanvas.captureStream(fps) 2. let aTrack be a an AudioTrack from a MediaStream (either from gUM or from WebAudioAPI) 3. call cStream.addTrack(aTrack); 4. let recorder be the result of `new MediaRecorder(cStream);` 5. attach a saveChunks function to the ondataavailable event handler What is the expected behavior? saveChunks should get some data in the event passed. What went wrong? Event's `data.size` is always 0. Did this work before? No Is it a problem with Flash or HTML5? HTML5 Does this work in other browsers? Yes Chrome version: <Copy from: 'about:version'> Channel: n/a OS Version: OS X 10.9 Flash Version: Shockwave Flash 22.0 r0 It works well with a video track from gUM. It works well when we don't add the audio track. I also tried to use a gUM stream and replace it's video track to the canvas' one, but the same occurs. Firefox is not able to save a canvasStream with an audioTrack either, but it's for completely different reasons : https://bugzilla.mozilla.org/show_bug.cgi?id=1296531
,
Sep 7 2016
,
Sep 7 2016
mcasas@, I quickly ran a debug build here. It looks like, we have an issue in muxer. Does it look like issue 528523 ? [60712:1295:0907/125341:VERBOSE1:webm_muxer.cc(143)] OnEncodedVideo: delaying until audio track ready. https://paste.googleplex.com/4678730962173952
,
Sep 7 2016
Yeah, tristan@ it seems like WebmMuxer is stuck waiting for encoded audio. Could you please verify that the audio track is not 'muted' and is really playing audio? (note that silence would be considered playing 'something' in this case).
,
Sep 8 2016
Wow it's completely my bad, actually it works just fine... I simply forgot to connect the sourceNode to the MediaStreamDestination. https://jsfiddle.net/8Lnuc2tf/2/ Truly sorry. How can I close or even delete this issue ?
,
Sep 8 2016
,
Sep 13 2016
,
Jan 18 2017
,
Jan 18 2017
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by yini...@chromium.org
, Sep 7 2016