INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Re: JRVR and Bad Files  (Read 754 times)

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 505
Re: JRVR and Bad Files
« on: October 22, 2021, 09:39:02 pm »

I have found an issue with replay of a particular file types with JRVR.
The files are either 540p50 or 720p50 and have a variable frame rate (according to Mediainfo - see below)
Both RO STD(EVR) and ROHQ(madVR) play these files correctly at 50fps.

JRVR is playing these files at between 38-41fps (measured with MSI Afterburner) and with visible frame judder.

Mediainfo for an example video stream is:
Code: [Select]
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 30 min 57 s
Bit rate                                 : 2 724 kb/s
Width                                    : 960 pixels
Height                                   : 540 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 50.000 FPS
Minimum frame rate                       : 25.000 FPS
Maximum frame rate                       : 90 000.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.105
Stream size                              : 603 MiB (95%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

EDIT: Removed link to sample file now Hendrik has analyzed the file.

Other than the above file types (unfortunately I have found I have quite a few of these) JRVR is performing very well and seems very efficient, even with Jinc scaling selected, upscaling 540p50 or 720p50 to 4k barely loads the Nvidia 1060 in my HTPC. The image is a little 'soft' compared to madVR NGU Sharp but that is only to be expected, really looking forward to the future scaling options and developments.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Re: JRVR and Bad Files
« Reply #1 on: October 22, 2021, 10:35:54 pm »

The sample plays OK for me (3090) and while the FPS does move around more than my other media it is mostly being reported as 50fps. 
Logged
JRiver CEO Elect

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 505
Re: Re: JRVR and Bad Files
« Reply #2 on: October 23, 2021, 12:03:02 am »

Quote
The sample plays OK for me (3090) and while the FPS does move around more than my other media it is mostly being reported as 50fps.

That's interesting, I tried on both my Nvidia 1060 and a laptop Nvidia 550m and got identical results around 41fps. I have on occasion got the files to 'lock on' to 50fps by coming out of fullscreen and playing in window. Once they are at 50fps if I maximize the window again they will play OK. But it is consistent for me that if I start the video in fullscreen windowed mode they dance around 39-41fps. The frame judder is quite noticeable on movement. As I said in my previous post absolutely no issues playing these videos on madVR or EVR.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Re: JRVR and Bad Files
« Reply #3 on: October 23, 2021, 12:42:39 am »

It's interesting how much lower your GPU % is to mine (I'm scaling to a UHD Display) as I'd expect my 3090 would be lower not higher than the 1060.  I presume in MC you have Tools --> Options --> Video --> Hardware accelerate video checked?

Also, JRVR is just a preview at this stage and I'm sure Hendrik has plenty of work to do before it goes to production.  In my testing I too have seen periods of dropped frames / judder that I can not explain (on multiple PCs).  A pause/play or a seek seems to settle it down but it will just occur randomly even after some time of playing back without issue.  I've also seen odd drifting lip sync on occasion as well.
Logged
JRiver CEO Elect

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 505
Re: Re: JRVR and Bad Files
« Reply #4 on: October 23, 2021, 12:58:54 am »

Quote
It's interesting how much lower your GPU % is to mine

Yes Accelerate video is checked, I am scaling to 4K as well but when I took the screenshot the clock frequency was very high as the Adaptive power hadn't throttled back yet, normally it is down around 608 MHz and the % utilization then increases. I do find JRVR to be very frugal on the GPU though.
I'm not expecting perfection from JRVR just yet, however hopefully examples like this will help Hendrik get there!
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Re: JRVR and Bad Files
« Reply #5 on: October 23, 2021, 01:01:43 am »

Trying kicking the GPU into performance mode in the NVidia Control Panel instead of Auto to test?
Logged
JRiver CEO Elect

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 505
Re: Re: JRVR and Bad Files
« Reply #6 on: October 23, 2021, 01:17:59 am »

Quote
Trying kicking the GPU into performance mode in the NVidia Control Panel instead of Auto to test?
Yes, already tried that, no dice.
I have loads of other 540p50 and 720p50 that are constant frame rate and they play perfectly on JRVR, it just these variable frame files that cause the issue. I have also tried all the other formats I have with no problem 4k60, 1080i60, 1080p, 720p25, DVD etc.
So these files are real outliers from my testing.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Re: JRVR and Bad Files
« Reply #7 on: October 23, 2021, 01:31:30 am »

Well Hendrik will no doubt have a much better insight into that file than I will.
Logged
JRiver CEO Elect

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10944
Re: Re: JRVR and Bad Files
« Reply #8 on: October 23, 2021, 03:48:31 am »

That file has really screwed up timestamps, just from the start: (the pattern holds)

Code: [Select]
Frame, rtStart: 0, dur: 200000, diff: 0, key: 1, type: I, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 400111, dur: 200000, diff: 400111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 400000, dur: 200000, diff: -111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 600000, dur: 200000, diff: 200000, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 800000, dur: 200000, diff: 200000, key: 0, type: P, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 1200111, dur: 200000, diff: 400111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 1200000, dur: 200000, diff: -111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 1400000, dur: 200000, diff: 200000, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 1600000, dur: 200000, diff: 200000, key: 0, type: P, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 2000111, dur: 200000, diff: 400111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 2000000, dur: 200000, diff: -111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 2200000, dur: 200000, diff: 200000, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 2400000, dur: 200000, diff: 200000, key: 0, type: P, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 2800111, dur: 200000, diff: 400111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 2800000, dur: 200000, diff: -111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 3000000, dur: 200000, diff: 200000, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 3200000, dur: 200000, diff: 200000, key: 0, type: P, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 3600111, dur: 200000, diff: 400111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0
Frame, rtStart: 3600000, dur: 200000, diff: -111, key: 0, type: B, repeat: 0, interlaced: 0, tff: 0

The duration is constant 20ms (50 FPS), but the frame timestamps are in a rather weird pattern, and even going backwards (even if only by 11.1 microseconds). Those backwards frames are being dropped by JRVR, hence the lower FPS, and the not-smooth presentation. I'm not sure yet if the file is screwed up or there is an issue in the demuxer, but thats what JRVR gets in any case.

To help with diagnosing frame pacing issues in JRVR, I'll add an additional logging function for frame timings in particular, which will not be tied to the main MC log, since it will be extremely verbose, and needs to be separately enabled as well as logging to a different file (similar to the TV log, i guess).
Logged
~ nevcairiel
~ Author of LAV Filters

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 505
Re: JRVR and Bad Files
« Reply #9 on: October 23, 2021, 06:02:47 pm »

Thanks for looking at the issue Hendrik, these files do seem to have very odd timestamps.
If you need any other examples I can provide them.
Great idea re: adding the logging feature to JRVR.
It is not a priority issue but I think if RO STD and RO HQ can play the files smoothly at the correct frame rate then it is desirable that JRVR can also.
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey
Pages: [1]   Go Up