You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I try to create a video using Transformer it creates the video however When I try to preview the composition I get the following error
FATAL EXCEPTION: main (Ask Gemini)
Process: org.own.media14beta, PID: 20379
java.lang.IllegalArgumentException
at androidx.media3.common.util.Assertions.checkArgument(Assertions.java:40)
at androidx.media3.transformer.EditedMediaItem.getPresentationDurationUs(EditedMediaItem.java:297)
at androidx.media3.transformer.CompositionPlayer.getSequenceDurationUs(CompositionPlayer.java:809)
at androidx.media3.transformer.CompositionPlayer.getCompositionDurationUs(CompositionPlayer.java:792)
at androidx.media3.transformer.CompositionPlayer.setCompositionInternal(CompositionPlayer.java:586)
at androidx.media3.transformer.CompositionPlayer.setComposition(CompositionPlayer.java:321)
at org.own.media14beta.ExoPlayerTry.PreviewComposition(ExoPlayerTry.java:218)
at org.own.media14beta.ExoPlayerTry.lambda$onCreate$3$org-own-media14beta-ExoPlayerTry(ExoPlayerTry.java:138)
at org.own.media14beta.ExoPlayerTry$$ExternalSyntheticLambda3.onClick(D8$$SyntheticClass:0)
at android.view.View.performClick(View.java:8043)
at android.widget.TextView.performClick(TextView.java:17817)
at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1218)
at android.view.View.performClickInternal(View.java:8020)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:31867)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8913)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
The text was updated successfully, but these errors were encountered:
Hi @pawaom ,
Please keep in mind that CompositionPlayer is still under active development and work-in-progress and @RestrictTo to indicate that this API should not be used outside of the library.
This type of Composition that you are trying to build is not supported at the moment and this is the reason you are not able to preview your Composition. CompositionPlayer only supports single video input at the moment.
Please keep an eye on future releases for any announcements.
droid-girl
changed the title
Preview composition crashes with EditedMediaItem.getPresentationDurationUs error
Support multiple video sequences in CompositionPlayer
Jul 22, 2024
Preview composition crashes with EditedMediaItem.getPresentationDurationUs error using media3_version = "1.4.0-alpha02"
I am trying this code to create a PIP video effect
This is the Preview composition method
and the my composition method
when I try to create a video using Transformer it creates the video however When I try to preview the composition I get the following error
The text was updated successfully, but these errors were encountered: