2009-06-12, 17:23
OK maybe I should have updated the .vcproj file as well. Anyway here is the latest rev with patch 0x0c for Windows.
Aspect Count
0 9242
1.777778 189
2.352941 28
1.25 8
2.424242 7
1.333333 6
2.38806 5
1.5 4
2.4 4
1.860465 3
2.397004 2
2.405389 2
2.406015 2
2.5 2
... some more with just a single occurance
<streamdetails>
<video>
<width>640</width>
<height>272</height>
<codec>MPEG-4 Visual</codec>
<formatinfo>MPEG-4 Visual</formatinfo>
<duration>1h 38mn 45s 280ms</duration>
<bitrate>854 Kbps</bitrate>
<bitratemode />
<bitratemax />
<container>.avi</container>
<codecid>XVID</codecid>
<codecidinfo />
<scantype>Progressive</scantype>
<aspectdisplayratio>2.353</aspectdisplayratio>
</video>
<audio>
<language />
<codec>MPEG Audio</codec>
<channels>2</channels>
<bitrate>124 Kbps</bitrate>
</audio>
</streamdetails>
ccMatrix Wrote:I think there is a small bug in the code. When I scan tv episodes that do not have any thumbnail then on first scan it will show thumb and flagging data. But when I leave to a different show and go back to the previous show it now only shows flagging data and no thumbs. It feels like the flagging code aborts the thumbnail stuff if flagging data is available.I'll have to look into the first issue you mentioned there. But the second issue is usually a problem with the source itself. If it does not contain display aspect ratio, I dont make a guess. I dont know if it is 'the right thing' to just use decoded frame size in absence of explicit frame ratio. Is that valid?
Edit: Some additional thing:
I tried displaying images based on listitem.VideoAspect but almost all of my movies do not have any VideoAspect information:
... some more with just a single occurance
bidossessi Wrote:@ digitalhigh
you mean this code snippet was generated by MIP?
spiff Wrote:if no par and no dar, assuming 1:1 pixels and calculating based on frame size seems like the correct thing to do to meAfter checking, I have a bunch of files with no par and dar that width/height does not give the correct aspect. I would say this is definitely not accurate. The encoding application just didn't put in the right info, and there's no way to fix it now that the original media is gone. I'd be against this based on my small (~300 file) library. Calculating a value just to have a value is just wrong, right?
CapnBry Wrote:After checking, I have a bunch of files with no par and dar that width/height does not give the correct aspect. I would say this is definitely not accurate. The encoding application just didn't put in the right info, and there's no way to fix it now that the original media is gone. I'd be against this based on my small (~300 file) library. Calculating a value just to have a value is just wrong, right?