Closed
Bug 1205927
Opened 9 years ago
Closed 9 years ago
[FireFox OS 2.2][Multimedia] FFOS support EVRC record Inquiry
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(feature-b2g:2.2r+, firefox45 fixed, b2g-v2.5 fixed, b2g-v2.2r fixed)
People
(Reporter: frpsy, Assigned: mchiang)
References
Details
(Whiteboard: [red-tai])
Attachments
(5 files, 2 obsolete files)
2.20 MB,
video/3gpp2
|
Details | |
28.58 KB,
patch
|
ayang
:
review+
jhlin
:
review+
jocheng
:
approval-mozilla-b2g37-
|
Details | Diff | Splinter Review |
4.88 KB,
patch
|
ayang
:
review+
jocheng
:
approval-mozilla-b2g37-
|
Details | Diff | Splinter Review |
28.09 KB,
patch
|
mpotharaju
:
approval‑mozilla‑b2g37_v2_2r+
|
Details | Diff | Splinter Review |
4.15 KB,
patch
|
mpotharaju
:
approval‑mozilla‑b2g37_v2_2r+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20
In latest Gecko version, Mozilla only supports 3GPP(AMR) and OGG types for audio recording. (Please check “gecko/dom/media/encoder/MediaEncoder.cpp” file.) please check EVRC Record is supported. if not supported, is it possible to add this API for EVRC record?
Summary: [FireFox OS 2.2][Multimedia] encode EVRC content API Inquiry → [FireFox OS 2.2][Multimedia] FFOS support EVRC record Inquiry
Currently, EVRC codec is QC H/W Codec
Whiteboard: [red-tai]
Comment 4•9 years ago
|
||
If it supports OpenMax IL interface, that'll be easier to do it; otherwise, we need to implement a new encoder.
Flags: needinfo?(bwu) → needinfo?(jolin)
Comment 5•9 years ago
|
||
(In reply to Alfredo Yang (:alfredo) from comment #4) > If it supports OpenMax IL interface, that'll be easier to do it; otherwise, > we need to implement a new encoder. /system/etc/media_codecs.xml lists all exposed codecs on device. For example, Flame(KK) has EVRC decoder, but no encoder: <MediaCodec name="OMX.qcom.audio.decoder.evrc" type="audio/evrc" > Z3C(KK) has both: <MediaCodec name="OMX.qcom.audio.encoder.evrc" type="audio/evrc" > <MediaCodec name="OMX.qcom.audio.decoder.evrc" type="audio/evrc" > And android::MediaCodecList::findCodecByType("audio/evrc", /* encoder? */ true) can be used to check the availability at runtime.
Flags: needinfo?(jolin)
Comment 6•9 years ago
|
||
Also, IMO new API is not necessary since in latest spec, MediaRecorder constructor (optionally) accepts mimeType parameter[1] and has canRecordMimeType() method[2] already. [1] http://w3c.github.io/mediacapture-record/MediaRecorder.html#widl-ctor-MediaRecorder--MediaStream-stream-DOMString-mimeType [2] http://w3c.github.io/mediacapture-record/MediaRecorder.html#widl-MediaRecorder-canRecordMimeType-DOMString-DOMString-mimeType
Comment 7•9 years ago
|
||
(In reply to John Lin [:jolin][:jhlin] from comment #6) > Also, IMO new API is not necessary since in latest spec, MediaRecorder > constructor (optionally) accepts mimeType parameter[1] and has > canRecordMimeType() method[2] already. > > [1] > http://w3c.github.io/mediacapture-record/MediaRecorder.html#widl-ctor- > MediaRecorder--MediaStream-stream-DOMString-mimeType > [2] > http://w3c.github.io/mediacapture-record/MediaRecorder.html#widl- > MediaRecorder-canRecordMimeType-DOMString-DOMString-mimeType Dear John, According your comments, if EVRC encoder is available in media_codec.xml, EVRC recording is available without the need to add API. Is that right? If latest spec you mentioned([1],[2]) is implemented in FFOS2.2 version, please let we know directory and file name. Thanks.
Flags: needinfo?(jolin)
Comment 8•9 years ago
|
||
(In reply to Jaemin Song from comment #7) > (In reply to John Lin [:jolin][:jhlin] from comment #6) > > Also, IMO new API is not necessary since in latest spec, MediaRecorder > > constructor (optionally) accepts mimeType parameter[1] and has > > canRecordMimeType() method[2] already. > > > > [1] > > http://w3c.github.io/mediacapture-record/MediaRecorder.html#widl-ctor- > > MediaRecorder--MediaStream-stream-DOMString-mimeType > > [2] > > http://w3c.github.io/mediacapture-record/MediaRecorder.html#widl- > > MediaRecorder-canRecordMimeType-DOMString-DOMString-mimeType > > Dear John, > > According your comments, > if EVRC encoder is available in media_codec.xml, EVRC recording is available > without the need to add API. > Is that right? What I meant is that you don't have to add new API in MediaRecorder spec. There's still Gecko work to do to support EVRC (like what :rlin had done for 3GPP/AMR in bug 959490). > > If latest spec you mentioned([1],[2]) is implemented in FFOS2.2 version, > please let we know directory and file name. > > Thanks. [1] is implemented in bug 959490 (files under dom/media/). [2] is not implemented in Gecko yet and you can file a new bug for it.
Flags: needinfo?(jolin)
Comment 9•9 years ago
|
||
(In reply to John Lin [:jolin][:jhlin] from comment #8) > There's still Gecko work to do to support EVRC (like what :rlin had done for 3GPP/AMR in bug 959490). For EVRC recording, could you add EVRC format like 3GPP/AMR(bug 959490)? Thanks.
Flags: needinfo?(jolin)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → mchiang
Flags: needinfo?(mchiang)
Assignee | ||
Comment 11•9 years ago
|
||
sangyeol, May I know more detail about the use case of EVRC? And could you share us 1) some sample clips with evrc codec 2) any desktop player which can play this format.
Flags: needinfo?(frpsy)
Reporter | ||
Comment 12•9 years ago
|
||
Dear Munro 1) This is for EVRC recording, would you let me know why you need an evrc sample file? (EVRC Playback already checked O.K.) 2) Any player like VLC Player
Flags: needinfo?(frpsy) → needinfo?(mchiang)
Assignee | ||
Comment 13•9 years ago
|
||
I am searching a player to verify the b2g recorded evrc clip. I tried to use VLC player to play a evrc audio sample from http://download.wavetlan.com/SVV/Media/HTTP/http-3gp-audio.htm but it failed. I am not sure if VLC player cannot support this format or the audio sample doesn't meet spec. Is that possible you can provide us some samples for reference?
Flags: needinfo?(mchiang) → needinfo?(frpsy)
Reporter | ||
Comment 14•9 years ago
|
||
uploaded EVRC sample audio. kindly check this sample.
Flags: needinfo?(frpsy) → needinfo?(mchiang)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(mchiang)
Comment 15•9 years ago
|
||
Hi Sangyeol, Is this required for 2.2R, and why? Please be note that either feature-b2g:2.2r+ or blocking-b2g:2.2r+ is needed to get patches landed to 2.2R. And we also won't focus on non-required items given the schedule concern.
Flags: needinfo?(frpsy)
Reporter | ||
Comment 16•9 years ago
|
||
(In reply to Wesley Huang [:wesley_huang] (EPM) (NI me) from comment #15) > Hi Sangyeol, > > Is this required for 2.2R, and why? - Yes, This is required for 2.2R - Because of Verizon Wireless's requirement which is based on 2.2R > Please be note that either feature-b2g:2.2r+ or blocking-b2g:2.2r+ is needed > to get patches landed to 2.2R. > > And we also won't focus on non-required items given the schedule concern.
blocking-b2g: --- → 2.2r?
Flags: needinfo?(frpsy)
Comment 17•9 years ago
|
||
calling out to PM to confirm the requirements with partner (also ni TAM to help out)
Flags: needinfo?(vchen)
Flags: needinfo?(skamat)
Reporter | ||
Comment 19•9 years ago
|
||
1205926(In reply to Sandip Kamat from comment #18) > It is a duplicate of 1205926? Hi Sandip, Yes, This one(for EVRC) is as a duplication of 1205926 But Please note that 1205926 is about PCM Record. Both of these recording APIs are needed.
Assignee | ||
Comment 20•9 years ago
|
||
Sandip, could you confirm if we need to support this feature? Thanks
Flags: needinfo?(skamat)
Comment 21•9 years ago
|
||
I've been told these are mandatory. Will you also be able to take bug 1205925 and bug 1205926?
blocking-b2g: 2.2r? → ---
feature-b2g: --- → 2.2r+
Updated•9 years ago
|
Flags: needinfo?(skamat)
Assignee | ||
Comment 22•9 years ago
|
||
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 1205927 User impact if declined: cannot pass carrier lab test Testing completed: vlc player can play the evrc clip recorded by flame Risk to taking this patch (and alternatives if risky): no String or UUID changes made by this patch: no
Flags: needinfo?(vchen)
Attachment #8678710 -
Flags: review?(cpearce)
Attachment #8678710 -
Flags: approval‑mozilla‑b2g37_v2_2r?
Assignee | ||
Comment 23•9 years ago
|
||
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 1205927 User impact if declined: cannot pass carrier lab entry test Testing completed: vlc player can play the evrc clip recorded by flame Risk to taking this patch (and alternatives if risky): no String or UUID changes made by this patch: no
Attachment #8678712 -
Flags: review?(cpearce)
Attachment #8678712 -
Flags: approval‑mozilla‑b2g37_v2_2r?
Assignee | ||
Updated•9 years ago
|
Attachment #8678710 -
Flags: approval‑mozilla‑b2g37_v2_2r?
Assignee | ||
Updated•9 years ago
|
Attachment #8678712 -
Flags: approval‑mozilla‑b2g37_v2_2r?
Comment 24•9 years ago
|
||
Comment on attachment 8678710 [details] [diff] [review] WIP-Bug-1205927-Part-1-MediaEncoder-Support-.3g2-with-EV.patch Review of attachment 8678710 [details] [diff] [review]: ----------------------------------------------------------------- I am fine with adding EVRC encoding on B2G. Alfredo, or someone with more experience with MediaEncoder code than I, should review this.
Attachment #8678710 -
Flags: review?(cpearce)
Attachment #8678710 -
Flags: review?(ayang)
Attachment #8678710 -
Flags: feedback+
Comment 25•9 years ago
|
||
Comment on attachment 8678712 [details] [diff] [review] WIP-Bug-1205927-Part-2-Add-audio-capture-3gpp2-perimissi.patch Review of attachment 8678712 [details] [diff] [review]: ----------------------------------------------------------------- I am fine with adding EVRC encoding on B2G. Alfredo, or someone with more experience with MediaEncoder code than I, should review this.
Attachment #8678712 -
Flags: review?(cpearce) → review?(ayang)
Comment 26•9 years ago
|
||
Comment on attachment 8678710 [details] [diff] [review] WIP-Bug-1205927-Part-1-MediaEncoder-Support-.3g2-with-EV.patch Review of attachment 8678710 [details] [diff] [review]: ----------------------------------------------------------------- +Jolin for TrackEncoder review. ::: dom/media/encoder/fmp4_muxer/ISOMediaBoxes.cpp @@ +12,5 @@ > #include "ISOTrackMetadata.h" > #include "MP4ESDS.h" > #include "AMRBox.h" > #include "AVCBox.h" > +#include "EVRCBox.h" I can't find this file. Do you forget to add it?
Attachment #8678710 -
Flags: review?(ayang) → review?(jolin)
Assignee | ||
Comment 27•9 years ago
|
||
Thanks for the reminding! Please help review the new WIP
Attachment #8678710 -
Attachment is obsolete: true
Attachment #8678712 -
Attachment is obsolete: true
Attachment #8678710 -
Flags: review?(jolin)
Attachment #8678712 -
Flags: review?(ayang)
Attachment #8679288 -
Flags: review?(ayang)
Assignee | ||
Comment 28•9 years ago
|
||
Attachment #8679289 -
Flags: review?(ayang)
Comment 29•9 years ago
|
||
Comment on attachment 8679288 [details] [diff] [review] WIP-Bug-1205927-Part-1-MediaEncoder-Support-.3g2-with-EV.patch Review of attachment 8679288 [details] [diff] [review]: ----------------------------------------------------------------- Leave OmxTrackEncoder for John to review. r+ for others.
Attachment #8679288 -
Flags: review?(jolin)
Attachment #8679288 -
Flags: review?(ayang)
Attachment #8679288 -
Flags: review+
Comment 30•9 years ago
|
||
Comment on attachment 8679289 [details] [diff] [review] WIP-Bug-1205927-Part-2-Add-audio-capture-3gpp2-perimissi.patch Review of attachment 8679289 [details] [diff] [review]: ----------------------------------------------------------------- LGTM.
Attachment #8679289 -
Flags: review?(ayang) → review+
Comment 31•9 years ago
|
||
Comment on attachment 8679288 [details] [diff] [review] WIP-Bug-1205927-Part-1-MediaEncoder-Support-.3g2-with-EV.patch Review of attachment 8679288 [details] [diff] [review]: ----------------------------------------------------------------- Overall looks good to me. There are some place that can be refactored though, IMHO. - OmxAudioTrackEncoder::AppendEncodedFrames() checks for codec (IOW subclass) type to determine the frame type. That could be replaced with virtual method call. - OMXCodecWrapper::mAMRCSDProvided could be used to handle all "no CSD from encoder" cases.
Attachment #8679288 -
Flags: review?(jolin) → review+
Assignee | ||
Comment 32•9 years ago
|
||
Thanks for the comment. I have created bug 1219100 for refactoring.
Assignee | ||
Comment 33•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=978105806a39
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•9 years ago
|
Attachment #8679288 -
Flags: approval‑mozilla‑b2g37_v2_2r?
Assignee | ||
Updated•9 years ago
|
Attachment #8679289 -
Flags: approval‑mozilla‑b2g37_v2_2r?
Comment 34•9 years ago
|
||
Hi, this has conflicts when trying to checkin to 2.2r 1 out of 1 hunks FAILED -- saving rejects to file dom/media/MediaRecorder.cpp.rej patching file dom/media/encoder/OmxTrackEncoder.cpp Hunk #1 FAILED at 178 Hunk #2 FAILED at 337 2 out of 2 hunks FAILED -- saving rejects to file dom/media/encoder/OmxTrackEncoder.cpp.rej patching file dom/media/encoder/OmxTrackEncoder.h Hunk #1 FAILED at 84 1 out of 1 hunks FAILED -- saving rejects to file dom/media/encoder/OmxTrackEncoder.h.rej patching file dom/media/encoder/fmp4_muxer/ISOControl.cpp Hunk #2 FAILED at 162 1 out of 2 hunks FAILED -- saving rejects to file dom/media/encoder/fmp4_muxer/ISOControl.cpp.rej patching file dom/media/encoder/fmp4_muxer/ISOMediaBoxes.cpp Hunk #2 FAILED at 661 1 out of 3 hunks FAILED -- saving rejects to file dom/media/encoder/fmp4_muxer/ISOMediaBoxes.cpp.rej patching file dom/media/encoder/fmp4_muxer/ISOMediaWriter.cpp Hunk #1 FAILED at 98 1 out of 2 hunks FAILED -- saving rejects to file dom/media/encoder/fmp4_muxer/ISOMediaWriter.cpp.rej patching file dom/media/encoder/fmp4_muxer/ISOTrackMetadata.h Hunk #1 succeeded at 96 with fuzz 2 (offset 0 lines). patching file dom/media/encoder/fmp4_muxer/moz.build Hunk #1 succeeded at 8 with fuzz 1 (offset 0 lines). patching file dom/media/omx/OMXCodecWrapper.h Hunk #3 FAILED at 202 1 out of 3 hunks FAILED -- saving rejects to file dom/media/omx/OMXCodecWrapper.h.rej patching file netwerk/mime/nsMimeTypes.h Hunk #1 FAILED at 78 1 out of 1 hunks FAILED -- saving rejects to file netwerk/mime/nsMimeTypes.h.rej patch failed, unable to continue (try -v) patch failed, rejects left in working directory errors during apply, please fix and refresh WIP-Bug-1205927-Part-1-MediaEncoder-Support-.3g2-with-EV.patch could you take a look, thanks!
Flags: needinfo?(mchiang)
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 35•9 years ago
|
||
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): 1205927 User impact if declined: cannot pass VZW lab test Testing completed: vlc player can play the clip recorded with Flame Risk to taking this patch (and alternatives if risky): no String or UUID changes made by this patch: no
Flags: needinfo?(mchiang)
Attachment #8679908 -
Flags: approval‑mozilla‑b2g37_v2_2r?
Assignee | ||
Comment 36•9 years ago
|
||
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): 1205927 User impact if declined: cannot pass VZW lab test Testing completed: vlc player can play the clip recorded with Flame Risk to taking this patch (and alternatives if risky): no String or UUID changes made by this patch: no
Attachment #8679912 -
Flags: approval‑mozilla‑b2g37_v2_2r?
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 37•9 years ago
|
||
landed as remote: https://hg.mozilla.org/releases/mozilla-b2g37_v2_2r/rev/d2c31956955d remote: https://hg.mozilla.org/releases/mozilla-b2g37_v2_2r/rev/ac3ed9649442
status-b2g-v2.2r:
--- → fixed
Keywords: checkin-needed
Assignee | ||
Updated•9 years ago
|
Attachment #8679288 -
Flags: approval‑mozilla‑b2g37_v2_2r? → approval-mozilla-b2g37?
Assignee | ||
Updated•9 years ago
|
Attachment #8679289 -
Flags: approval‑mozilla‑b2g37_v2_2r? → approval-mozilla-b2g37?
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 38•9 years ago
|
||
Hi Munro, removing checkin-needed because this need first approval from mahe for 2.2
Flags: needinfo?(mpotharaju)
Keywords: checkin-needed
Comment 39•9 years ago
|
||
Comment on attachment 8679908 [details] [diff] [review] WIP-2_2r-Bug-1205927-Part-1-MediaEncoder-Support-.3g2-with-EV.patch Approved to land on 2.2R. Thanks
Flags: needinfo?(mpotharaju)
Attachment #8679908 -
Flags: approval‑mozilla‑b2g37_v2_2r? → approval‑mozilla‑b2g37_v2_2r+
Comment 40•9 years ago
|
||
Comment on attachment 8679912 [details] [diff] [review] WIP-2_2r-Bug-1205927-Part-2-Add-audio-capture-3gpp2-perimissi.patch Approved to land on 2.2R Thanks
Attachment #8679912 -
Flags: approval‑mozilla‑b2g37_v2_2r? → approval‑mozilla‑b2g37_v2_2r+
Comment 41•9 years ago
|
||
Munro, Did you intend to have this patch land on 2.2 or 2.2R? Tomcat got this to my notice as its already landed on 2.2R
Updated•9 years ago
|
Flags: needinfo?(mchiang)
Assignee | ||
Comment 42•9 years ago
|
||
I intend to have this patch on 2.2R and central. attachment 8679288 [details] [diff] [review] and attachment 8679289 [details] [diff] [review] -> central attachment 8679908 [details] [diff] [review] and attachment 8679912 [details] [diff] [review] -> 2.2R (already done)
Flags: needinfo?(mchiang)
Comment 43•9 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/888a6bae2a4b https://hg.mozilla.org/integration/b2g-inbound/rev/65995f4d5183
Assignee | ||
Comment 44•9 years ago
|
||
Sangyeol, We have landed a patch which supports MediaRecorder with mime type "audio/3gpp2". Please notice that only privileged or certified apps can access.
Comment 45•9 years ago
|
||
Munro, Thank you for confirming
remote: https://hg.mozilla.org/mozilla-central/rev/888a6bae2a4b remote: https://hg.mozilla.org/mozilla-central/rev/65995f4d5183
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S10 (30Oct)
Comment 47•9 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/888a6bae2a4b https://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/65995f4d5183
status-b2g-v2.5:
--- → fixed
Comment 48•8 years ago
|
||
Comment on attachment 8679288 [details] [diff] [review] WIP-Bug-1205927-Part-1-MediaEncoder-Support-.3g2-with-EV.patch Not maintaining 2.2 anymore
Attachment #8679288 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37-
Comment 49•8 years ago
|
||
Comment on attachment 8679289 [details] [diff] [review] WIP-Bug-1205927-Part-2-Add-audio-capture-3gpp2-perimissi.patch Not maintaining 2.2 anymore
Attachment #8679289 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37-
You need to log in
before you can comment on or make changes to this bug.
Description
•