openSUSE Forums > Hardware » Black screen when playing video (NVIDIA)

Go Back   openSUSE Forums > Hardware
Forums FAQ Members List Search Today's Posts Mark Forums Read


Hardware Questions about drivers, peripheral cabling, configuration

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-Jun-2009, 15:35
santasemilla's Avatar
Puzzled Penguin
 
Join Date: Aug 2008
Location: Houghton, MI
Posts: 26
santasemilla hasn't been rated much yet
Default Black screen when playing video (NVIDIA)

Hi All,

First of all, an useful introduction...

(Opensuse 11.1, 64bit, NVidia 9600GS)

I had nvidia drivers from Yast installed (180.51). Everything was working well buuuuuuuut... I wanted to try the beta version in order to test a bug I'm having with a java application... and yes, I did install it.

Uninstalled the drivers from Yast, then init3 -> sh ./Nvidia(xxxx).run and installed the beta.

(No luck with the Java thing)

Later, when I tried to go back to the stable (180.51), I uninstalled the beta with sh ./Nvidia(xxxx) --uninstall, cleaned everything at 'usr/scr/linux' with:
make mrproper
make cloneconfig
make modules_prepare
make clean
reboot

and Mesa drivers were there after the reboot.

Back to Yast, click on the Nvidia drivers as usual to install it, sax2, reboot aaand..... yup, problem.

The problem is when I reproduce videos or try to use the webcam I see the small screen all in black (this is to clarify that the video reproduction is failing, not the whole enviroment). I can hear the sound on videos and yes, I can even take a picture with my webcam on cheese!! but I can't see the image "live".

I tried already reinstalling all the codecs, xine, qt libraries and nothing. Also, I have now installed the new 180.60 version manually installed of course, and the issue is still there.

NOTE: When going back to mesa drivers everything works. Also the problem is on every single desktop, I tried Gnome, KDE 3.5 and KDE 4.2. I guess the beta driver from nvidia left something somewhere that I should erase or change maybe on xorg.conf.. I don't know.

Sorry if I'm missing something, I tried to explain as much as I can recapitulating step by step.

If anybody had the same issue, help is appreciated.

Thank you very much!
Reply With Quote
  #2 (permalink)  
Old 03-Jun-2009, 00:24
oldcpu's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,774
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: Black screen when playing video (NVIDIA)

Why do you believe its the nvidia driver and not the webcam driver?

Do you get a black screen with all of these command line methods we were using: webcam & microphone command line fun .... - openSUSE Forums

You state "The problem is when I reproduce videos" ? What are you using to produce the videos? Do regular videos play (ie videos from youtube ? videos from other web sites? videoDVDs ? )

If you have a problem playing any videos? did you try changing the video output mode in your video players when playing videos? What happens when you turn off special desktop effects/3D (ie "the cube" ) ?

You are certain you have the correct codecs? You noted you tried already reinstalling all the codecs, xine, qt libraries ... whose version of xine? videolan? packman? Did you mix videolan and packman packaged applications?
Reply With Quote
  #3 (permalink)  
Old 03-Jun-2009, 10:36
santasemilla's Avatar
Puzzled Penguin
 
Join Date: Aug 2008
Location: Houghton, MI
Posts: 26
santasemilla hasn't been rated much yet
Default Re: Black screen when playing video (NVIDIA)

Hi oldcpu, thank you very much helping out here!

Well, of course I forgot to put many details so here we go:

I tried the commands from the post you suggested and I got, for the first comand, black screen with this output:

________________________
mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0
MPlayer dev-SVN-r29116-4.3-openSUSE Linux 11.1 (x86_64)-Packman (C) 2000-2009 MPlayer TeamCan't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: USB2.0 1.3M UVC WebCam
Capabilites: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
================================================== ========================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2)
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Packed YUY2
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
================================================== ========================
Audio: no sound
Starting playback...
v4l2: ioctl set mute failed: Invalid argument
v4l2: 1111 frames successfully processed, -518 frames dropped.

Exiting... (Quit)
________________________

For the second one,I got the avi file and IT HAS VIDEO IMAGE, I'll tell you later how I reproduced that. (I don't know if it's worth the command line output since it is working fine...)

For the third and fourth commands I got video files with sound, so everything went OK.

