Closed
Bug 1393045
Opened 8 years ago
Closed 7 years ago
Add support for AudioSampleEntry with a version 2 (QT Extension)
Categories
(Core :: Audio/Video: Playback, enhancement, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla58
People
(Reporter: jya, Assigned: ayang)
References
Details
Attachments
(2 files)
FFmpeg can create AudioSampleEntry (in a stsd box) that have a version of value 2.
They store:
avio_wb16(pb, 3);
avio_wb16(pb, 16);
avio_wb16(pb, 0xfffe);
avio_wb16(pb, 0);
avio_wb32(pb, 0x00010000);
avio_wb32(pb, 72);
avio_wb64(pb, av_double2int(track->par->sample_rate));
avio_wb32(pb, track->par->channels);
avio_wb32(pb, 0x7F000000);
avio_wb32(pb, av_get_bits_per_sample(track->par->codec_id));
avio_wb32(pb, mov_get_lpcm_flags(track->par->codec_id));
avio_wb32(pb, track->sample_size);
avio_wb32(pb, get_samples_per_packet(track));
https://dxr.mozilla.org/mozilla-central/rev/1867d7931c0a70ab90edf4aa84876525773a7139/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp#1251
Such box are QT v2 extension where support was added in stagefright in bug 1130450. But this hasn't been implemented in the rust mp4parse.
In such structure, the sampling rate is stored in a double (64 bits).
Updated•8 years ago
|
Priority: -- → P1
Comment 1•7 years ago
|
||
Mass change P1->P2 to align with new Mozilla triage process
Priority: P1 → P2
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → ayang
Assignee | ||
Comment 2•7 years ago
|
||
Created with ffmpeg.
ffmpeg -i ./gizmo-short.mp4 -acodec pcm_s16le -ar 96000 -vcodec copy -f mov gizmo-short.mov
Assignee | ||
Comment 3•7 years ago
|
||
Comment hidden (mozreview-request) |
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8926181 [details]
Bug 1393045 - support QT AudioSampleEntry v2.
https://reviewboard.mozilla.org/r/197432/#review202634
Attachment #8926181 -
Flags: review?(kinetik) → review+
Pushed by ayang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/78f97c364749
support QT AudioSampleEntry v2. r=kinetik
Comment 7•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•