How do I enable FFMPEG logging and where can I find the FFMPEG log file?

前端 未结 8 913
庸人自扰
庸人自扰 2021-02-01 15:25

I want to be able to log FFMPEG processes because I am trying to work out how long a minute of video takes to convert to help with capacity planning of my video encoding server.

8条回答
  •  爱一瞬间的悲伤
    2021-02-01 15:56

    You must declare the reportfile as variable for console.

    Problem is all the Dokumentations you can find are not running so .. I was give 1 day of my live to find the right way ....

    Example: for batch/console

    cmd.exe /K set FFREPORT=file='C:\ffmpeg\proto\test.log':level=32 && C:\ffmpeg\bin\ffmpeg.exe -loglevel warning -report -i inputfile f outputfile

    Exemple Javascript:

    var reortlogfile = "cmd.exe /K set FFREPORT=file='C:\ffmpeg\proto\" + filename + ".log':level=32 && C:\ffmpeg\bin\ffmpeg.exe" .......;

    You can change the dir and filename how ever you want.

    Frank from Berlin

提交回复
热议问题