These are chat archives for WritingMinds/ffmpeg-android-java

29th
Apr 2017
deepak sood
@deepaksood619
Apr 29 2017 02:58
Hello guys
i am trying to merge image and audio to make a video, but the command that perfectly runs of windows ffmpeg executable doesn't work in android, it gives error "Error while opening encoder for output stream", I am using writing minds application to test the command. Also the command that runs does create a video but with no audio.
Please help
Command that doesn't run - -y -loop 1 -i /storage/emulated/0/VideoEditor/download.jpg -i /storage/emulated/0/VideoEditor/audio.mp3 -shortest /storage/emulated/0/VideoEditor/cut1.mp4
Command that does run with no audio - -y -loop 1 -i /storage/emulated/0/VideoEditor/download.jpg -i /storage/emulated/0/VideoEditor/audio_20170426_224342.mp3 -shortest /storage/emulated/0/VideoEditor/intermediate_0.ts
I have tried different formats with this configuration too like copying the audio using -c copy with different codecs.
But nothing worked.
Is there something i am missing or doing wrong?