If I try to reproduce online videos like youtube's I have no problem with that. I'm having problems reproducing AVI, MPEG, RMVB files and mms stream content with Kaffeine and Mplayer.

Digging a bit more, I have XINE libraries (1.1.15) from packman, but YAST is showing me some extra libraries (ver. 1.1.16) that I can not install because they create some conflict versions with the 1.1.15. (For example, libxine-codecs 1.1.16.3 require libxine1= 1.1.16 but the requirement cannot be provided). DVDs won't even start on kaffeine. The only chance to reproduce video files is with MPlayer with the "gl2 driver" I bolded this because I know is important.Also, all the xine libraries I have are from Packman (USA package from Opensuse), nothing from VideoLan.

I'm "blaming" the nvidia drivers because everything started when I installed and uninstalled the beta one. If I turn off the 3D effects everything is the same. The only way to "fix" the problem is switching to MESA drivers by SAX2.

I know it sounds strange to "blame" the nvidia drivers because it sounds like "codecs problem" but everything was working fine before that beta test. A friend of mine told me something about ".dri" files that the nvidia beta drivers install and later doesn't remove... but he was not clear with that and I haven't found much info about it. Nevertheless I found at the xorg.conf that it loads some "dri" things and then sets some video parameters... but I don't understand much about it, sorry. I did try making a buckup of the xorg.conf and remove the "dri" things to see if that could solve the issue, but I had no luck.

I don't know which codecs the webcam uses to reproduce the video... as I said before, I tried cheese, skype and now the first command line in the thread you suggested.

Well, I don't know if I answered all your questions, It's been almost a year with Linux (Opensuse) and I'm learning things everyday. Thank you very much and all the people in the forum for the help!
Reply With Quote
  #4 (permalink)  
Old 03-Jun-2009, 11:03
cjcox's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: Frisco, TX
Posts: 778
cjcox hasn't been rated much yet
Default Re: Black screen when playing video (NVIDIA)

On Tue, 2009-06-02 at 20:36 +0000, santasemilla wrote:
....snippy...

>
> Back to Yast, click on the Nvidia drivers as usual to install it, sax2,
> reboot aaand..... yup, problem.
>
> The problem is when I reproduce videos or try to use the webcam I see
> the small screen all in black (this is to clarify that the video
> reproduction is failing, not the whole enviroment). I can hear the sound
> on videos and yes, I can even take a picture with my webcam on cheese!!
> but I can't see the image "live".

....


Not sure of the issue... but as a not so great workaround try using
x11 (aka xshm) for your video output (likely it defaults to xv).

My guess is that will work, albeit at a performance penalty... depends
on how much cpu muscle you have.


Reply With Quote
  #5 (permalink)  
Old 03-Jun-2009, 11:24
santasemilla's Avatar
Puzzled Penguin
 
Join Date: Aug 2008
Location: Houghton, MI
Posts: 26
santasemilla hasn't been rated much yet
Default Re: Black screen when playing video (NVIDIA)

Quote:
Originally Posted by cjcox View Post
On Tue, 2009-06-02 at 20:36 +0000, santasemilla wrote:
....snippy...

>
> Back to Yast, click on the Nvidia drivers as usual to install it, sax2,
> reboot aaand..... yup, problem.
>
> The problem is when I reproduce videos or try to use the webcam I see
> the small screen all in black (this is to clarify that the video
> reproduction is failing, not the whole enviroment). I can hear the sound
> on videos and yes, I can even take a picture with my webcam on cheese!!
> but I can't see the image "live".

....


Not sure of the issue... but as a not so great workaround try using
x11 (aka xshm) for your video output (likely it defaults to xv).

My guess is that will work, albeit at a performance penalty... depends
on how much cpu muscle you have.
Great! I could change xshm in Kaffeine (KDE3) but not in kaffeine KDE4 as it has no XINE configuration option... Also, in mplayer I have no xshm among the options but, as said before, GL2 worked fine. ...the only problem now is... how should I get video from my webcam?! I would like to have it on skype as it's a cool way to keep in touch with family (I'm in the USA and they are in Argentina... hehe)

Any way to find out how to change the output for the webcam... to see if I can do something of the sort of the "xshm"??

Also, I recognize that I'm having some problems with the xine codecs.. that 1.1.15 vs 1.1.16 versions. Where would you recommend to get them from? (Of course after uninstalling the actual ones).


