Is there a way to use ffmpeg to determine the encoding of a file before transcoding?

前端 未结 3 1507
遇见更好的自我
遇见更好的自我 2020-12-01 06:34

I am planning to use ffmpeg to ensure all video files uploaded to my website are encoded as mp4 h264.

Rather than automatically processing every file I would like t

3条回答
  •  时光说笑
    2020-12-01 07:02

    An alternative is to use ffprobe which is included with ffmpeg. The following will give the most terse output I can find from the ffmpeg tools:

    ffprobe -hide_banner -stats -i myfile.avi
    

提交回复
热议问题