LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2010, 09:50 AM   #16
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24

Thanks Celine!

I want to try something. Is there anyway I can capture a log of what's happening when I go to open a movie and it fails? I have VLC player as well as Movie Player that comes with Ubuntu. This may she more light as to what is happening.
 
Old 10-01-2010, 09:59 AM   #17
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Yes, you can do that. Usually, if the application is not making its own log somewhere, we would start it from a console, and use shell redirection to send all output to a file, like so:
Code:
shell$ vlc 2>&1 >> some_file
That will redirect all output to the file called "some_file". If the application (vlc in my example) is producing meaningful output when a problem occurs, it should appear in the file. Basically, the file will capture all the stuff that normally goes onto your console window.

NOTE: WHen wanting to start an application like this, check the manpage to see if there are any additional options that the application can accept, to make it more verbose or to make it output additional information (more than it usually would). Commonly -v or --verbose are used to make an app more verbose.
 
Old 10-01-2010, 12:18 PM   #18
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
How exactly do I run that command. What steps are involved?
 
Old 10-01-2010, 12:28 PM   #19
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Look in your menu and locate the terminal, I believe it's called "Gnome-terminal" on Ubuntu.

Start a terminal (Click the application). You should now have a terminal window, with a little command prompt in it.

At that prompt, enter the following:
Code:
vlc >> my_output_file
NOTE: Replace "vlc" with whatever is the name of the application you want to start.

Now, the application should start. Use it. When done using it, close or exit the application.

Now, you should type into the terminal:
Code:
ls -l # NOTE: that last character is a lowercase L
Somewhere in the list of files we just listed using the `ls` command, you should see your new file, called "my_output_file", which contains anything outputted by the application.

To view that file from your terminal, type ONE of:
Code:
less my_output_file
more my_output_file
Now you can scroll up/down using cursor keys or pageup/down keys or maybe mouse, and you can copy/paste using mouse. When finished looking at the file, press Q.

 
Old 10-01-2010, 12:33 PM   #20
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by rmcellig View Post
How exactly do I run that command. What steps are involved?
In a terminal, of course.

To run Cheese Webcam Booth and capture all its output:

Code:
cheese &> cheese.log
It will write all output to the file "cheese.log".

Note that programs actually have two outputs: stdout and stderr. ">" writes stdout to a file, "2>" writes stderr to a file, and "&>" writes both.

Last edited by MTK358; 10-01-2010 at 12:34 PM.
 
Old 10-01-2010, 12:38 PM   #21
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
Nothing is in the file. It just says my_output_file (END)
 
Old 10-01-2010, 12:39 PM   #22
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
What application did you use? cheese, or vlc or something else?
 
Old 10-01-2010, 12:43 PM   #23
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
I use vlc.
 
Old 10-01-2010, 12:50 PM   #24
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
OK, I haven't got vlc installed, but internet claims that it has a --help option. In a terminal type:
Code:
vlc --help
That will show you options that vlc can accept when you run it. See if there's a "--verbose" option, or a "--debug" option, something that says it will make the program output more information. If so, add it to the command I gave earlier, like so:
Code:
vlc --debug >> my_output_file 2>&1
Now use the application, and again, when done, examine the file created (named "my_output_file" in this example..

If there's no verbose or debug or similar option, then I do not know of a way to make it tell us what it's problem is. Perhaps then try `cheese` as suggested by MTK358
 
Old 10-01-2010, 12:52 PM   #25
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
This is what I saw when running Movie Player:

The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 578 error_code 11 request_code 132 minor_code 19)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)


What should I do?
 
Old 10-01-2010, 12:57 PM   #26
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
If that's correct, and there's a bug in the program, there's not much you can do but report the bug and/or use another program, and/or fix the bug. Or maybe see if there's a newer version of the program, that has already been fixed (check your Synaptic tool for that).

Sometimes I'll search Google for the error message and see what other people have discovered about it. I would search for, in this case:
Code:
totem BadAlloc (insufficient resources for operation)
and see if anything turned up that made sense to me.
 
Old 10-01-2010, 01:04 PM   #27
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
I think I am making some headway. I turned Compiz off and now Movie Player works fine. VLC still won't play anything.
 
Old 10-02-2010, 12:03 PM   #28
no2498
Member
 
Registered: Jan 2010
Posts: 120

Rep: Reputation: 23
this is for the webcam

gstreamer-properties


open a terminal type, gstreamer-properties click enter
click video try v4l1 and v4l2
click the bottom test button for each 1

cheese has a nice help file look in the faq's

try the cam in cheese

hope that helps
 
Old 10-02-2010, 12:08 PM   #29
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
This is the error I get for Video for Linux (v4l) when I press on the test button.

Video for Linux (v4l): Device "/dev/video0" does not exist.

This is the error I get for Video for Linux (v4l)

Video for Linux 2 (v4l2): Cannot identify device '/dev/video0'.
 
Old 10-04-2010, 11:09 AM   #30
no2498
Member
 
Registered: Jan 2010
Posts: 120

Rep: Reputation: 23
what comes up if you type webcam in a terminal
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 5.10 on iMac G3 E-chan Linux - Newbie 13 05-24-2008 11:32 PM
imac vs ubuntu hardy peonuser Linux - Newbie 2 05-19-2008 04:55 AM
Ubuntu on an imac 24 futhamucka Linux - Newbie 3 09-04-2007 06:17 PM
ubuntu on imac lawdiv Ubuntu 7 05-01-2007 11:18 PM
Boot OS9 iMac (tray) to a Linxu iMac and install rudyard Linux - Networking 3 08-13-2006 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration