stuinzuri
24th September 2009, 23:15
I'm looking for a command line tool to query video files for information on their tracks, codecs, lengths, etc. My immediate concern is MP4 files, but want to expand to others later.
I had been using mp4info (part of the seemingly defunct mpeg4ip project) but getting that running on my target installations has been...problematic. E.g.:
manoa:Movies stu$ mp4info cochlear.mp4
mp4info version 1.5.0.1
cochlear.mp4:
Track Type Info
1 video H264 Baseline@2.1, 2676.760 secs, 811 kbps, 496x280 @ 25.000000 fps
2 audio MPEG-4 AAC LC, 2676.703 secs, 0 kbps, 44100 Hz
Metadata Tool: Lavf52.38.0
manoa:Movies stu$
ffmpeg does not, to my knowledge, have a query mode. (If it does, please edumacate me.)
The output will be consumed by my own code.
tia,
stu
I had been using mp4info (part of the seemingly defunct mpeg4ip project) but getting that running on my target installations has been...problematic. E.g.:
manoa:Movies stu$ mp4info cochlear.mp4
mp4info version 1.5.0.1
cochlear.mp4:
Track Type Info
1 video H264 Baseline@2.1, 2676.760 secs, 811 kbps, 496x280 @ 25.000000 fps
2 audio MPEG-4 AAC LC, 2676.703 secs, 0 kbps, 44100 Hz
Metadata Tool: Lavf52.38.0
manoa:Movies stu$
ffmpeg does not, to my knowledge, have a query mode. (If it does, please edumacate me.)
The output will be consumed by my own code.
tia,
stu