How can I validate a video file from a script?

后端 未结 5 1249
一个人的身影
一个人的身影 2021-02-09 03:17

I have a server with lots of video files. After a restore, I noticed that the checksum of a couple of files changed. Since I don\'t have checksums for all files, I wanted write

5条回答
  •  盖世英雄少女心
    2021-02-09 03:49

    As mplayer has options to convert from one video format to another that might be good enough for such a test assuming mencoder returns an error if it can not decode the input file (I have not tested that). This would work similar to the image test you mentioned (convert image.jpg /tmp/test.png)

提交回复
热议问题