View Issue Details

IDProjectCategoryView StatusLast Update
0000150madVRbugpublic2015-03-23 09:33
Reporterturbojet Assigned Tomadshi  
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionreopened 
PlatformWindowsOSWindows 7OS VersionSP1
Summary0000150: 60i 3:2:3:2:2 cadence should produce 25fps, but madVR switches to 23Hz
DescriptionThis is originally 25 fps source converted to 30 fps by duplicating every sixth frame.

http://www.mediafire.com/download/jd5s4c5qz4x5tlm/4%3B2cadence.mpg
Steps To Reproduce1. enable deinterlace and film mode.
2. play the file
3. see good frames being removed
4. osd usually shows 3:2:3:2:2 cadence
TagsNo tags attached.
madVR Version87.4
Media Player (with version info)Potplayer, MPC-BE
Splitter (with version info)Internal
Decoder (with version info)LAV Filters
DecodingSoftware
Deinterlacingforced film mode
DXVA2 Scaling Activeno
Aero / Desktop CompositionOn
Problem occurs with modeall modes
GPU ManufacturerNVidia
GPU Model250 and 650
GPU Driver Version327

Activities

turbojet

2014-02-28 15:48

reporter   ~0000389

Here's 3:2 detected as 4:2:2:2 http://www.mediafire.com/download/150g9d9f7ahmph2/3_2_as_4_2_2_2.mpg

huhn

2014-03-03 15:59

reporter   ~0000407

are you sure the 3:2:3:2:2 sample is 4:2? if the sample is 4:2 that would mean it is 20 fps.
after a short look at it. it is 3:2:3:2:2 or something like that at least 3:2 is in there. and the output fps should be 25 fps. and 3:2:3:2:2 should result in 25 fps.
the problem is not the wrong cadence detection, because they are both totally right. the problem is the decimation and frame rate control.

i'm just looking here because i was going to report a 4:2:2:2 issue where the wrong frame is droped when played with 23p like your 3_2_as_4_2_2_2.mpg

turbojet

2014-03-03 22:45

reporter   ~0000418

The file in the original post is 4 good, 2 duplicate frames, isn't that 4:2? Madvr should remove the second duplicate and output 24.975 fps and switch display to a multiple of 25hz.

huhn

2014-03-04 09:47

reporter   ~0000419

that's not how telecine work.
i think this is a bad place to talk about telecine and top/odd field so you can read the Frame rate differences part from http://en.wikipedia.org/wiki/Telecine .
you are right about the 25fps and that madvr drops the wrong frame but the source of this issue is not the cadence.

a 30i source like ntsc tv got 60 fields per sec and if these fields are 3:2:3:2:2 it should result in 25 fps. but madvr switches to 23p and drops more frames then it should be. on top of it it got quiet some cadence breaks too.

madshi

2014-03-04 09:50

administrator   ~0000420

madVR currently always switches to 23Hz when having forced film mode on while playing 59i content. Yeah, with some cadences 23Hz is not the optimal refresh rate. But that's not so easy to solve, especially because cadence detection can be unstable. E.g. what happens if cadence detection switches between 3:2 and between 3:2:3:2:2 all the time? Should madVR then always switch between 23Hz and 25Hz all the time, in the middle of playback? This is a problem I'll have to revisit later, but I don't consider it a "bug" right now. It's as intended, even it might not be the best (or even the correct) solution.

madshi

2014-03-04 09:55

administrator   ~0000421

I've downloaded the sample, added it to my cadence collection, and added an entry to my to do list to look at which refresh rates to switch to with different cadences. But as mentioned above, this will not be easy to do well, because we don't want to switch back and forth between different refresh rates all the time. So this will have to wait until I get back to the whole deinterlacing topic. For now I'll close this bug entry.

madshi

2014-03-04 10:02

administrator   ~0000422

P.S: Actually, I think there *is* a cadence misdetection of some sort here. Haven't had the time to look at it in detail, but this is different than just failing to switch to the correct framerate. As such I'll leave this open, after all, but it will take some time before I get to this.

huhn

2014-03-04 10:19

reporter   ~0000423

should i at least create a bug report for a problem with 2:2:2:4 or 4:2:2:2? because in this case madvr drops the wrong frame and the output should be 24 fps. i even found a cadence like this on a bd.

madshi

2014-03-04 10:31

administrator   ~0000424

Just send me a sample (or multiple samples) via PM or eMail. Thanks.

turbojet

2014-03-05 00:08

reporter   ~0000453

I thought cadence worked on frames instead of fields, 3:2 would be correct on either but thanks for the info.

I wouldn't expect madvr to change refresh rate every time the cadence changed but I'd expect FRC to toggle on the fly which it already can do without any noticeable change. Refresh rate changes take seconds on 2 displays here. While this wouldn't fix the issue using 24/25/30 hz displays it should work fine using higher multiples, which in some cases should be used currently.

The original post file plays wrong when 50hz is forced, like huhn said it's probably removing the wrong frame.

madshi

2014-03-05 00:11

administrator   ~0000454

FWIW, the cadence is for fields, not frames. E.g. the typical NTSC 3:2 cadence has one field repeated 3 times and one repeated 2 times.

Issue History

Date Modified Username Field Change
2014-02-08 08:28 turbojet New Issue
2014-02-27 11:15 madshi Assigned To => madshi
2014-02-27 11:15 madshi Status new => assigned
2014-02-28 15:48 turbojet Note Added: 0000389
2014-03-03 15:59 huhn Note Added: 0000407
2014-03-03 22:45 turbojet Note Added: 0000418
2014-03-04 09:47 huhn Note Added: 0000419
2014-03-04 09:50 madshi Note Added: 0000420
2014-03-04 09:55 madshi Note Added: 0000421
2014-03-04 09:55 madshi Status assigned => closed
2014-03-04 09:55 madshi Resolution open => won't fix
2014-03-04 10:02 madshi Note Added: 0000422
2014-03-04 10:02 madshi Status closed => feedback
2014-03-04 10:02 madshi Resolution won't fix => reopened
2014-03-04 10:02 madshi Status feedback => acknowledged
2014-03-04 10:19 huhn Note Added: 0000423
2014-03-04 10:31 madshi Note Added: 0000424
2014-03-05 00:08 turbojet Note Added: 0000453
2014-03-05 00:11 madshi Note Added: 0000454
2015-03-23 09:33 madshi Summary 4:2 cadence detected as 3:2:3:2:2 => 60i 3:2:3:2:2 cadence should produce 25fps, but madVR switches to 23Hz
2015-03-23 09:33 madshi Description Updated