[FFmpeg-user] [help]What are the parameter of compression ration, and Slow 1x, 2x, 3x , Also with Fast
Hello, For Android:- I'd like to know the parameter of the video Compression ratio with default orientation. Currently, I am using for Compress video (-y", "-i", yourRealPath, "-s", "160x120", "-r", "25", "-vcodec", "mpeg4", "-b:v", "150k", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath) *-- Using this for Fast need parameter which help to set 1x 2x 3x fast*. {"-y", "-i", yourRealPath, "-filter_complex", "[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]", "-map", "[v]", "-map", "[a]", "-b:v", "2097k", "-r", "60", "-vcodec", "mpeg4", filePath} *-- Using this for Slow need parameter which help to set 1x 2x 3x Slow. * {"-y", "-i", yourRealPath, "-filter_complex", "[0:v]setpts=2.0*PTS[v];[0:a]atempo=0.7[a]", "-map", "[v]", "-map", "[a]", "-b:v", "2097k", "-r", "60", "-vcodec", "mpeg4", filePath} Thanks. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] How to join mp3 with array of images(paths from text file) along with seconds frame wise?
Hello All, I have used older FFmpeg which is currently not working in Android 10 and later, I started learning this library and I need help for a the command that combines mp3 with images(array) and also duration define by sec. by images wise **Older I used ** String[] inputCode = application.getMusicData() != null ? new String[]{ FileUtils.getFFmpeg(this), "-r", String.valueOf(BitmapDescriptorFactory.HUE_ORANGE / application.getSecond()), "-f", "concat", "-safe", "0", "-i", r0.getAbsolutePath(), "-i", audioFile.getAbsolutePath(), "-strict", "experimental", "-r", "30", "-t", String.valueOf(toatalSecond), "-c:v", "libx264", "-preset", "ultrafast", "-pix_fmt", "yuv420p", "-ac", "2", videoPath} : new String[]{FileUtils.getFFmpeg(this), "-r", String.valueOf(BitmapDescriptorFactory.HUE_ORANGE / application.getSecond()), "-f", "concat", "-i", r0.getAbsolutePath(), "-r", "30", "-c:v", "libx264", "-preset", "ultrafast", "-pix_fmt", "yuv420p", videoPath}; *Here Details of the params used in the older one.* application.getMusicData() - " it returns string value of Audio" r0.getAbsolutePath() - " text file contains List of images " totalSecond - "set for video duration" videoPath - "Output video mp4 file name along with path" *Please explain how this going to use in command for* "mobile-ffmpeg" Thanks Ravi P. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".