New issue
Advanced search Search tips

Issue 643906 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , Mac
Pri: 2
Type: Bug



Sign in to add a comment

CanvasCaptureStream + audioTrack = MediaRecorder bug

Reported by tris...@idk2.co.kr, Sep 3 2016

Issue description

UserAgent: 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
 
Components: -Internals>Media Blink>MediaStream>Recording
Cc: emir...@chromium.org mcasas@chromium.org
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


Labels: Needs-Feedback
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).

Comment 5 Deleted

Comment 6 by tris...@idk2.co.kr, 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 ?
Labels: OS-Android

Comment 8 by mcasas@chromium.org, Sep 13 2016

Status: WontFix (was: Unconfirmed)

Comment 9 by mcasas@chromium.org, Jan 18 2017

Components: Blink>MediaRecording
Components: -Blink>MediaStream>Recording

Sign in to add a comment