Relative Content

Tag Archive for javaandroidffmpegandroid-ffmpeg

Cutting video with FFMPEG produces corrupted video file

Im using FFmpeg library for trimming videos. The problem comes when I try to get a thumbnail from that video using MediaMetadataRetriever – getFrameAtTime(); and on my logcat I can see this error – getFrameAtTime: videoFrame is a NULL pointer. This is the command I use to cut/trim the video files – “-ss”, TrimmerUtils.formatCSeconds(lastMinValue),
“-i”, String.valueOf(filePath),
“-t”,
TrimmerUtils.formatCSeconds(lastMaxValue – lastMinValue),
“-async”, “1”, “-strict”, “-2”, “-c”, “copy”, outputPath
Im using Android Studio with Java if that does matter. Im only assuming its producing a corrupt file.