2 monitors, windows DirectX and GDI

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
triff

2 monitors, windows DirectX and GDI

Postby triff » 13 Dec 2003 14:27

I use Windows 2000 with 2 monitors. Monitor 2 does not support overlay.
I can't view video in this second monitor ... with output set to DirectX (no overlay), i have a black screen on monitor 2. If I put the video window on monitor 1, it works, but when I put the video window on monitor 2, I then have the image fixed to the last image dispayed on monitor 1.
With the Windows GDI output, I get the image reduced by two and repeated two times at the bottom of the window, and colors are false. (this happens on monitors 1 and 2).
Any idea ?
What configuration should I put ?
Thank you,
--
Triff

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 14 Dec 2003 13:27

Could you try this:
http://vthr.via.ecp.fr/~videolan/build/ ... 132226.zip

And tell me if this works better for you ?

triff

Postby triff » 14 Dec 2003 21:07

Yes ! It works :
If I let video output to "predefined", the video window says "Hardware YUV overlay DirectX output" on monitor 1 (and displays the video) and says "software RGB DirectX output" on monitor 2 but doesn't display the video. (change between the two occures if I move the video window, no need to stop/play)
However, if I put the video output to "video output windows GDI", it works and displays the video on the two monitors.
Thank you very much,
--
Triff

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 14 Dec 2003 21:21

That's interesting.

Could you reset the video output to "predefined", open the "Messages..." window then play something an move the video window between the 2 screens.
Post the debug messages in here afterwards, I might be able to find out why the DirectX output doesn't display anything on the 2nd screen.

triff

Postby triff » 14 Dec 2003 21:46

