How to fix “FFmpeg command cannot work when multiple mp3 file to process into one” on server side

安稳与你 提交于 2019-12-08 13:35:02

问题


I am using FFmpeg in my php yii2 project. FFmpeg working fine in my project but one major problem is execute FFmpeg command with multiple input file. When i try to use single file to process in ffmpeg command then it works. so, how can i fix this problem? I am using hostGator shared plan for my project. Please, help if is there any process limit or file open limit on server that i don't know.

I have tried using this command in php exec():

ffmpeg -y -i /uploads/ac/10122018-09351115-a94rlvlawvikskb4vdrca.mp3 -i /uploads/ac/09012019-035928988-assknyrk8oujccwevir7.mp3 -f lavfi -i anullsrc -filter_complex "[2]atrim=duration=3[g0];[2]atrim=duration=1[g1];[2]atrim=duration=5[g2];[g0][0][g1][1][g2]concat=n=5:v=0:a=1" /uploads/jm/concat.mp3 2>&1

Above command works local side but not working on server side.

output on server side with error code 1:
Press [q] to stop, [?] for help
pthread_create failed: Resource temporarily unavailable. Try to increase `ulimit -v` or decrease `ulimit -s`.
Conversion failed!

ulimit -v
unlimited

ulimit -s
15240

来源:https://stackoverflow.com/questions/54568741/how-to-fix-ffmpeg-command-cannot-work-when-multiple-mp3-file-to-process-into-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!