Maybe another useful info is the output of Kaffeine (KDE4) when trying to reproduce a DVD:
__________________________________________________ __
Luk@Bourne:~> KCrash: Application 'kaffeine' crashing...
sock_file=/home/Luk/.kde4/socket-Bourne/kdeinit4__0
libdvdnav: Using dvdnav version 1.1.16.3 from the xine project - Home
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav: DVD Title: MODERN TIMES FILM
libdvdnav: DVD Serial Number: c2da031d
libdvdnav: DVD Title (Alternative): MODERN TIMES FILM
libdvdnav: Unable to find map file '/home/Luk/.dvdnav/MODERN TIMES FILM.map'
libdvdnav: DVD disk reports itself with Region mask 0x00f20000. Regions: 1 3 4

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000012e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x0000016a
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000052d0
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdread: Can't seek to block 370
libdvdread: Can't seek to block 370
libdvdread: Can't seek to block 371
Unable to start Dr. Konqi
__________________________________________________ ___

...thanks again!

Lucas
Reply With Quote
  #6 (permalink)  
Old 03-Jun-2009, 12:30
oldcpu's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,774
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: Black screen when playing video (NVIDIA)

Quote:
Originally Posted by santasemilla View Post
Also, I recognize that I'm having some problems with the xine codecs.. that 1.1.15 vs 1.1.16 versions. Where would you recommend to get them from? (Of course after uninstalling the actual ones).
One typically gets most codecs they need by installing the packman packaged libffmpeg0 (which picks up codecs via its dependencies), w32codec-all, and libquicktime0.

What is the output of:
Code:
rpm --query --all 'libav*' 'libpostproc*' 'libswscale*' '*xine*' '*gst*' '*layer*' '*vlc*' | grep -v avahi | sort
this is from RedDwarf's thread "Check your multimedia problem in ten steps" : Check your multimedia problem in ten steps - openSUSE Forums

Also, what is the output of:
Code:
grep -i driver /etc/X11/xorg.conf
I can't help with Skype. I never use it.
Reply With Quote
  #7 (permalink)  
Old 03-Jun-2009, 12:53
cjcox's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: Frisco, TX
Posts: 778
cjcox hasn't been rated much yet
Default Re: Black screen when playing video (NVIDIA)

On Wed, 2009-06-03 at 16:26 +0000, santasemilla wrote:
....
>
> Great! I could change xshm in Kaffeine (KDE3) but not in kaffeine KDE4
> as it has no XINE configuration option...


xine options can be changed with .... xine!!

I'm not an avid KDE4 fan... so who knows....


> Also, in mplayer I have no
> xshm among the options but, as said before, GL2 worked fine. ...the only


The equivalent in mplayer is x11.

