Capture FFMPEG output

后端 未结 4 1869
鱼传尺愫
鱼传尺愫 2020-12-29 11:24

I need to read the output from ffmpeg in order to even try the solution to my question from yesterday. This is a separate issue from my problem there, so I made a new quest

4条回答
  •  旧时难觅i
    2020-12-29 12:26

    The problem is you catch only stdout and not stderr (see Standard Streams). Change this line:

    $command = "/usr/bin/ffmpeg -i " . $src;
    

    into

    $command = "/usr/bin/ffmpeg -i " . $src . " 2>&1";
    

    and give it another try :)

提交回复
热议问题