Commit Graph
27 Commits
Author SHA1 Message Date
Andreas Pehrson 1e7c4d659a Bug 1296531 - Refactor MediaRecorder. r=jesup,SingingTree
The main purpose of this patch is to make the TrackEncoders run in a TaskQueue
to avoid multi-threaded access to members, and to change to track listeners to
allow for recording all kinds of tracks (the description of bug 1296531).

MozReview-Commit-ID: EtLXaDDBPdy
2017-05-24 18:51:47 +02:00
Bryce Van Dyk 9b4004deff Bug 1336367 - Move AudioTrackEncoder Segment init logic into new method. r=pehrsons
The AudioTrackEncoder has logic to attempt to init when given an AudioSegment.
This logic has previously been part of NotifyQueuedTrackChanges. This
changeset moves the logic to its own method. This allows for finer testing of
the init attempt behaviour.

MozReview-Commit-ID: Der1iM9J8fr
2017-09-14 07:19:27 +12:00
Andreas Pehrson dc87b1f28d Bug 1333341 - Fix accumulating rounding error in VideoTrackEncoder. r=jesup
MozReview-Commit-ID: GoVNRqvZPSF
2017-01-24 16:18:48 +01:00
Andreas Pehrson ba52ac2259 Bug 1330918 - Use timestamps for frames in VideoTrackEncoder. r=bechen,jesup
This makes VideoTrackEncoder use timestamps when it passes frames to
VP8TrackEncoder. It also rewrites the chunks' durations and bases them on said
timestamps. This should mean that VP8TrackEncoder can continue passing durations
to the encoder as it does today.

MozReview-Commit-ID: GaUsF5PR4ZN
2017-01-19 15:14:02 +01:00
Wes Kocher 68b5235000 Backed out 2 changesets (bug 1330918) for frequent gtest failures a=backout
Backed out changeset aedd9a68f2c0 (bug 1330918)
Backed out changeset b2d8a93a50a8 (bug 1330918)

MozReview-Commit-ID: FhQrvvYY8LQ
2017-01-18 15:21:44 -08:00
Andreas Pehrson daff68d2ca Bug 1330918 - Use timestamps for frames in VideoTrackEncoder. r=bechen,jesup
This makes VideoTrackEncoder use timestamps when it passes frames to
VP8TrackEncoder. It also rewrites the chunks' durations and bases them on said
timestamps. This should mean that VP8TrackEncoder can continue passing durations
to the encoder as it does today.

MozReview-Commit-ID: GaUsF5PR4ZN
2017-01-18 20:08:23 +01:00
ctai 9fc3c1d44f Bug 1300871 - Rollback to use original duration in video case. r=jesup
MozReview-Commit-ID: 2gK8vvBKtkC
2016-09-08 13:46:48 +08:00
Chia-hung Tai 20d1a85033 Bug 1201363 - MediaStreamVideoSink for MediaRecorder case. r=jesup
Add MediaStreamVideoRecorderSink into MediaEncorder. In this patch, I still keep use duration to pass to TrackEncoders. Don't want to make this bug too big and out of control. We can file a new bug to change TrackEncoders use TimeStamp only.

MozReview-Commit-ID: KGftzulZynj
2016-06-15 16:48:44 +01:00
Sebastian Hengst 4f60b78e4f Backed out changeset 64b256cf2807 (bug 1201363) 2016-08-03 19:33:24 +02:00
Chia-hung Tai 598c3502ee Bug 1201363 - MediaStreamVideoSink for MediaRecorder case. r=jesup
Add MediaStreamVideoRecorderSink into MediaEncorder. In this patch, I still keep use duration to pass to TrackEncoders. Don't want to make this bug too big and out of control. We can file a new bug to change TrackEncoders use TimeStamp only.

MozReview-Commit-ID: KGftzulZynj
2016-06-15 16:48:44 +01:00
Carsten "Tomcat" Book d9ddef2b28 Backed out changeset 5b926a6a6e4e (bug 1201363) 2016-08-02 12:53:49 +02:00
Chia-hung Tai f28c928029 Bug 1201363 - MediaStreamVideoSink for MediaRecorder case. r=jesup
Add MediaStreamVideoRecorderSink into MediaEncorder. In this patch, I still keep use duration to pass to TrackEncoders. Don't want to make this bug too big and out of control. We can file a new bug to change TrackEncoders use TimeStamp only.

MozReview-Commit-ID: KGftzulZynj
2016-06-15 16:48:44 +01:00
ctai 247106d0a0 Bug 1266646 - Move group of MediaStreamListener to a new header file. r=pehrsons
This can reduce the include header dependency. MediaStreamVideoSink will inherit from DirectMediaStreamTrackListener. But we can't use forward declaration on MediaStreamListener because the usage of nsTArray<RefPtr<MediaStreamVideoSink>>.

MozReview-Commit-ID: 328s4Kw9NvW
2016-06-30 15:07:48 +08:00
ctai 8352ffa4ea Bug 1266644 - Rename StreamBuffer to StreamTracks. r=jesup r=pehrsons
Rename StreamBuffer to StreamTracks. We still need a place to keep the track information in every MediaStream, even the StreamBuffer::Track::mSegment is empty.
2016-01-26 10:49:01 +08:00
bechen c8501f1c06 Bug 1261007 - Part 1 - Force to send video sample into encoder if we got the same video sample more than 1 seconds. Enable testcases. r=jolin
MozReview-Commit-ID: GXFZVqDUChM
2016-04-13 17:10:55 +08:00
Jean-Yves Avenard 4ebfbe827a Bug 1240411: P9. Clean up media headers. r=jwwang
Remove redundant virtual keyword and add missing override if any.
2016-01-19 19:47:36 +11:00
Benjamin Chen 46765dbf50 Bug 1198157 - Call |NotifyEndOfStream| if the encoder can't been initialized after 30 seconds. r=jwwang 2016-01-06 15:42:08 +08:00
Maire Reavy 72e9a4b006 Bug 1161276: part 2 - pass bitrates to track encoders for MediaRecorder r=roc 2015-06-08 11:47:28 +08:00
Wes Kocher 1c7902b350 Backed out 3 changesets (bug 1161276) for test_mediarecorder_bitrate.html failures CLOSED TREE
Backed out changeset 9187f4d2518f (bug 1161276)
Backed out changeset 4e8f28b17300 (bug 1161276)
Backed out changeset cf05881e89ed (bug 1161276)
2015-09-17 13:06:41 -07:00
Maire Reavy a7ee13a592 Bug 1161276: part 2 - pass bitrates to track encoders for MediaRecorder r=roc 2015-06-08 11:47:28 +08:00
Paul Adenot 8a68bb59d7 Bug 901633 - Part 3 - Fix TrackEncoder to use the new AudioChunk methods. r=jesup 2015-07-29 18:25:34 +02:00
Birunthan Mohanathas a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Eric Rahm 06d4f75aa8 Bug 1163201 - Part 1: Remove instances of #ifdef PR_LOGGING in dom/. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-14 10:13:23 -07:00
Ehsan Akhgari ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Robert O'Callahan d9dae40392 Bug 1061046. Part 19: Eliminate TrackTicks in favour of StreamTime. r=karlt 2014-09-18 17:20:43 +12:00
Robert O'Callahan 462ddb84f9 Bug 1061046. Part 11: Remove callback rate parameters. r=karlt 2014-09-18 11:51:13 +12:00
Birunthan Mohanathas 417b400d55 Bug 946065 - Part 10: Move content/media/ to dom/. r=peterv 2014-10-25 20:24:36 +03:00