Skip to content

Instantly share code, notes, and snippets.

View danimask's full-sized avatar

Daniyal Hussain danimask

  • Rawalpindi,Pakistan
View GitHub Profile
@danimask
danimask / VideoUtils.java
Created January 25, 2024 11:39 — forked from ArsalRaza/VideoUtils.java
Extract Audio from Video, Mute Video, Crop Video from start, Crop Video from end Android MediaMuxer - JAVA
import android.annotation.SuppressLint;
import android.media.MediaCodec;
import android.media.MediaExtractor;
import android.media.MediaFormat;
import android.media.MediaMetadataRetriever;
import android.media.MediaMuxer;
import android.util.Log;
import java.io.IOException;
import java.nio.ByteBuffer;