2014-11-05, 00:10
(2014-11-04, 20:17)DanCooper Wrote:(2014-11-04, 19:15)war59312 Wrote: Might want to add to "Known Issues" that "<bitrate>0</bitrate>" is being used for movies atm.
Audio? Video?
Do you have checked what MediaInfo says?
We have fixed some issues in metadata, but sometimes MediaInfo can't read all informations from files.
video
OK does appear its because MediaInfo is unable to show it either...
Full nfo for example:
Code:
General
Complete name : F:\boxee\Movies (HD)\Lone Survivor (2013)\Lone.Survivor.2013.1080p.BluRay.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 12.4 GiB
Duration : 2h 1mn
Overall bit rate mode : Variable
Overall bit rate : 14.7 Mbps
Encoded date : UTC 2014-05-06 10:48:08
Writing application : mkvmerge v6.8.0 ('Theme for Great Cities') 64bit built on Mar 2 2014 21:34:26
Writing library : libebml v1.3.0 + libmatroska v1.4.1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 1mn
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Language : English
Default : Yes
Forced : No
Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA / Core
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 2h 1mn
Bit rate mode : Variable
Bit rate : Unknown / 1 509 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossless / Lossy
Language : English
Default : Yes
Forced : No
Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : No
Forced : No
Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : Swedish
Default : No
Forced : No
Text #3
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : Norwegian
Default : No
Forced : No
Text #4
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : Danish
Default : No
Forced : No
Text #5
ID : 7
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : Finnish
Default : No
Forced : No
Menu
00:00:00.000 : en:00:00:00.000
00:05:59.192 : en:00:05:59.192
00:09:59.057 : en:00:09:59.057
00:17:18.371 : en:00:17:18.371
00:24:19.750 : en:00:24:19.750
00:33:20.499 : en:00:33:20.499
00:45:49.580 : en:00:45:49.580
00:53:06.934 : en:00:53:06.934
01:01:54.211 : en:01:01:54.211
01:09:18.780 : en:01:09:18.780
01:16:07.188 : en:01:16:07.188
01:22:24.481 : en:01:22:24.481
01:28:50.492 : en:01:28:50.492
01:36:46.426 : en:01:36:46.426
01:43:45.678 : en:01:43:45.678
01:52:13.227 : en:01:52:13.227
So instead of displaying a 0 bitrate which is useless how about instead take the "Overall bit rate" minus the audio bitrate and that gives you the video bitrate. You would think MediaInfo would do that too.
Of course, that assumes audio bitrate is not 0 and there is an "Overall bit rate", but like in this example there is. So better than having useless 0 bitrate or nothing.
Then in the other cases if there is no "Overall bit rate" or no audio bitrate then there is no way to calculate it so just don't add it to nfo.