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
Hi, I'm developing a Flutter app where I integrate ADB and scrcpy to create a new virtual display and launch specific Android apps. The command I use is as follows:
Initially, this works perfectly. However, after executing this command multiple times, I run into the following error: android.media.MediaCodec$CodecException: Error 0xfffffff4
Is there a limit on the number of virtual displays Android or scrcpy can handle?
There is a limit on how much content your hardware encoder can encode simultaneously.
If you open 10 virtual displays in parallel, it means that your hardware encoder must encode 10 videos in parallel. It probably returns an error when its resources are exhausted.
How can I ensure proper cleanup of virtual displays between commands?
If you close scrcpy, the virtual displays are destroyed.
Are there known issues with scrcpy and MediaCodec causing this error?
Is there a way to use a single display and launch two or more apps in one scrcpy command, like scrcpy --new-display=1920x1080 --start-app=org.videolan.vlc + other app ? Or is there another way to use different encoders each time?"
Hi, I'm developing a Flutter app where I integrate ADB and scrcpy to create a new virtual display and launch specific Android apps. The command I use is as follows:
scrcpy -s {device_ip} --always-on-top --new-display --start-app=${selected_app} --window-title=${app['name']}
Initially, this works perfectly. However, after executing this command multiple times, I run into the following error: android.media.MediaCodec$CodecException: Error 0xfffffff4
Environment:
Device: oneplus 11
Android Version: 15
Scrcpy Version: 3.1
ADB Version: 35.0.2-12147458
Questions:
For reference, here’s my ADB-Scrcpy software repository : https://github.com/Shrey113/ADB-connection
The text was updated successfully, but these errors were encountered: