How to convert videos with ffmpeg

后端 未结 2 380
独厮守ぢ
独厮守ぢ 2020-12-22 12:39

I want to convert a video from one format to another using ffmpeg. I try lots of code but it does not convert the video.

For example:

exec(\"

相关标签:
2条回答
  • 2020-12-22 13:03

    Display FFMPEG Error Output:

    Command Line:

    $command = "ffmpeg -i mickey.flv -ar 22050 -ab 32 -f avi -s 320x240 mickey.avi ";
    
    exec($command . ' 2>&1', $output);
    
    print_r($output);
    
    0 讨论(0)
  • 2020-12-22 13:17

    It is impossible to pinpoint the problem, because you are executing an external application and any number of things could be going wrong in the process.

    See this question for a number of very good hints to debug exec() commands.

    0 讨论(0)
提交回复
热议问题