I\'m trying to record the screen with MediaProjection API. I want to trim the video that was recorded by the media projection. Is there a way to do that without using any 3r
I am trimming with above code. The video file has 3 trackformats
{track-id=1, file-format=video/mp4, level=1024, mime=video/avc, frame-count=5427, profile=8, language=, display-width=810, csd-1=java.nio.HeapByteBuffer[pos=0 lim=8 cap=8], durationUs=181080900, display-height=1440, width=810, rotation-degrees=0, max-input-size=874801, frame-rate=30, height=1440, csd-0=java.nio.HeapByteBuffer[pos=0 lim=33 cap=33]}
{max-bitrate=125588, sample-rate=44100, track-id=2, file-format=video/mp4, mime=audio/mp4a-latm, profile=2, bitrate=125588, language=, aac-profile=2, durationUs=181138866, aac-format-adif=0, channel-count=2, max-input-size=65538, csd-0=java.nio.HeapByteBuffer[pos=0 lim=2 cap=2]}
{text-format-data=java.nio.HeapByteBuffer[pos=0 lim=56 cap=56], track-id=3, file-format=video/mp4, durationUs=179640000, mime=text/3gpp-tt, language=, max-input-size=65536}
So I can,t trim that video. It throws MPEG4Writer: Track (text/3gpp-tt) other than video/audio/metadata is not supported MPEG4Writer: Unsupported mime 'text/3gpp-tt'
But i am only trimming video file. Kindly anyone resolve my problem