View Full Version : Good method to query file data
Gregleto
15th November 2013, 17:30
Hi all,
We're looking for a simple method for querying the metadata of a video file to determine the average bitrate. Is there a simple program or script or other method that we can implement for this? We need to be able to pass that parameter with the upload to our CDN to enable rate limiting.
Thanks for your help in advance.
Gregleto
LoRd_MuldeR
15th November 2013, 18:04
MedaInfo.exe (http://mediaarea.net/en/MediaInfo) "c:\Path to your file\foo.bar"
General
Complete name : E:\tears_of_steel_1080p.mkv
Format : Matroska
Format version : Version 2
File size : 549 MiB
Duration : 12mn 14s
Overall bit rate : 6 273 Kbps
Writing application : HandBrake 0.9.8
Writing library : libmkv 0.6.5
Video
ID : 1
Format : Theora
Codec ID : V_THEORA
Duration : 12mn 14s
Nominal bit rate : 6 100 Kbps
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 24.000 fps
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.165
Writing library : Xiph.Org libtheora 1.1 20090822 (Thusnelda)
Language : English
Default : Yes
Forced : No
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 12mn 14s
Channel count : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Language : English
Default : Yes
Forced : No
Gregleto
15th November 2013, 18:27
Thanks. I expected that would be the suggestion. I think we've already found another tool that may work better for us. But if that doesn't pan out it looks like MediaInfo will do the trick.
Thanks for the input.
Gregleto
Gregleto
15th November 2013, 18:45
BTW, the solution we decided on is a Ruby gem called Rvideo. Works best for us in our Ruby environment.
Gregleto
Kempy72
26th November 2013, 02:37
Open many URLs at once (http://www.openurls.org/) is a great tool
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.