Inspect video file using ffprobe (part of ffmpeg)
#Inspecting video files with ffprobe (part of ffmpeg)
Today I needed to inspect a video file. So I thought: "Do it with ffmpeg!". I had a older version of ffmpeg installed via macports. So this is the process i went through.
If you don't have it already:
Install XCode and the XCode command-line tools
Update or install ffmpeg using macports
sudo port selfupdate
port search ffmepg
port outdated
sudo port upgrade outdated
sudo port upgrade ffmpeg
###Now inspect a file using ffprobe (comes bundled with ffmpeg)
# This redirects the ffprobe help to a file
ffprobe -h > ffprobe_help.txt
# This creates a report next to your file
ffprobe -report SOMEFILE.mp4
# This creates your report as .json file next to your file
ffprobe -v quiet -print_format json -show_format -show_streams SOMEFILE.mp4 > ffprobe.json
###Sources: