Do you know of an easy way to detect the frame rate of a specific file?
Mediainfo. # apt-get install mediainfo
DESCRIPTION
MediaInfo supplies technical and tag information about a video or audio
file
What information can I get from MediaInfo?
- General: title, author, director, album, track number, date, duration...
- Video: codec, aspect, fps, bitrate...
- Audio: codec, sample rate, channels, language, bitrate...
- Text: language of subtitle
- Chapters: number of chapters, list of chapters
What format does MediaInfo support?
- Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, MPEG-4, DVD (VOB)...
- Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...
- Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF...
- Subtitles: SRT, SSA, ASS, SAMI...
What can I do with it?
- Read many video and audio file formats
- View information in different formats (text, sheet, tree, HTML...)
- Customise these viewing formats
- Export information as text, CSV, HTML...
- Graphical Interface, Command Line, or library versions available
EXAMPLES
Display information about a video file
$ mediainfo foo.mkv
Display aspect ratio
$ mediainfo --Inform="Video;%DisplayAspectRatio%" foo.mkv
$ mediainfo --Inform="Video;file://Video.txt" foo.mkv
Both forms are equivalent if Video.txt contains:
%DisplayAspectRatio%
Display aspect ration and audio format
$ mediainfo --Inform="file://Text.txt foo.mkv
If Text.txt contains:
- "Video;%DisplayAspectRatio%"
Then the display aspect ratio is printed out.
- "Audio;%Format%"
Then the audio format is printed out.
HTH!
/Mike