Closed Bug 999364 Opened 11 years ago Closed 11 years ago

[Media Recorder] Fix the cluster length for WebM.

Categories

(Core :: Audio/Video: Recording, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: bechen, Assigned: bechen)

References

Details

Attachments

(5 files, 2 obsolete files)

Fork from Bug 969290 comment 2. Jim points out the data size of a cluster is not correct. Should fix in EbmlComposer::FinishCluster(). (Now we only compute the first block's size) reference: http://matroska.org/technical/specs/index.html search "Data size"
Blocks: 951040
Attached patch bug-999364.patch (obsolete) (deleted) — Splinter Review
Assignee: nobody → bechen
Status: NEW → ASSIGNED
Attached video test2.webm (deleted) —
Attached file element lengths in test2.webm (deleted) —
Comment on attachment 8410899 [details] element lengths in test2.webm Hi Jim: After apply my patch, I use the script you provide to generate the result. Would you please give some feedback?
Attachment #8410899 - Flags: feedback?(tramspap)
Attached file more detailed look at test2.webm (deleted) —
As far as I can tell, the element lengths are fixed, at least for this file. I took a closer look at the file with another script (output attached) to see if I could spot any other obvious problems, and I think I have. The duration given in the segment information is zero, as are all the timecodes of the blocks in the audio stream.
(In reply to Jim Black from comment #5) > Created attachment 8410957 [details] > more detailed look at test2.webm > > As far as I can tell, the element lengths are fixed, at least for this file. > > I took a closer look at the file with another script (output attached) to > see if I could spot any other obvious problems, and I think I have. The > duration given in the segment information is zero, as are all the timecodes > of the blocks in the audio stream. Yeah, we don't output the timestamp for vorbis audio in VorbisTrackEncoder.c. It's not difficult to get the timestamp and duration for decoder by counting the audio samples
Attached patch bug-999364.patch (obsolete) (deleted) — Splinter Review
Attachment #8410896 - Attachment is obsolete: true
Attachment #8411544 - Flags: review?(giles)
Attachment #8411544 - Flags: review?(giles) → review+
Attached patch bug-999364.patch (deleted) — Splinter Review
Attachment #8411544 - Attachment is obsolete: true
Attachment #8414951 - Flags: review+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Attachment #8410899 - Flags: feedback?(tramspap)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: