More > JRiver Media Center 31 for Windows
Black bar detection not updating tag correctly
mattkhan:
fwiw I tried https://www.avsforum.com/threads/moviestarter.3245962/ for comparison and it's quick analysis came up with
--- Code: ---
Detected video format: 1920x1080 (SAR: 1), FPS: 23.976, bit depth: 8, EOTF: SDR, runtime: 151 min
Detected audio format: Surround51, 3D Codec: None
Analyzing meta data finished in 0.9 s
Detected black level: 16
Aspect ratio detection using MPV:
Sample added 00:03:01: crop: 1920x1080 (1.78)
Sample added 00:07:33: crop: 1920x1080 (1.78)
Sample added 00:12:05: crop: 1920x1080 (1.78)
Sample added 00:16:37: crop: 1920x1080 (1.78)
Sample added 00:21:09: crop: 1920x1080 (1.78)
Sample added 00:25:41: crop: 1920x1080 (1.78)
Sample added 00:30:13: crop: 1920x1080 (1.78)
Sample added 00:34:45: crop: 1920x1080 (1.78)
Sample added 00:39:17: crop: 1920x1080 (1.78)
Sample added 00:43:50: crop: 1920x1080 (1.78)
Sample added 00:48:22: crop: 1920x1080 (1.78)
Sample added 00:52:54: crop: 1920x796 (2.41)
Sample added 00:57:26: crop: 1920x796 (2.41)
Sample added 01:01:58: crop: 1920x796 (2.41)
Sample added 01:06:30: crop: 1920x1080 (1.78)
Sample added 01:11:02: crop: 1920x1080 (1.78)
Sample added 01:15:34: crop: 1920x796 (2.41)
Sample added 01:20:06: crop: 1920x1080 (1.78)
Sample added 01:24:38: crop: 1920x1080 (1.78)
Sample added 01:29:11: crop: 1920x1080 (1.78)
Sample added 01:33:43: crop: 1920x1080 (1.78)
Sample added 01:38:15: crop: 1920x1080 (1.78)
Sample added 01:42:47: crop: 1920x1080 (1.78)
Sample added 01:47:19: crop: 1920x1080 (1.78)
Sample added 01:51:51: crop: 1920x1080 (1.78)
Sample added 01:56:23: crop: 1920x1080 (1.78)
Sample added 02:00:55: crop: 1920x1080 (1.78)
Sample added 02:05:27: crop: 1920x796 (2.41)
Sample added 02:10:00: crop: 1918x796 (2.41)
Sample added 02:14:32: crop: 1920x796 (2.41)
Aspect ratio candidate found: 1.78 (76.7 %)
Aspect ratio candidate found: 2.41 (23.3 %)
Calculated primary aspect ratio: 1.78 (76.7 % within 1.68 and 1.88)
Calculated secondary aspect ratio: 2.41 (23.3 % within 2.31 and 2.51)
Skipped samples: 0 %
Rounding to: 2.4
Analyzing aspect ratio finished in 4 s
--- End code ---
so I guess this track has something unusual about the way the black bars are encoded?
the logging is easier to follow btw given the timestamps as it means I can quickly play and check the relevant scene
Ekpen:
--- Quote from: Hendrik on June 12, 2023, 04:02:58 am ---
--- Code: ---0019955: 4076: Playback: CJRVideoAnalyzeExtended::BlackBarDetection: Crop Window: 0x0x1920x1080, with 30 hits
--- End code ---
This line is the problem - it detects some frames which use the full frame and thus does not cut anything.
What it basically does is take all the detections and find the smallest rectangle that doesn't cut any video off. On a clean movie you would usually only have one or two rects, but some detect this noisily, maybe their margins are not cut cleanly or they are older movies. Why it detects the full frame, I can't tell you without the movie at hand.
--- End quote ---
Hello:
Crop info from a 1080P video is: 0x22x1980x1058
Crop info 4k video is: 0x42x3840x2118.
I have already written about this in an earlier response.
BTW how do you clear the crop field ?
I zapped my entire database field 3 times while testing .
Thanks.
George Omoregie
mattkhan:
--- Quote from: Ekpen on June 12, 2023, 01:52:35 pm ---BTW how do you clear the crop field ?
--- End quote ---
open the tag window, right click the field and click empty
mattkhan:
I tried ffmpeg for comparison which gives different results depending on where I start the analysis
i.e.
--- Code: ---ffmpeg -t 180 -i 00003.m2ts -vf cropdetect -f null -
--- End code ---
correctly detects crop=1920:784:0:148
similarly
--- Code: ---ffmpeg -ss 00:01:00 -t 180 -i 00003.m2ts -vf cropdetect -f null -
--- End code ---
detects the same
whereas
--- Code: ---ffmpeg -ss 00:02:00 -t 180 -i 00003.m2ts -vf cropdetect -f null -
--- End code ---
detects the same time period (i.e. 00:02:00 - 00:03:00) as a completely different value - crop=1920:1072:0:4
I don't know why this occurs but given that MC skips through the track, could it have the same problem?
Hendrik:
Without access to that particular file I can't answer any questions about why.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version