Here are some parts of the messages (video open on monitor 2 (matrox mystique) (don't works) and is moved two monitor 1 (nvidia) (works !) )

main debug: no usable vout present, spawning one
main debug: looking for video output module
main debug: probing 4 candidates
vout_directx debug: creating DirectXEventThread
main debug: waiting for thread completion
vout_directx debug: DirectXCreateWindow
main debug: thread 3328 (DirectX Events Thread) created at priority 0 (directx.c:208)
vout_directx debug: DirectXEventThread running
vout_directx debug: DirectXInitDDraw
vout_directx debug: DirectXEnumCallback: Pilote d'affichage principal, display
vout_directx debug: DirectXEnumCallback: 3D Prophet NVidia Series, \\.\DISPLAY1
vout_directx debug: DirectXEnumCallback: Matrox Graphics Mystique PCI, \\.\DISPLAY2
vout_directx debug: selecting Matrox Graphics Mystique PCI, \\.\DISPLAY2
vout_directx debug: screen dimensions 0x600
vout_directx debug: DirectDraw Capabilities: overlay=0 yuvoverlay=0 can_deinterlace_overlay=1 colorkey=1 stretch=0 bltfourcc=1
vout_directx debug: End DirectXInitDDraw
vout_directx debug: DirectXCreateDisplay
vout_directx debug: DirectXCreateClipper
main debug: using video output module "vout_directx"
vout_directx debug: NewPictureVec overlay:yes chroma:YV12
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:yes chroma:YUY2
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:no chroma:YV12
vout_directx debug: created plain surface of chroma:RV32
vout_directx debug: End NewPictureVec (succeeded)
main debug: got 1 direct buffer(s)
main debug: picture in 352x288, chroma 0x30323449 (I420), aspect ratio 176:135
main debug: picture out 352x288, chroma 0x32335652 (RV32), aspect ratio 176:135
main debug: looking for chroma module
main debug: probing 10 candidates
main debug: using chroma module "i420_rgb_mmx"
main debug: indirect render, mapping render pictures 0-7 to system pictures 1-8
main debug: waiting for thread completion
main debug: thread 3220 (video output) created at priority 1 (src/video_output/video_output.c:471)
main warning: backward_pts != current_pts (-240000)
main debug: stream periodicity changed from B[1] to B[2]
main debug: decoded 102/102 pictures
main debug: decoded 108/108 pictures
main debug: unlocking module "i420_rgb_mmx"
vout_directx debug: DirectXCloseSurface
vout_directx debug: DirectXCloseDisplay
vout_directx debug: DirectXCloseDisplay clipper
vout_directx debug: DirectXCloseDisplay display
vout_directx debug: DirectXCloseDDraw
vout_directx debug: DirectXInitDDraw
vout_directx debug: DirectXEnumCallback: Pilote d'affichage principal, display
vout_directx debug: DirectXEnumCallback: 3D Prophet NVidia Series, \\.\DISPLAY1
vout_directx debug: selecting 3D Prophet NVidia Series, \\.\DISPLAY1
vout_directx debug: DirectXEnumCallback: Matrox Graphics Mystique PCI, \\.\DISPLAY2
vout_directx debug: screen dimensions 1024x768
vout_directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 can_deinterlace_overlay=0 colorkey=1 stretch=1 bltfourcc=1
vout_directx debug: End DirectXInitDDraw
vout_directx debug: DirectXCreateDisplay
vout_directx debug: DirectXCreateClipper
vout_directx debug: NewPictureVec overlay:yes chroma:YV12
vout_directx debug: YUV overlay created successfully
vout_directx debug: End NewPictureVec (succeeded)
main debug: got 1 direct buffer(s)
main debug: picture in 352x288, chroma 0x30323449 (I420), aspect ratio 176:135
main debug: picture out 352x288, chroma 0x32315659 (YV12), aspect ratio 176:135
main debug: direct render, mapping render pictures 0-6 to system pictures 1-7
main debug: stream periodicity changed from P[5] to P[2]
main debug: stream periodicity changed from P[2] to P[5]
main debug: decoded 115/115 pictures

Any idea ? Thank you anyway. If you need any other infomation, please ask.
--
Triff

triff

Postby triff » 14 Dec 2003 22:23

I think I should precise :
When I said that it doesn't display video on monitor 2, I really mean it dispays a black video on monitor 2 :
With 0.7.0-test1, moving video windows from monitor 1 to monitor 2 will display a fixed image (the last dispayed) on monitor 2.
With 0.7.0-test2, it will display a black video.
--
Triff

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 15 Dec 2003 01:50

The problem seems to be there:
vout_directx debug: selecting Matrox Graphics Mystique PCI, \\.\DISPLAY2
vout_directx debug: screen dimensions 0x600
I don't know yet why the dimensions are not valid though.
I'll give you something to test as soon as I find something :)

TVisitor

Postby TVisitor » 15 Dec 2003 03:55

Hi, I've experienced a similar problem. I downloaded the Videolan test from the above link. I switched Videolan to use Windows GDI (instead of direct X) in order to get the 2nd monitor working (which is a TV off of an nVidia based card). It works, however, the aspect ratio is messed up, and I can't get it straight no matter what I do to it. Take a 16:9 image, and rotate it so you've got what looks to be a 9:16 image, and that's kind of what mine looks like.

Here is the log I got when I opened up a stream, let it play for a few seconds, and then closed it (it happens to be a show I downloaded from my ReplayTV)

------

main debug:
main debug: creating new input thread
main: playlist item `C:\temp\replay\Late Night With Conan O'Brien-1068245997.mpg'
main debug: waiting for thread completion
main warning: drive letter C: found in source string
main debug: thread 2792 (input) created at priority 15 (src/input/input.c:257)
main debug: access `', demux `', name `C:\temp\replay\Late Night With Conan O'Brien-1068245997.mpg'
main debug: looking for access module
main debug: probing 7 candidates
dvdplay debug: plugin discarded (not a valid source)
dvdread warning: dvdread module discarded (not a valid source)
vcd debug: trying .cue file: C:\temp\replay\Late Night With Conan O'Brien-1068245997.cue
vcd warning: could not open C:\temp\replay\Late Night With Conan O'Brien-1068245997.mpg
cdda debug: trying .cue file: C:\temp\replay\Late Night With Conan O'Brien-1068245997.cue
cdda warning: could not open C:\temp\replay\Late Night With Conan O'Brien-1068245997.mpg
access_file debug: opening file `C:\temp\replay\Late Night With Conan O'Brien-1068245997.mpg'
main debug: using access module "access_file"
main debug: looking for demux module
main debug: probing 21 candidates
mp4 warning: MP4 plugin discarded (not a valid file)
avi warning: avi module discarded (invalid header)
asf warning: ASF plugin discarded (not a valid file)
dshow warning: dshow plugin discarded (not a valid stream)
dshow warning: dshow plugin discarded (not a valid stream)
ts_dvbpsi warning: TS module discarded (no sync)
ts warning: TS module discarded (no sync)
flac warning: flac module discarded (no startcode)
au warning: AU module discarded (not a valid file)
wav warning: WAV module discarded (not a valid file)
main debug: looking for id3 module
main debug: probing 2 candidates
id3tag debug: Checking for ID3 tag
main debug: using id3 module "id3tag"
main debug: unlocking module "id3tag"
a52sys warning: A52 module discarded
main debug: looking for id3 module
main debug: probing 2 candidates
id3tag debug: Checking for ID3 tag
main debug: using id3 module "id3tag"
main debug: unlocking module "id3tag"
mpga warning: mpga module discarded
mpgv warning: ES module discarded (no startcode)
livedotcom warning: SDP module discarded
mkv warning: matroska module discarded (invalid header 0x30303030)
aac warning: AAC module discarded
ps warning: this does not look like an MPEG PS stream, but continuing anyway
main debug: looking for mpeg-system module
main debug: probing 1 candidate
main debug: using mpeg-system module "mpeg_system"
mpeg_system warning: garbage (0x30303030)
mpeg_system warning: garbage (0x6c6318ef)
main debug: selecting ES 0xc0
main debug: looking for decoder module
main debug: probing 18 candidates
main debug: using decoder module "mpeg_audio"
main debug: thread 2844 (decoder) created at priority 2 (src/input/input_dec.c:166)
main debug: selecting ES 0xe0
main debug: looking for decoder module
main debug: probing 18 candidates
main debug: using decoder module "libmpeg2"
main debug: thread 2896 (decoder) created at priority 0 (src/input/input_dec.c:166)
main debug: dumping stream ID 0x0 [OK:0/D:0]
main debug: seekable stream, position: 0/932741129 (-:--:--/-:--:--)
main debug: dumping program 0x0, version 0 (partial)
main debug: ES 0xc0, stream 0xc0, fourcc `mpga', selected [OK:0/ERR:0]
main debug: ES 0xe0, stream 0xe0, fourcc `mpgv', selected [OK:0/ERR:0]
main debug: using demux module "ps"
main debug: found a possible subtitle: messages-gdi-load.txt
mpeg_system warning: garbage (0x30303030)
mpeg_audio: MPGA channels:2 samplerate:48000 bitrate:224
libmpeg2 debug: 352x480, aspect 576000, 29.971 fps
main debug: no usable vout present, spawning one
main debug: looking for audio output module
main debug: probing 4 candidates
aout_directx debug: OpenAudio
main debug: looking for video output module
main debug: probing 4 candidates
main debug: using video output module "wingdi"
main debug: looking for text renderer module
main debug: probing 3 candidates
freetype debug: Using fontsize: 30
main debug: using text renderer module "freetype"
main debug: waiting for thread completion
main debug: waiting for thread completion
aout_directx debug: device supports 2 channels
aout_directx debug: device supports 1 channel
aout_directx debug: couldn't use hardware sound buffer
aout_directx debug: creating DirectSoundThread
main debug: thread 3616 (DirectSound Notification Thread) created at priority 15 (directx.c:357)
main debug: using audio output module "aout_directx"
main debug: output 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
main debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
main debug: no need for any filter
main debug: looking for audio mixer module
aout_directx debug: DirectSoundThread ready
main debug: probing 3 candidates
main debug: using audio mixer module "trivial_mixer"
main debug: input 'mpga' 48000 Hz Stereo frame=1152 samples/1161 bytes
main debug: filter(s) 'mpga'->'fl32' 48000 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module
main debug: probing 21 candidates
main debug: using audio filter module "mpgatofixed32"
main debug: found a filter for the whole conversion
main debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module
main debug: probing 21 candidates
main debug: using audio filter module "bandlimited_resampler"
main debug: found a filter for the whole conversion
wingdi debug: GDI depth is 32
main debug: thread 3500 (GDI Event Thread) created at priority 0 (wingdi.c:142)
main debug: got 8 direct buffer(s)
main debug: picture in 352x480, chroma 0x30323449 (I420), aspect ratio 4:3
main debug: picture out 352x480, chroma 0x32335652 (RV32), aspect ratio 4:3
main debug: looking for chroma module
main debug: probing 10 candidates
main debug: using chroma module "i420_rgb_mmx"
main debug: indirect render, mapping render pictures 0-7 to system pictures 8-15
main debug: thread 3508 (video output) created at priority 1 (src/video_output/video_output.c:471)
main warning: backward_pts != current_pts (-204055)
main debug: stream periodicity changed from B[1] to B[2]
main warning: output date isn't PTS date, requesting resampling (-40417)
main warning: buffer is 40439 in advance, triggering downsampling
main debug: stream periodicity changed from P[5] to P[4]
main debug: decoded 103/103 pictures
main warning: resampling stopped after 4359000 usec
main debug: decoded 105/105 pictures
main debug: 36 loops
main debug: dumping stream ID 0x0 [OK:0/D:438]
main debug: seekable stream, position: 2174252/932741129 (0:00:13/1:35:47)
main debug: dumping program 0x0, version 0 (partial)
main debug: ES 0xc0, stream 0xc0, fourcc `mpga', selected [OK:308/ERR:0]
main debug: ES 0xe0, stream 0xe0, fourcc `mpgv', selected [OK:1054/ERR:0]
main debug: unlocking module "mpeg_system"
main debug: unlocking module "ps"
main debug: unselecting ES 0xc0
mpeg_audio debug: emulated startcode (no startcode on following frame)
main debug: unlocking module "mpeg_audio"
main debug: thread 2844 joined (src/input/input_dec.c:210)
main debug: killing decoder fourcc `mpga', 9 PES in FIFO
main debug: unlocking module "mpgatofixed32"
main debug: unlocking module "bandlimited_resampler"
aout_directx debug: CloseAudio
aout_directx debug: DirectSoundThread exiting
main debug: thread 3616 joined (directx.c:573)
main debug: unlocking module "aout_directx"
main debug: unlocking module "trivial_mixer"
main debug: unselecting ES 0xe0
main debug: unlocking module "libmpeg2"
main debug: thread 2896 joined (src/input/input_dec.c:210)
main debug: killing decoder fourcc `mpgv', 14 PES in FIFO
main debug: no more selected ES
access_file: closing `/://C:\temp\replay\Late Night With Conan O'Brien-1068245997.mpg'
main debug: unlocking module "access_file"
main debug: pes: 1 packets
main debug: data: 1 packets
main debug: buffers: 2 packets
main debug: freeing info structures...
main debug: thread 2792 joined (src/input/input.c:291)
main debug: vout garbage collector destroying 1 vout
main debug: unlocking module "i420_rgb_mmx"
main debug: unlocking module "freetype"
main debug: thread 3500 joined (wingdi.c:239)
main debug: unlocking module "wingdi"
main debug: thread 3508 joined (src/video_output/video_output.c:496)

-----------

When I used DirectX, this is what I got when I moved between monitor and TV, and then hit stop.

----------

vout_directx debug: DirectXCloseSurface
vout_directx debug: DirectXCloseDisplay
vout_directx debug: DirectXCloseDisplay clipper
vout_directx debug: DirectXCloseDisplay display
vout_directx debug: DirectXCloseDDraw
vout_directx debug: DirectXInitDDraw
vout_directx debug: DirectXEnumCallback: Primary Display Driver, display
vout_directx debug: DirectXEnumCallback: NVIDIA GeForce4 Ti 4800 SE, \\.\DISPLAY1
vout_directx debug: DirectXEnumCallback: NVIDIA GeForce4 Ti 4800 SE, \\.\DISPLAY2
vout_directx debug: selecting NVIDIA GeForce4 Ti 4800 SE, \\.\DISPLAY2
vout_directx debug: screen dimensions 2624x768
vout_directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 can_deinterlace_overlay=0 colorkey=1 stretch=1 bltfourcc=1
vout_directx debug: End DirectXInitDDraw
vout_directx debug: DirectXCreateDisplay
vout_directx debug: DirectXCreateClipper
vout_directx debug: NewPictureVec overlay:yes chroma:YV12
vout_directx warning: DirectXUpdateOverlay cannot move or resize overlay
vout_directx error: overlay unuseable (might already be in use)
vout_directx warning: DirectXUpdateOverlay cannot move or resize overlay
vout_directx error: overlay unuseable (might already be in use)
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:yes chroma:YUY2
vout_directx warning: DirectXUpdateOverlay cannot move or resize overlay
vout_directx error: overlay unuseable (might already be in use)
vout_directx warning: DirectXUpdateOverlay cannot move or resize overlay
vout_directx error: overlay unuseable (might already be in use)
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:no chroma:YV12
vout_directx debug: created plain surface of chroma:YV12
vout_directx debug: End NewPictureVec (succeeded)
main debug: got 1 direct buffer(s)
main debug: picture in 352x480, chroma 0x30323449 (I420), aspect ratio 4:3
main debug: picture out 352x480, chroma 0x32315659 (YV12), aspect ratio 4:3
main debug: direct render, mapping render pictures 0-6 to system pictures 1-7
main warning: late picture skipped (41112)
main warning: late picture skipped (7745)
main debug: decoded 104/105 pictures
main debug: decoded 105/105 pictures
main debug: stream periodicity changed from P[4] to P[2]
main debug: stream periodicity changed from P[2] to P[4]
main debug: decoded 114/114 pictures
main debug: decoded 105/105 pictures
main debug: 247 loops
main debug: dumping stream ID 0x0 [OK:0/D:3252]
main debug: seekable stream, position: 13916164/932741129 (0:01:25/1:35:47)
main debug: dumping program 0x0, version 0 (partial)
main debug: ES 0xc0, stream 0xc0, fourcc `mpga', selected [OK:2265/ERR:0]
main debug: ES 0xe0, stream 0xe0, fourcc `mpgv', selected [OK:6833/ERR:0]
main debug: unlocking module "mpeg_system"
main debug: unlocking module "ps"
main debug: unselecting ES 0xc0
main debug: unlocking module "mpeg_audio"
main debug: thread 2888 joined (src/input/input_dec.c:210)
main debug: killing decoder fourcc `mpga', 10 PES in FIFO
main debug: unlocking module "mpgatofixed32"
main debug: unlocking module "bandlimited_resampler"
aout_directx debug: CloseAudio
aout_directx debug: DirectSoundThread exiting
main debug: thread 3604 joined (directx.c:573)
main debug: unlocking module "aout_directx"
main debug: unlocking module "trivial_mixer"
main debug: unselecting ES 0xe0
main debug: unlocking module "libmpeg2"
main debug: thread 2884 joined (src/input/input_dec.c:210)
main debug: killing decoder fourcc `mpgv', 34 PES in FIFO
main debug: no more selected ES
access_file: closing `/://C:\temp\replay\Late Night With Conan O'Brien-1068245997.mpg'
main debug: unlocking module "access_file"
main debug: pes: 1 packets
main debug: data: 1 packets
main debug: buffers: 2 packets
main debug: freeing info structures...
main debug: thread 2804 joined (src/input/input.c:291)
main debug: vout garbage collector destroying 1 vout
main debug: unlocking module "freetype"
vout_directx debug: DirectXCloseSurface
vout_directx debug: DirectXCloseDisplay
vout_directx debug: DirectXCloseDisplay clipper
vout_directx debug: DirectXCloseDisplay display
vout_directx debug: DirectXCloseDDraw
vout_directx debug: CloseVideo
vout_directx debug: DirectXEventThread terminating
vout_directx debug: DirectXCloseWindow
vout_directx debug: WinProc WM_DESTROY
main debug: thread 3120 joined (directx.c:412)
main debug: unlocking module "vout_directx"
main debug: thread 3224 joined (src/video_output/video_output.c:496)

-----------

TVisitor

Postby TVisitor » 15 Dec 2003 03:58

Sorry for the double post...When you have something, I wouldn't mind helping you out by trying it out as well!

Thanks.

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 16 Dec 2003 11:50

I uploaded a test version with a little bit more debug messages. I'd be interested to have the log messages for when you move the video window between the 2 screens.

http://www.videolan.org/pub/testing/win ... -win32.zip

Sortar

Postby Sortar » 16 Dec 2003 13:08

Have you managed to solve this problem? if not Ill do some tests, because I have the same problem.

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 16 Dec 2003 13:11

No I didn't fix anything, the problem should still there.

breeder
New Cone
New Cone
Posts: 4
Joined: 16 Dec 2003 14:39

Postby breeder » 16 Dec 2003 14:47

I downloaded that test2-version of VLC.
Also I have 2 monitors.

I tried switching to Windows GDI video output and yes, it works to move the video-window between the monitors and everything works well, BUT I can't resize the video or play in fullscreen while in GDI-mode. (same for both monitors)


Edit: (I can use my driver-settings to display video-output to my 2nd monitor though and have it full screen, so by drivertweaking I can solve the problem, but I figured I'd try and help and give some feedback to make it possible to do the same directly with VLC (which kicks ass btw ;))
Last edited by breeder on 16 Dec 2003 15:00, edited 2 times in total.

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 16 Dec 2003 14:55

The GDI output is only designed as a test video output and is not actually useful because it is painfully slow and lacks lots of features (like resizing).

Please try this version (with the default/directx video output): http://www.videolan.org/pub/testing/win ... -win32.zip

It won't work with multi-monitor setups but as I said above it has some more debug messages enabled which should allow me to track the problem.

breeder
New Cone
New Cone
Posts: 4
Joined: 16 Dec 2003 14:39

Postby breeder » 16 Dec 2003 15:10

These are the messages from right before I select and move the picture from monitor 1 to monitor 2 to after I select it again and move it back to monitor 1.


main debug: stream periodicity changed from P[5] to P[6]
main debug: stream periodicity changed from P[6] to P[5]
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: 614,400,966,670
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 0,0,352,240
main debug: stream periodicity changed from P[5] to P[1]
main debug: stream periodicity changed from P[1] to P[5]
main debug: decoded 111/111 pictures
main debug: stream periodicity changed from P[5] to P[3]
main debug: stream periodicity changed from P[3] to P[5]
main debug: stream periodicity changed from P[5] to P[4]
main debug: stream periodicity changed from P[4] to P[5]
main debug: stream periodicity changed from P[5] to P[6]
main debug: stream periodicity changed from P[6] to P[5]
main debug: decoded 110/110 pictures
main debug: stream periodicity changed from P[5] to P[1]
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: 728,446,1080,716
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 0,0,352,240
main debug: stream periodicity changed from P[1] to P[5]


If you want the full log, it's here: http://www.aight.se/breeder/messages.rtf


EDIT:

(to clarify, this was with the directX-settings which only works on primary monitor)

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 16 Dec 2003 19:46

breeder: what kind of setup do you have exactly ? (dual head, multi-monitor ?)

I'm asking because I can't see anywhere in the log that VLC was moved to a second monitor. When VLC detects this it should restart part of the directx output but here it doesn't.

breeder
New Cone
New Cone
Posts: 4
Joined: 16 Dec 2003 14:39

Postby breeder » 16 Dec 2003 20:31

my gfxcard is a Leadtek WinFast A310 TD FX5600 128Mb DDR TV-out DVI video-in AGP. I use nView with dualview - digital (tft) + tv.
I run windows server 2003 on an AMD. I have the latest nvidia-drivers and same with directX.

I tried it for both tft+crt and tft+tv, but I didn't see any difference in the message-output. Hm... what else, I guess that is all. If there's anything you want me to try or any information you need, just let me know, I'd be happy to help.

triff

Postby triff » 16 Dec 2003 22:13

Here is a partial log (monitor 2 -> monitor 1 -> monitor 2) from vlc-0.7.0-test2-20031216-win32.
Complete log at http://perso.wanadoo.fr/triff/files/MessagesComp.txt.

main warning: output date isn't PTS date, requesting resampling (-40163)
main warning: buffer is 40156 in advance, triggering downsampling
main debug: stream periodicity changed from P[5] to P[2]
main debug: stream periodicity changed from P[2] to P[5]
main debug: decoded 108/113 pictures
main debug: stream periodicity changed from P[5] to P[1]
main warning: resampling stopped after 4338496 usec
main debug: stream periodicity changed from P[1] to P[5]
main debug: decoded 111/111 pictures
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: -194,113,0,401
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 0,0,183,288
main debug: stream periodicity changed from P[5] to P[6]
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: -190,112,0,400
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 0,0,179,288
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: -187,112,0,400
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 0,0,176,288
main debug: unlocking module "i420_rgb_mmx"
vout_directx debug: DirectXCloseSurface
vout_directx debug: DirectXCloseDisplay
vout_directx debug: DirectXCloseDisplay clipper
vout_directx debug: DirectXCloseDisplay display
vout_directx debug: DirectXCloseDDraw
vout_directx debug: DirectXInitDDraw
vout_directx debug: DirectXEnumCallback: Pilote d'affichage principal, display
vout_directx debug: DirectXEnumCallback: 3D Prophet NVidia Series, \\.\DISPLAY1
vout_directx debug: selecting 3D Prophet NVidia Series, \\.\DISPLAY1
vout_directx debug: DirectXEnumCallback: Matrox Graphics Mystique PCI, \\.\DISPLAY2
vout_directx debug: screen dimensions (0x0,1024x768)
vout_directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 can_deinterlace_overlay=0 colorkey=1 stretch=1 bltfourcc=1
vout_directx debug: End DirectXInitDDraw
vout_directx debug: DirectXCreateDisplay
vout_directx debug: DirectXCreateClipper
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: 0,112,188,400
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 175,0,352,288
vout_directx debug: NewPictureVec overlay:yes chroma:YV12
vout_directx debug: YUV overlay created successfully
vout_directx debug: End NewPictureVec (succeeded)
main debug: got 1 direct buffer(s)
main debug: picture in 352x288, chroma 0x30323449 (I420), aspect ratio 176:135
main debug: picture out 352x288, chroma 0x32315659 (YV12), aspect ratio 176:135
main debug: direct render, mapping render pictures 0-6 to system pictures 1-7
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: 0,112,189,400
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 174,0,352,288
main debug: stream periodicity changed from P[6] to P[5]
main debug: decoded 108/108 pictures
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: 0,112,184,400
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 179,0,352,288
vout_directx debug: DirectXCloseSurface
vout_directx debug: DirectXCloseDisplay
vout_directx debug: DirectXCloseDisplay clipper
vout_directx debug: DirectXCloseDisplay display
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: 0,112,183,400
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 180,0,352,288
vout_directx debug: DirectXCloseDDraw
vout_directx debug: DirectXInitDDraw
vout_directx debug: DirectXEnumCallback: Pilote d'affichage principal, display
vout_directx debug: DirectXEnumCallback: 3D Prophet NVidia Series, \\.\DISPLAY1
vout_directx debug: DirectXEnumCallback: Matrox Graphics Mystique PCI, \\.\DISPLAY2
vout_directx debug: selecting Matrox Graphics Mystique PCI, \\.\DISPLAY2
vout_directx debug: screen dimensions (-800x0,0x600)
vout_directx debug: DirectDraw Capabilities: overlay=0 yuvoverlay=0 can_deinterlace_overlay=1 colorkey=1 stretch=0 bltfourcc=1
vout_directx debug: End DirectXInitDDraw
vout_directx debug: DirectXCreateDisplay
vout_directx debug: DirectXCreateClipper
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: -193,113,0,401
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 0,0,182,288
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: -192,112,0,400
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 0,0,181,288
vout_directx debug: NewPictureVec overlay:yes chroma:YV12
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:yes chroma:YUY2
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:no chroma:YV12
vout_directx debug: created plain surface of chroma:RV32
vout_directx debug: End NewPictureVec (succeeded)
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: -194,113,0,401
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 0,0,183,288
main debug: got 1 direct buffer(s)
main debug: picture in 352x288, chroma 0x30323449 (I420), aspect ratio 176:135
main debug: picture out 352x288, chroma 0x32335652 (RV32), aspect ratio 176:135
main debug: looking for chroma module
main debug: probing 10 candidates
main debug: using chroma module "i420_rgb_mmx"
main debug: indirect render, mapping render pictures 0-7 to system pictures 1-8
main warning: late picture skipped (4235865)
main warning: late picture skipped (356048)
main warning: late picture skipped (316054)
main warning: late picture skipped (276059)
main warning: late picture skipped (236064)
vout_directx debug: DirectXUpdateRects image_dst_clipped coords: -195,113,0,401
vout_directx debug: DirectXUpdateRects image_src_clipped coords: 0,0,184,288
main debug: stream periodicity changed from P[5] to P[4]
main warning: late picture skipped (237063)
main warning: late picture skipped (117082)
main warning: late picture skipped (74308)
main warning: late picture skipped (34330)
main debug: stream periodicity changed from P[4] to P[5]
main debug: stream periodicity changed from P[5] to P[1]

Is that of any help ?

Sortar

Postby Sortar » 16 Dec 2003 22:29

Post any requests for more info or for anything.. I'd be happy to help also if it solves this problem.. Then the Vlc will definitely be my default media viewer..

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 16 Dec 2003 23:03

Thanks for all your feedback.

I found a problem (last one ? ;) with the multi-monitor support.
Can you all try this version and tell me if it works any better ?

http://www.videolan.org/pub/testing/win ... -win32.zip

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 16 Dec 2003 23:08

breeder: It looks like to me that you don't really have multi-monitor support but something more like "display cloning" support.

In this case I fear that the problem lies with your graphics card not supporting "overlay" on both displays at the same time.

One solution is as you already said to set the 2nd display as the primary display device.
Another solution could be to disable overlays in the perferences panel of vlc.

I guess I could also try to implement an option in the menus of the interface that allows you to specify on which display the overlay will be created but I fear this will have to wait for after 0.7.0 because it will require quite a few changes to the code.

Triff

Postby Triff » 16 Dec 2003 23:31

Great !! :D
That made it for me : Software RGB DirectX on monitor 2 and Hardware YUV DirectX on monitor 1 (hot switch automaticaly when the window is moved).
Thank you very much ...
If you need more infos/log, please ask.

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 16 Dec 2003 23:40

If it's working then I don't need anything more :)

Thanks for your testing.

breeder
New Cone
New Cone
Posts: 4
Joined: 16 Dec 2003 14:39

Postby breeder » 16 Dec 2003 23:46

ehum, not quite :P

I DO have a gfxcard that supports multiple overlays.
I can for example start 2 instances of WMP and play 2 different movies, one on each monitor... etc.

I still can't move VLC from screen to screen and have video in directX-mode though. Same problem (black overlay on secondary monitor). Like I said it works with setting drivers to put videooverlay at fullscreen to secondary monitor (then VLC shows video on both simultaneously). But that is some sort of cloning I guess and it's done by nView and not VLC.

I still would like to be able to run vlc on both (or just secondary monitor) without using the fullscreen-overlay feature that my drivers support.

Here are the messages for the run with the vlc you posted last.

http://www.aight.se/breeder/messages2.rtf

Guest

Postby Guest » 17 Dec 2003 19:54

Breeder maybe the log is from when you ran in clone mode and not i extended desktop mode, so that's why it doesn't look like Gibalou expected?

btw It works nicely for me now.. I can run extended windows and move the output window between the monitors and make fullscreen on secondary monitor now..

Thanks alot for a nice program


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests