mpg/vob playback causing scaling artifacts (2 Viewers)

scythelt

Portal Pro
December 19, 2006
138
1
Home Country
TV-Server Version:
MediaPortal Version: 0.2-svn
MediaPortal Skin: BlueTwo-wide
Windows Version: XP-Pro SP2
CPU Type: Intel Core2Duo T5600
HDD: Seagate 250Gb
Memory: Corsair 1Gb
Motherboard: Abit IL-90MV
Motherboard Chipset:
Motherboard Bios:
Video Card: Intel GMA950
Video Card Driver:
Sound Card: Realtek TrueHD
Sound Card AC3: Optical
Sound Card Driver:
1. TV Card: DNTV Live Hybrid LP
1. TV Card Type: DVB-T
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec: PowerDVD6
MPEG2 Audio Codec: PowerDVD6
Satelite/CableTV Provider:
HTPC Case: Silverstone LC19
Cooling:
Power Supply: Silverstone external 120w
Remote: Harmony 880
TV: Samsung R series 32"
TV - HTPC Connection: VGA

I have a very strange issue that I've been troubleshooting all last night. I'm not sure exactly where to post, so I'll post here and hope I can try and get some answers to my problem.

The short of the story is, Mediaportal doesn't seem to be respecting the codecs and rendering them the same way as WMP/any DirectX app does outside of mediaportal. In my case, this is causing scaling artifacts (jagged edges) and deinterlacing issues.

In more detail, when watching DVD or tv shows ripped from DVD (vob files converted to mpgs), I get horrible scaling and no deinterlacing. However playing the same DVD and mpg files back using graphedit/WMP/PowerDVD renders the video beautifully - no jaggies, nicely deinterlaced.

I've had this problem for a while - I just thought I didn't have a good mpeg2 decoder, so last night I installed PowerDVD to solve the issue. The end result is I could never get a good render in Mediaportal even after removing every single mpeg2 codec on my system so that only "Cyberlink PDVD7/SP" is the only one left.

I spent quite a bit of time ensuring the merits were correct so when graphedit renders vob and mpeg files, the filters used are correct (Cyberlink as the video decoder).

However it's been for no success so far - DVDs and mpg files look like crap in MediaPortal.

Checking the log files shows that it does seem to be adding the correct filters (ac3filter for audio and cyberlink PDVD7 for video), but there is the addition of a TSFileSource filter and I'm not clear what its role is.

I'm really stumped now. Merits shouldn't be the problem - there is only one mpeg decoder registered. Mediaportal reports that it is using the correct filters. The only thing I can think of is Mediaportal isn't respecting the non-DXVA request - so all decoding is being done by hardware?

The thing that stumps me most is rendering an mpg outside of mediaportal either in powerdvd, wmp or through graphedit, the resulting video looks great!

Help!
 

scythelt

Portal Pro
December 19, 2006
138
1
Home Country
I have done a bit more investigation into this issue this afternoon.

It seems as though Mediaportal is reporting the width and height of the video wrongly. This would explain the scaling issues.

The detailed log is below, however here is an excerpt highlighting what is happening:
Code:
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: video WxH  : 853x480
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: video AR   : 853:480
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: screen WxH : 1360x768
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: AR type    : Normal
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: PixelRatio : 1
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: src        : (0,0)-(853,480)
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: dst        : (0,1)-(1360,766)

However, gspot correctly reports the video dimensions as 720x480.

Incidentally, playing back an mkv file and checking the logs shows that MP correctly reports the dimensions (1280x720).

I wonder why the vob/mpgs are being reported incorrectly?? Would it be the tsfilesource filter?

More detailed log is below:
Code:
2007-06-22 17:44:43.000000 [Info.][MPMain]: Streambufferplayer play:G:\TV Shows\Band of Brothers\Band of Brothers.S01E01.DVD.mpg radio:False
2007-06-22 17:44:43.000000 [Info.][MPMain]: TSStreamBufferPlayer:play G:\TV Shows\Band of Brothers\Band of Brothers.S01E01.DVD.mpg
2007-06-22 17:44:43.031250 [Info.][MPMain]: TSStreamBufferPlayer9:grapbuilder=null
2007-06-22 17:44:43.062500 [Info.][MPMain]: TSStreamBufferPlayer9: GetInterfaces()
2007-06-22 17:44:43.062500 [Info.][MPMain]: TSStreamBufferPlayer9: Enabling DX9 exclusive mode
2007-06-22 17:44:43.062500 [Info.][MPMain]: Main: DX exclusive mode: True
2007-06-22 17:44:43.062500 [Info.][MPMain]: Main: Goto fullscreen: True
2007-06-22 17:44:43.062500 [Info.][MPMain]: D3D: Switch to fullscreen mode - Playing media: False
2007-06-22 17:44:43.156250 [Info.][MPMain]: D3D: Switched to fullscreen mode successfully
2007-06-22 17:44:43.156250 [Info.][MPMain]:   fonts.SetDevice()
2007-06-22 17:44:43.156250 [Info.][MPMain]: TSStreamBufferPlayer9: add _vmr9
2007-06-22 17:44:43.156250 [Info.][MPMain]: vmr9:ctor()
2007-06-22 17:44:43.156250 [Info.][MPMain]: vmr9:ctor() done:True
2007-06-22 17:44:43.171875 [Info.][MPMain]: vmr9:addvmr9
2007-06-22 17:44:43.203125 [Info.][MPMain]: VMR9Helper: enabled YUV mixing - No DX Error
2007-06-22 17:44:43.203125 [Info.][MPMain]: VRM9Helper: Set filter mode - Gaussian Quad Filtering No DX Error
2007-06-22 17:44:43.203125 [Info.][MPMain]: VMR9: now active
2007-06-22 17:44:43.203125 [Info.][MPMain]: VMR9Helper:Vmr9 Added
2007-06-22 17:44:43.203125 [Info.][MPMain]: TSStreamBufferPlayer9: add codecs
2007-06-22 17:44:43.468750 [Info.][MPMain]: added filter:CyberLink Video/SP Decoder (PDVD7) to graph
2007-06-22 17:44:43.468750 [Info.][MPMain]: added filter:AC3Filter to graph
2007-06-22 17:44:43.484375 [Info.][MPMain]: add filter:Default DirectSound Device to graph clock:True
2007-06-22 17:44:43.484375 [Info.][MPMain]: DirectShowUtils: found renderer - Default DirectSound Device
2007-06-22 17:44:43.609375 [Info.][MPMain]: DirectShowUtils: Passed removing audio renderer
2007-06-22 17:44:43.609375 [Info.][MPMain]: DirectShowUtils: Passed finding Audio Renderer
2007-06-22 17:44:43.609375 [Info.][MPMain]: added filter:Default DirectSound Device to graph
2007-06-22 17:44:43.609375 [Info.][MPMain]: setAsReferenceClock sync source No DX Error
2007-06-22 17:44:43.609375 [Info.][MPMain]: TSStreamBufferPlayer9:initialize tsfilesource
2007-06-22 17:44:43.609375 [Info.][MPMain]: set tsfilesource to auto mode
2007-06-22 17:44:43.609375 [Info.][MPMain]: TSStreamBufferPlayer9:add tsfilesource to graph
2007-06-22 17:44:43.609375 [Info.][MPMain]: TSStreamBufferPlayer9:add mpeg-2 demultiplexer to graph
2007-06-22 17:44:43.609375 [Info.][MPMain]: TSStreamBufferPlayer9: open file:G:\TV Shows\Band of Brothers\Band of Brothers.S01E01.DVD.mpg
2007-06-22 17:44:43.812500 [Info.][MPMain]: TSStreamBufferPlayer9:connect tsfilesource->mpeg2 demux
2007-06-22 17:44:43.812500 [Info.][MPMain]: TSStreamBufferPlayer9:render demux outputs
2007-06-22 17:44:43.875000 [Info.][MPMain]: planescene: PresentImage() 
2007-06-22 17:44:43.875000 [Info.][MPMain]: PlaneScene: PresentImage() dispose surfaces
2007-06-22 17:44:44.000000 [Info.][MPMain]: tsplayer9:OnInitialized
2007-06-22 17:44:44.000000 [Info.][MPMain]: g_Player.OnStarted() G:\TV Shows\Band of Brothers\Band of Brothers.S01E01.DVD.mpg media:Video
2007-06-22 17:44:44.015625 [Info.][MPMain]: opening video database
2007-06-22 17:44:44.031250 [Info.][11]: PlaneScene: PresentImage() dispose surfaces
2007-06-22 17:44:44.031250 [Info.][11]: PlaneScene: PresentImage() dispose surfaces
2007-06-22 17:44:44.046875 [Info.][MPMain]: video database opened
2007-06-22 17:44:44.093750 [Info.][MPMain]: g_Player: ShowFullScreenWindow switching to fullscreen video
2007-06-22 17:44:44.093750 [Info.][MPMain]: window:MediaPortal.GUI.Video.TVSeriesPlugin deinit
2007-06-22 17:44:44.156250 [Info.][MPMain]: texturemanager:CleanupThumbs()
2007-06-22 17:44:44.156250 [Info.][MPMain]: No translation found for id 109811
2007-06-22 17:44:44.171875 [Info.][MPMain]: window:MediaPortal.GUI.Video.GUIVideoFullscreen init
2007-06-22 17:44:44.203125 [Info.][MPMain]: xml:C:\Program Files\Team MediaPortal\MediaPortal\Skin\Replicant - Original\videoOSD.xml image id:350 width:0 height:0 gfx:-
2007-06-22 17:44:44.296875 [Info.][MPMain]: VMR9Helper: playing->repaint 50
2007-06-22 17:44:44.312500 [Info.][MPMain]: SeekAbsolute:seekabs:198 duration:4394.0972 pos:0.301
2007-06-22 17:44:44.531250 [Info.][MPMain]: StreamBufferPlayer: current pos:198 dur:4394.0972
2007-06-22 17:44:44.531250 [Info.][MPMain]: VMR9Helper: repaint->playing 50
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: crop T, B  : 0, 0
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: crop L, R  : 0, 0
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: video WxH  : 853x480
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: video AR   : 853:480
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: screen WxH : 1360x768
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: AR type    : Normal
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: PixelRatio : 1
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: src        : (0,0)-(853,480)
2007-06-22 17:44:45.343750 [Info.][19]: PlaneScene: dst        : (0,1)-(1360,766)
2007-06-22 17:44:45.531250 [Info.][MPMain]: VMR9Helper: playing->repaint 1
2007-06-22 17:44:45.546875 [Info.][19]: planescene: PresentSurface() frame:0 enabled:True allowed:False 853x480
2007-06-22 17:44:45.562500 [Info.][MPMain]: VMR9Helper: repaint->playing 1
2007-06-22 17:44:59.796875 [Info.][MPMain]: GUIVideoFullscreen:stop
2007-06-22 17:44:59.796875 [Info.][MPMain]: g_Player.Stop()
2007-06-22 17:44:59.796875 [Info.][MPMain]: g_Player.OnStopped()
2007-06-22 17:44:59.796875 [Info.][MPMain]: GUIVideoFiles: OnPlayBackStopped idFile=317 timeMovieStopped=213 resumeData=
2007-06-22 17:44:59.812500 [Info.][MPMain]: TvRecorded:OnStopped Video G:\TV Shows\Band of Brothers\Band of Brothers.S01E01.DVD.mpg
2007-06-22 17:44:59.812500 [Info.][MPMain]: TSStreamBufferPlayer9:cleanup DShow graph False
2007-06-22 17:44:59.812500 [Info.][MPMain]: TSStreamBufferPlayer9: vmr9 disable
2007-06-22 17:44:59.953125 [Info.][MPMain]: PlaneScene: PresentImage() dispose surfaces
2007-06-22 17:44:59.968750 [Info.][MPMain]: TSStreamBufferPlayer9: vmr9 dispose
2007-06-22 17:44:59.968750 [Info.][MPMain]: vmr9:Dispose
2007-06-22 17:44:59.984375 [Info.][MPMain]: VMR9: not active
 

Users who are viewing this thread

Top Bottom