EDEN BETA 3: Refresh Rate No Longer Changing

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
dclindner Offline
Junior Member
Posts: 33
Joined: May 2011
Reputation: 0
Post: #11
I was watching another movie last night and noticed significant judder. This got me thinking.

The fps was 31.97 and of course the refresh rate was 60. I then deleted the measurerefresh from the advancedsettings and tried again. The fps was reported at 23.97. Hmmm. Also, the judder was pretty much gone. The refresh rate stayed at 60.

Does this make any sense at all?

I was then wondering why there might be a correlation between fps and judder. It used to be that if the refresh rate didn't match the fps, there was judder. Now it seems if the fps doesn't match the pre-telecine rate there is judder. Is ffmpeg doing something different when the fps changes?

I was wondering if ffmpeg removes the duplicate frames when the fps is 24 and re-executes a 3:2 pulldown to match the refresh rate. Are these duplicate frames that are encoded in an NTSC DVD to bring it to 29.97 once removed the missed frames that are counted when the refresh rate of 24 matches the fps detected?

This may be a silly notion, but the seems to be a correlation between fps and refresh rate and the presence of judder that goes beyond just matching the refresh rate. Further, is there a correlation between fps and missed frames? Is ffmpeg removing duplicate frames and considering this a miss?

If I'm off base so be it, but I thought the observation interesting.
(This post was last modified: 2012-02-15 22:58 by dclindner.)
find quote
bobo1on1 Offline
cheapass Team-XBMC Developer
Posts: 2,752
Joined: Dec 2008
Reputation: 20
Post: #12
Never use <measurerefreshrate> in advancedsettings.xml unless the detected refreshrate in the codec info is wrong, the refreshrate measurement isn't very reliable, and doesn't bring any improvement at all, except when windows returns the wrong refreshrate for your monitor.
find quote
bigbully Offline
Member
Posts: 55
Joined: Jun 2011
Reputation: 2
Post: #13
bobo1on1 Wrote:https://github.com/xbmc/xbmc/commit/d73a...d43cc99795

You can now enable it again by putting this in advancedsettings.xml:
Code:
<advancedsettings>
  <video>
    <fpsdetect>2</fpsdetect>
  </video>
</advancedsettings>

I added this to advancedsettings and the refresh now seems to be working again with the new RC1 update. I've only tested a couple of movies that weren't working, so I'll keep an eye out, but thanks for this in the meantime.
find quote
craigdabbs Offline
Junior Member
Posts: 35
Joined: Nov 2008
Reputation: 0
Post: #14
sorry to bump a old thread but this closely matches a issue i have.

Im running Arch Linux with my XBMC machines which has now updated to the latest eden releases. With dharma my older TV's which supported 50hz and 60hz, used to playback 24p content at 50hz which makes sence as its the closest match to 24hz.

Sinch changing to eden however it plays all my 24p content at 60hz which introduces a little stutter (not much i admit). I have applied the settings posted above and looked at the xbmc log which is this

Code:
20:33:27 T:2886712128   DEBUG: Resolution default: 1280x720 @ 50.00Hz (14) not a very good match for fps 23.976 (weight: 0.043), trying 2:3 cadence
20:33:27 T:2886712128  NOTICE: Display resolution ADJUST : 1280x720 @ 60.00 - Full Screen (12) (weight: 0.001)

Anyway of changing that to play at 50hz Smile,

I can force it to play at 50 by using
<override>
<fpsmin>23.96</fpsmin>
<fpsmax>24.01</fpsmax>
<refresh>50</refresh>
</override>

but some of my mahcines move from tv to tv which some do support 24p.

Hope ive explained myself enough and hope someone can help.

Thanks
Craig Dabbs
find quote
gpborges Offline
Member
Posts: 58
Joined: Jun 2010
Reputation: 0
Video  RE: EDEN BETA 3: Refresh Rate No Longer Changing Post: #15
Hi folks, I'm struggling a LOG with DVD disc playback (NTSC DVDs) and with DVD ISO playback too, but just for some ISOs.

My system is built on top Ubuntu 12.04 LTS (minimal/server install) + XBMC Eden (from oficial repo). My HTPC has a Zotac IONITX-L-E board (NVIDIA ION - MCP79 Board) hooked to a Pana 42" Plasma TV + Onkyo Receiver NR-609. I have a pretty smooth playback for almost all my movies and it's switching to 23.97 accordingly.

