2009-01-19, 19:18
Yeah sure. It does not use MediaInfo, just the ffmpeg wrappers what are already in use for playing files/generating thumbnails. There are two ways it can get the information
1) When a video is played, and there is no "streaminfo" available, it saves the information about the first video and audio stream to the database.
2) The alternative is that you can use the scanner to preload streaminfo for things you haven't played yet. In this case, information about the highest resolution video stream is saved, and the audio stream with the highest channel count. I'm not sure what I'll use to trigger that an item will be background scanned though, because it does take a non-negligible amount of time. That's kinda where I am now with it, but haven't had the energy to work it out yet.
Information pulled:
Video Codec
Video Width -> becomes VideoResolution
Audio Codec
Audio Channel Count
Considering adding these as well:
Audio Language (of the primary audio track)
Subtitle Language (of the first subtitle track)
Video Height -> to calculate VideoAspect
1) When a video is played, and there is no "streaminfo" available, it saves the information about the first video and audio stream to the database.
2) The alternative is that you can use the scanner to preload streaminfo for things you haven't played yet. In this case, information about the highest resolution video stream is saved, and the audio stream with the highest channel count. I'm not sure what I'll use to trigger that an item will be background scanned though, because it does take a non-negligible amount of time. That's kinda where I am now with it, but haven't had the energy to work it out yet.
Information pulled:
Video Codec
Video Width -> becomes VideoResolution
Audio Codec
Audio Channel Count
Considering adding these as well:
Audio Language (of the primary audio track)
Subtitle Language (of the first subtitle track)
Video Height -> to calculate VideoAspect