adminy / cordova-plugin-ffmpeg

16 stars 27 forks source link

Trouble formatting to h264 #15

Open mcpeakdb opened 3 years ago

mcpeakdb commented 3 years ago

Hello, I'm making good progress with using this plugin but I appear to have run into an issue. I am trying to export video files with libx264 encoding.

I can run this command to encode to mpeg4: -i input.mp4 -i slide.png -filter_complex "[1]scale=480:640[1v];[0][1v] overlay=0:0:enable=\'between(t,1,2)\'" -c:v mpeg4 output.mp4

However this similar command with libx264 returns Error Code 1: -i input.mp4 -i slide.png -filter_complex "[1]scale=480:640[1v];[0][1v] overlay=0:0:enable=\'between(t,1,2)\'" -c:v libx264 output.mp4

Does anyone know if this plugin has libx264 installed in ffmpeg? If not, is that something that could be added in a future version. If so, any ideas what I am doing wrong?

Thanks for any help!

MaximBelov commented 1 year ago

Hi you can use

https://www.npmjs.com/package/cordova-plugin-ffmpeg https://github.com/MaximBelov/cordova-plugin-ffmpeg

kenfouo commented 6 months ago

Hi you can use

https://www.npmjs.com/package/cordova-plugin-ffmpeg https://github.com/MaximBelov/cordova-plugin-ffmpeg

It's working for me