Closed ahmedAlmasri closed 3 years ago
@tanersener I too have this issue when running "-i input.mov output.mov"
@tanersener i am also facing same issue with this command
*{"-y", "-i", videoPath, "-movflags", "+faststart", "-map_metadata", "0","-vcodec", "libx264", "-b:v", videoBitrate, "-b:a", "128k","-vf", "lutyuv=y=val2.0","-preset", "superfast","-c:a", "copy" ,mDestinationURL}**
Sorry but I don't understand why this is an issue. We all know that ffmpeg
is a library that has high memory consumption and mobile
devices have limited memory. So, it is normal to have memory issues sometimes.
What you need to do is work on your command and modify the filters/options in it to decrease the memory usage.
If you suspect ffmpeg
has a memory leak then you must make a more detailed analysis and show us that it consumes more memory than it needs.
@tanersener thanks for the reply.
but when the command running from main UI thread, its working great. when starting in the background service (like Service, Woker), and if closed the that Main Ui thread (like Activities), it stopeed working.
This project will be retired. Please consider switching to FFmpegKit.
Description memory issue when trying to convert video to timelapse using this command
-y -i input.mp4 -filter:v \"setpts=\0.0651*PTS\" output.mp4
Video Size: 10 MB Video Type: Wide-angle camera Frame dimension : 3840x2160 4K Logs
Environment