> problem now is... how should I get video from my webcam?! I would like
> to have it on skype as it's a cool way to keep in touch with family
> (I'm in the USA and they are in Argentina... hehe)


With regards to webcam. I use luvcview to test (only works for some
web cams).

For skype you might find that disabling udev device creation for your
webcam might fix the problem.


See:
http://forums.opensuse.org/applicati...my-webcam.html



Reply With Quote
  #8 (permalink)  
Old 03-Jun-2009, 13:01
santasemilla's Avatar
Puzzled Penguin
 
Join Date: Aug 2008
Location: Houghton, MI
Posts: 26
santasemilla hasn't been rated much yet
Default Re: Black screen when playing video (NVIDIA)

Quote:
Originally Posted by oldcpu View Post
One typically gets most codecs they need by installing the packman packaged libffmpeg0 (which picks up codecs via its dependencies), w32codec-all, and libquicktime0.

What is the output of:
Code:
rpm --query --all 'libav*' 'libpostproc*' 'libswscale*' '*xine*' '*gst*' '*layer*' '*vlc*' | grep -v avahi | sort
this is from RedDwarf's thread "Check your multimedia problem in ten steps" : Check your multimedia problem in ten steps - openSUSE Forums

Also, what is the output of:
Code:
grep -i driver /etc/X11/xorg.conf
I can't help with Skype. I never use it.
Hi again,

The first output is:

banshee-1-backend-engine-gstreamer-1.4.3-1.2.1
gst-fluendo-mp3-2-37.3
gstreamer-0_10-0.10.23-16.2
gstreamer-0_10-devel-0.10.23-16.2
gstreamer-0_10-lang-0.10.23-16.2
gstreamer-0_10-libnice-0.0.6-8.7
gstreamer-0_10-plugins-bad-0.10.12-17.2
gstreamer-0_10-plugins-bad-lang-0.10.12-17.2
gstreamer-0_10-plugins-base-0.10.23-14.3
gstreamer-0_10-plugins-base-devel-0.10.23-14.3
gstreamer-0_10-plugins-base-lang-0.10.23-14.3
gstreamer-0_10-plugins-farsight-0.12.11-12.5
gstreamer-0_10-plugins-good-0.10.15-21.2
gstreamer-0_10-plugins-good-lang-0.10.15-21.2
gstreamer-0_10-schroedinger-1.0.5-42.pm.4
gstreamer-0_10-utils-0.10.23-16.2
gstreamer-utils-0.10.23-16.2
kde4-kmplayer-0.11.0-0.pm.2
libavcodec52-0.5-0.pm.3
libavdevice52-0.5-0.pm.3
libavformat52-0.5-0.pm.3
libavutil49-0.5-0.pm.3
libgstapp-0_10-0-0.10.23-14.3
libgstinterfaces-0_10-0-0.10.23-14.3
libgstphotography-0_10-0-0.10.12-42.pm.1
libgstreamer-0_10-0-0.10.23-16.2
libgstreamer-0_10-0-32bit-0.10.23-16.2
libpostproc51-0.5-0.pm.3
libswscale0-0.5-0.pm.3
libxine1-1.1.16.3-0.pm.2
libxine1-32bit-1.1.16.1-11.1
libxine1-codecs-1.1.16.3-0.pm.2
libxine1-gnome-vfs-1.1.16.3-0.pm.2
libxine1-pulse-1.1.16.3-0.pm.2
libxine-devel-1.1.16.3-0.pm.2
MPlayer-1.0rc2_r29116-2.pm.2
mplayerplug-in-3.55-0.pm.1
phonon-backend-gstreamer-0_10-4.3.1-4.1
phonon-backend-xine-4.1.3-4.1
pullin-flash-player-11.1-1.1
xinetd-2.3.14-129.35


Now, the second output is:

Driver "kbd"
Driver "mouse"
Driver "synaptics"
Driver "nvidia"
Driver "nvidia"


The skype problem should be fixed if I can get video at my webcam somehow... I think

I'll try the 10 steps in that thread later to see if I can come up with something. ...Are those outputs above useful? Can you see something is missing? (The Driver "nvidia" two times is for sure 'cause I use an external monitor with my laptop).

Thank you!!!
Lucas
Reply With Quote
  #9 (permalink)  
Old 03-Jun-2009, 13:14
oldcpu's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,774
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: Black screen when playing video (NVIDIA)

Quote:
Originally Posted by santasemilla View Post
. ...Are those outputs above useful? Can you see something is missing? (The Driver "nvidia" two times is for sure 'cause I use an external monitor with my laptop).
They illustrate that you are NOT getting your gstreamer from Packman. Is there a particular reason why you chose not to use the Packman packaged gstreamer? This includes MANY applications, such as most of the "libg* " apps.

I also note you have 1.0.16 xine rpms. What makes you think you have 1.0.15 ? Why are you referring to 1.0.15 of xine ?? I see no evidence you have 1.0.15 libraries.

As to whether that has anything to do with your problem, I don't know.

Clearly your web cam works with this nvidia driver, as we proved that above. What web cam do you have? What is the output of:
lsusb
Note you need usbutils installed for that command to work.
Reply With Quote
  #10 (permalink)  
Old 03-Jun-2009, 13:20
oldcpu's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,774
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: Black screen when playing video (NVIDIA)

Quote:
Originally Posted by santasemilla View Post
phonon-backend-gstreamer-0_10-4.3.1-4.1
phonon-backend-xine-4.1.3-4.1
Where did you get those versions from? I do not believe they are stable SuSE-GmbH versions (or if they are, the "just" came out"). I do NOT know where you got them from.

The openSUSE versions on my PC are:
phonon-backend-gstreamer-0_10-4.2.0-40.18
phonon-backend-xine-4.1.3-4.2.9

Is this something to do with a KDE-4.x update? A gnome update?
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2