- 24 Feb, 2023 30 commits
-
-
Logcat had the following lines, with no other information. ``` DefaultEncoderFactory: Encoders removed for resolution: DefaultEncoderFactory: Encoders removed for bitrate: DefaultEncoderFactory: Encoders removed for bitrate mode: ``` PiperOrigin-RevId: 511470231
samrobinson committed -
PiperOrigin-RevId: 511449658
kimvde committed -
Also, allow isNoOp to default to false without the TODO, so that implementations of isNoOp must opt-in to implementing the override in order to be considered for skipping the effect (ex. for transcoding in Transformer). PiperOrigin-RevId: 511223540
huangdarwin committed -
Changes include: 1. Move the test file into muxer module 2. Code improvement 2. Remove dependency from Mp4Slicer library PiperOrigin-RevId: 511191076
sheenachhabra committed -
PiperOrigin-RevId: 511189130
kimvde committed -
Implement getMediaFormatInteger, a helper method simulating mediaformat.getInteger(name, defaultValue). This reduces the API 29 restriction from MediaFormatUtil.getColorInfo to API 24, in particular removing the method-based restriction to a constant-based restriction, so that we can reduce usage of the API 29 class. This also allows us to slightly simplify prior use-cases where we'd check containsKey and getInteger to have a default value. PiperOrigin-RevId: 511184301
huangdarwin committed -
When clipping a MediaItem with start time > 0, the audio was ending before the video. This is because: - Audio timestamps are computed based on the sample sizes, with a start time set to streamOffsetUs (i.e. the streamStartPositionUs is not taken into account). - The SamplePipeline was subtracting streamStartPositionUs from the timestamps before sending the samples to the muxer. - As a result, the audio timestamps were shifted by streamStartPositionUs, while they should be shifter by streamOffsetUs. PiperOrigin-RevId: 511175923
kimvde committed -
PiperOrigin-RevId: 511173451
kimvde committed -
Tested: Before: fusion2/7d7db2d1-1c3e-3df3-8507-73b929c6eac8 (Weekly triage) After: sponge2/4c078211-e08c-43fa-91d5-346fccc04bcd (custom run) PiperOrigin-RevId: 511157461
samrobinson committed -
* Account for `AssetLoader` output types. * Consider cases that are not audio/video specific. * Use `Format#sampleMimeType` for track specific conditions to check. * Untangle `SamplePipeline` initilization from `AssetLoader` state. PiperOrigin-RevId: 511020865
samrobinson committed -
- Add silent audio when the output contains an audio track but the current MediaItem doesn't have any audio. - Add an audio track when generateSilentAudio is set to true. PiperOrigin-RevId: 511005887
kimvde committed -
Test cases for following boxes are added: 1. stsc 2. co64 3. stss PiperOrigin-RevId: 511002841
sheenachhabra committed -
Previously, this was limited to API 29. Expand this to all API versions. Also, update the test to: (1) skip based on SDR format input instead of HDR format input (2) Check the exception message in order to disambiguate between the decoder tone mapping error, and general video format support error. PiperOrigin-RevId: 511002218
huangdarwin committed -
PiperOrigin-RevId: 511000498
samrobinson committed -
Issue: google/ExoPlayer#10992 #minor-release PiperOrigin-RevId: 510988140
tonihei committed -
Following changes are included: 1. Move test file into third_party/.../muxer/... 2. Rewrite tests for stts box and stsz box to use dump file infra instead of Mp4Slicer. 3. Remove existing test cases related to stts box which are kind of duplicate as it tries to cover the scenarios which are already covered by "DurationsVuForStts" related test cases. PiperOrigin-RevId: 510977119
sheenachhabra committed -
Unstuck the muxer if the next timestamp in the track with the minimum timestamp is larger than this minimum timestamp plus MAX_TRACK_WRITE_AHEAD_US. PiperOrigin-RevId: 510977088
kimvde committed -
Using these annotations/checkers should hopefully make it marginally harder to use the wrong input values in the API. PiperOrigin-RevId: 510966941
huangdarwin committed -
When rendering frames at a rate higher than the screen refresh rate, e.g. playing at 8x, the player is releasing multiple frames at the same release time (nanos) which are then dropped by the platform. The output buffers are available later and as a result MediaCodec cannot keep up decoding fast enough. This change skips releasing multiple video frames on the same vsync period and proactivelly drops the frame. The frame is counted as skipped rather than dropped to differentiate with frames dropped due to slow decoding. PiperOrigin-RevId: 510964976
christosts committed -
This call may cause performance overhead in some situations, for example if the AudioTrack needs to query an offload DSP for the current position. We don't need to check this multiple times per doSomeWork iteration as the value is unlikely to change in any meaningful way. PiperOrigin-RevId: 510957116
tonihei committed -
Before, if the upstream AssetLoader provides HDR to the VideoSamplePipeline when HDR_MODE_EXPERIMENTAL_FORCE_INTERPRET_HDR_AS_SDR is requested, the VideoSamplePipeline would attempt to tell the AssetLoader to output SDR, which could be accomplished via MediaCodec tone-mapping in the AssetLoader. However, this makes an assumption of the AssetLoader implementation, and AssetLoaders may not all implement support for decoder tone-mapping. Remove javadoc attempting to explain how AssetLoaders (ex. custom ones) could behave. PiperOrigin-RevId: 510956820
huangdarwin committed -
This method uses sampleRate, channelCount and pcmEncoding, so passing AudioFormat is easier. This will lead into a future change that builds the encoderInputAudioFormat from encoder.getConfigurationFormat() PiperOrigin-RevId: 510956177
samrobinson committed -
Rename: * MatrixShaderProgram to DefaultShaderProgram, and * FinalMatrixShaderProgramWrapper to FinalShaderProgramWrapper. PiperOrigin-RevId: 510498547
huangdarwin committed -
Rename ScaleToFitTransformation to ScaleAndRotateTransformation. This better represents the operations that can be accomplished using this effect. The name was originally named ScaleToFit* because it's not obvious how to scale to fit using OpenGL, and this effect handled the scaling to fit in a way that no other MatrixTransformations did. However, it's hard to discover how to rotate when skimming names of effects, so it's probably more useful to convey that this effect rotates, than that it scales to fit. PiperOrigin-RevId: 510480078
huangdarwin committed -
Format.toString unfortunately doesn't log colorInfo, and as Format holds a very large set of values, it's unclear that it should. ColorInfo is useful for codec exceptions though, so log this in ExportException.createForCodec. PiperOrigin-RevId: 510475520
huangdarwin committed -
resolving comments from https://github.com/google/ExoPlayer/commit/8aa1638fe46c02d12f59a9768422a8787e09e97c. PiperOrigin-RevId: 510457401
tofunmi committed -
#minor-release Issue: androidx/media#245 PiperOrigin-RevId: 510456793
bachinger committed -
PiperOrigin-RevId: 510441777
tofunmi committed -
PiperOrigin-RevId: 510437262
andrewlewis committed -
PiperOrigin-RevId: 510433206
sheenachhabra committed
-
- 17 Feb, 2023 10 commits
-
-
christosts committed
-
Only the version need to be updated. No changes in class or package mappings since the last release. PiperOrigin-RevId: 510385733
bachinger committed -
Also rename to forceAudioTrack PiperOrigin-RevId: 510394620
kimvde committed -
Only the version need to be updated. No changes in class or package mappings since the last release. PiperOrigin-RevId: 510385733
bachinger committed -
PiperOrigin-RevId: 510384933
kimvde committed -
PiperOrigin-RevId: 510377977
tofunmi committed -
Adds a new option to the preset file list to show an image for 5secs at 30fps. Also adds an ImageView to show the input image PiperOrigin-RevId: 510372035
tofunmi committed -
Following changes are included: 1. Move BoxesTest.java into muxer module. 2. Change test code to use dump file infra. BoxesTest.java does not cover all the boxes implemented in Boxes.java so created a WI to track it b/269471752 PiperOrigin-RevId: 510219645
sheenachhabra committed -
Otherwise, a lack of HDR decoding support will result in the tests checking output files for HDR output, like HdrEditingTest.transform_noRequestedTranscode_hdr10File_transformsOrThrows, failing. PiperOrigin-RevId: 510213020
huangdarwin committed -
This space was added by mistake in a prior CL of mine. PiperOrigin-RevId: 510157363
samrobinson committed
-