Wednesday, July 29, 2015

How to test video files using ffmpeg

1 Download FFmpeg

2 Extract the files using 7-Zip

3 Set the Environment variable. Open cmd and type ffplay -version to verify.



4 Download my test video files. 

test1.mp4 = 5 second video

test2.mp4 = 0 bytes video

test3.mp3 = corrupted video file

[corrupt your own files]


* Set the report name.

SET FFREPORT=file=ffreport.log





5 Test the video file.

cd C:\Users\ANLALK\Videos

SET FFREPORT=file=ffreport.log

ffplay -autoexit -report C:\Users\ANLALK\Videos\test3.mp4



6 Either read the console output or the report.