bhuvnesh123 / FFmpeg-Video-Editor-Android

Sample android project using ffmpeg for cutting and compressing video,reversing video,extracting image frames from video,extracting audio from video,add fade in fade out effect,create fast and slow motion video
540 stars 165 forks source link

Select images and Audio to convert into video #36

Open sailywebvillee opened 4 years ago

sailywebvillee commented 4 years ago

Hello @bhuvnesh123 I tried a few commands to make a video with a single image & audio but no luck with those commands. Can someone guide me with this?

And by using the command I am getting error -

I am using command -

String[] complexCommand = {"-y", "-loop","1","-framerate","1", "-i" ,yourRealImage ,"-i" ,yourRealAudio,"-c:v", "libx264","-preset","veryslow","-crf","0","-c:a","copy", "-shortest", filePath};

Started command : ffmpeg [Ljava.lang.String;@e596883 progress : x264 [error]: malloc of size 60450080 failed Started command : ffmpeg [Ljava.lang.String;@e596883 progress : Video encoding failed

Can you help me with this?