1. 18 Oct, 2022 6 commits
  2. 17 Oct, 2022 2 commits
  3. 14 Oct, 2022 5 commits
  4. 20 Oct, 2022 1 commit
  5. 13 Oct, 2022 4 commits
  6. 12 Oct, 2022 3 commits
    • Add Cea608DecoderTest · 3aca9bc0
      When debugging and fixing Issue: google/ExoPlayer#10666 I wanted to write a regression
      test, but needed to add a test first... This is just a small bit of
      coverage to start with. It checks the field/channel filtering works
      correctly, but doesn't check any styling info. It also doesn't test
      'pop on' subtitles (i.e. when the subtitle isn't shown until a 'end of
      subtitle' signal is received).
      
      PiperOrigin-RevId: 480644568
      (cherry picked from commit 6052212c)
      ibaker committed
    • Demo: Shorten trim range from 60 seconds to 10 seconds. · 4198ddeb
      Most demo videos aren't very long, and the default demo video is only 10 seconds.
      
      Shorten the maximum trim duration to 10 seconds, to demonstrate transformer functionality more easily, and allow this to be used more easily when trimming short sections of a longer video (ex. to make test clips)
      
      PiperOrigin-RevId: 480602037
      (cherry picked from commit 3142a212)
      huangdarwin committed
    • Demo: Hide player controls by default. · 22445491
      Player controls are somewhat distracting when showing the difference between the
      input and output video, as they obscure and darken the video players.
      
      PiperOrigin-RevId: 480597804
      (cherry picked from commit 91a61cec)
      huangdarwin committed
  7. 11 Oct, 2022 2 commits
  8. 10 Oct, 2022 2 commits
    • Treat NO_VALUE as zero when adding up total required bitrate · dc805232
      We currently use the literal -1 (=NO_VALUE) when adding up the
      total. Tracks without known bitrate can be ignored in the
      calculation, but we should use an explicit value of 0.
      
      #minor-release
      
      Issue: google/ExoPlayer#10664
      PiperOrigin-RevId: 480048126
      (cherry picked from commit af19e0ea)
      tonihei committed
    • Adjust track selection with Dolby Vision if display does not support · e8a5ac91
      If the sample type is Dolby Vision and the display does not support Dolby Vision, then the capabilities DecoderSupport flag is set to DECODER_SUPPORT_FALLBACK_MIMETYPE. This denotes that the renderer will use a decoder for a fallback mimetype if possible. This alters track selection as tracks with DecoderSupport DECODER_SUPPORT_PRIMARY are preferred.
      
      UnitTests included
      -DefaultTrackSelector test that checks track selection reordering with DECODER_SUPPORT_FALLBACK_MIMETYPE
      -MediaCodecVideoRenderer test that checks setting of DecoderSupport flag based on Display's Dolby Vision support
      
      Issue: google/ExoPlayer#8944
      PiperOrigin-RevId: 480040876
      (cherry picked from commit a366590a)
      michaelkatz committed
  9. 07 Oct, 2022 4 commits
  10. 06 Oct, 2022 2 commits
    • Add a FrameProcessor flag to drop the processed frame · 80818045
      This mode is supported by using `C.TIME_UNSET` (which is a negative value). The
      new logic decouples the value of `C.TIME_UNSET` and the frame dropping
      behaviour.
      
      PiperOrigin-RevId: 479368880
      (cherry picked from commit ccab9fba)
      claincly committed
    • Provide access to original media timestamps in AudioSink. · d2f7fb1d
      * Add `setOutputStreamOffsetUs(long)` method in `AudioSink`.
      * Add private methods `setOutputStreamOffsetUs(long)` method in `MediaCodecRenderer` and `DecoderAudioRenderer`.
      * Add protected method `onOutputStreamOffsetUs(long)` method in `MediaCodecRenderer`, in which:
        * `MediaCodecRenderer` itself will be no-op for this method.
        * `MediaCodecAudioRenderer` will propagate this value to its `audioSink`.
      * Add logics in `DecoderAudioRenderer` to calculate `outputStreamOffsetUs`.
      
      PiperOrigin-RevId: 479265429
      (cherry picked from commit 4c732410)
      tianyifeng committed
  11. 05 Oct, 2022 3 commits
    • Fix RequestMetadata JavaDoc link to point to the right MediaController. · e37f16a7
      The JavaDoc of RequestMetadata should point to the media3 controller,
      not the platform one.
      
      PiperOrigin-RevId: 479047924
      (cherry picked from commit 08895899)
      tonihei committed
    • Add FrameProcessor functionality to release a frame immediately · 92ceeda5
      Currently `FrameProcessor.releaseOutputFrame()` method supports
      
      Release at a specific system time
      Drops the frame
      This API is not that convenient to use when the caller wants to release a frame, now, regardless of the release time. A use case is to release (present) a frame when no frame is shown for a while, and it's thus better to just release the frame, now.
      
      Currently if MCVR wants a frame to be rendered now, MCVR calls release frame with a set offset like 10us: `releaseOutputFrame(System.nanoTime() + 10_000)`. The 10us offset is to prevent the frame processor dropping the frame, due to thread hopping delays.
      
      To make the API better usable, consider adding a mode for releasing the frame now, like (bold marks the new mode)
      
      - Use C.TIME_UNSET to drop
      - **Use -1 to release the frame immediately, or**
      - Use an actual release time.
      
      PiperOrigin-RevId: 479044215
      (cherry picked from commit ff8dd0b4)
      claincly committed
    • Add button to show/hide input player in TransformerActivity · 997cdf37
      PiperOrigin-RevId: 479003655
      (cherry picked from commit 20c1ae14)
      Googler committed
  12. 04 Oct, 2022 1 commit
    • HDR: Check isToneMappingApplied in HDR editing test. · a06b0ba5
      Assert that tone mapping is applied when an HDR edit cannot be HDR, but is successfully tone mapped. Meanwhile, assert that fallback, which is applied after codec configuration (which throws the "Tone-mapping requested but not supported by the decoder" error) is not applied when that error is called.
      
      PiperOrigin-RevId: 478762951
      (cherry picked from commit 36e41059)
      huangdarwin committed
  13. 03 Oct, 2022 1 commit
  14. 30 Sep, 2022 3 commits
  15. 29 Sep, 2022 1 commit