After read various threads related to DVD / ISO stuttering and after performing various tests/debugs myself, I can also confirm that there is a very tight relation between the fps and refresh rate. I have the Indiana Jones collection as DVD ISOs and all 4 of them are very choppy. I took some screenshots to highlight when the playback stutters, as this one with a weird fps as 45.98 and refresh rate 59.94:

[Image: screenshot003.png]

Here another one with fps at 45.77 and refresh rate at 59.94:

[Image: screenshot007.png]

One more (movie scene) at 47.52 and refresh rate at 59.94

[Image: screenshot009.png]

And here, another DVD iso which plays flawlessly. Notice that here the fps is 59.94 and refresh rate is 29.97

[Image: screenshot014.png]

And last but not least... a Bluray ISO playback, really smooth... fps and refresh rate both at 23.97 (that's why it's so smooth...)

[Image: screenshot031.png]

In summary, I always see stutter when the refresh rate doesn't match the fps for any reason. When it does, everything runs smoothly.

I will try the advanced setting:

Code:
<advancedsettings>
  <video>
    <fpsdetect>2</fpsdetect>
  </video>
</advancedsettings>

And will get back here with the results.

If anyone wants too see my debug logs, they're in another threads:

Linux Choppy playback / Video stutter with Eden
http://forum.xbmc.org/showthread.php?tid=131393

[LINUX] Iso/DVD files playback issues
http://forum.xbmc.org/showthread.php?tid=117828

Linux XBMCBuntu/Eden - DVD playback speed
http://forum.xbmc.org/showthread.php?tid...pid1141350

Hope we get this sorted out!!!

Thx!
find quote
gpborges Offline
Member
Posts: 58
Joined: Jun 2010
Reputation: 0
Post: #16
People, I can confirm setting the <fpsdetect>2</fpsdetect> as above did solve the issue! However, sometimes it doesn't switch while I don't go and set the deinterlace option to "auto" or some other option.

After some 5 seconds (sometimes more), it blacks the screen for a second or two and then switch to the 23.97 refresh rate and then I have a pretty smooth playback. :-D

Just curiosity... How as this in XBMCLive Dharma? I had it before running on Ubuntu 10.04 and it worked flawlessly. I didn't have to set this advanced setting and I didn't see it switching the refresh rate as well.

Well, at least now I can see the DVDs and ISOs that I have smootlhy... I was just thinking why this happens. The Indiana Jones DVDs ISOs I have are 23.97 fps (NTSC). See the mediainfo:

Code:
General
Complete name                            : /home/gpborges/.gvfs/Indiana.Jones.e.a.Ăšltima.Cruzada.%281989%29.iso/VIDEO_TS/VTS_06_1.VOB
Format                                   : MPEG-PS
File size                                : 1 024 MiB
Duration                                 : 1s 34ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 0 bps

Video
ID                                       : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=12
Duration                                 : 1s 34ms
Bit rate mode                            : Variable
Bit rate                                 : 0 bps
Maximum bit rate                         : 9 800 Kbps
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 fps
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan order                               : 2:3 Pulldown
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 982.549
Stream size                              : 1 012 MiB (99%)
Color primaries                          : SMPTE 170M
Transfer characteristics                 : SMPTE 170M
Matrix coefficients                      : SMPTE 170M

Audio #1
ID                                       : 189 (0xBD)-128 (0x80)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Muxing mode                              : DVD-Video
Duration                                 : 256ms
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 14.0 KiB (0%)

Audio #2
ID                                       : 189 (0xBD)-129 (0x81)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Muxing mode                              : DVD-Video
Duration                                 : 320ms
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 7.50 KiB (0%)

Text #1
ID                                       : 189 (0xBD)-32 (0x20)
Format                                   : RLE
Format/Info                              : Run-length encoding
Muxing mode                              : DVD-Video

Text #2
ID                                       : 189 (0xBD)-33 (0x21)
Format                                   : RLE
Format/Info                              : Run-length encoding
Muxing mode                              : DVD-Video

Text #3
ID                                       : 189 (0xBD)-34 (0x22)
Format                                   : RLE
Format/Info                              : Run-length encoding
Muxing mode                              : DVD-Video

Text #4
ID                                       : 189 (0xBD)-35 (0x23)
Format                                   : RLE
Format/Info                              : Run-length encoding
Muxing mode                              : DVD-Video

Menu

Why such awkward frame rate? around 45? Maybe setting the <adjustrefreshrate> and its <override> would have a better experience rather than using the fpsdetect? What fpsmin / fpsmax would you guys recommend to try with the samples I've provided above?

Looking forward any clarifications on that, but I'm already happen to be able to watch them without the BAD stutter I had.
find quote
Post Reply