PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 25, 2012, 03:54:19 AM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: WXcam, any chance to get it back?  (Read 633 times)
TheGhost
Sr. Member
****
Offline Offline

Posts: 397


Boo!


« on: January 23, 2012, 04:10:03 PM »

It's my understanding that Wxcam is no longer available.

I'm looking for an alternative, a SMALL applications that can be used for basic webcam check, and perhaps taking a quick picture with it.

The emphasis is in small. I'm currently building a base remaster that started with MiniMe; but I need to install it in a 8 - 10 GB hard drive. So space used is a concern.

I know about Cheese and Camorama, but both are Gnome based and have to install a lot of Gnome packages; that makes them too big for what I need.
Same goes to VLC; too big (and I'll be using SMplayer since the Mplayer pluging works very nicely with Firefox)

There is an app called "Kamoso", but it doesn't work for me; it just crashes when I attempt to take a picture (or do anything else, for that matter). The crash gives the following output when run from console:

Quote
[guest@localhost ~]$ kamoso

(<unknown>:16829): GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_ELEMENT (element)' failed

(<unknown>:16829): GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_ELEMENT (element)' failed

(<unknown>:16829): GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_ELEMENT (element)' failed
KCrash: Application 'kamoso' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/guest/.kde4/socket-localhost.localdomain/kdeinit4__0

[1]+  Detenido                kamoso
[guest@localhost ~]$

So the questions are:

1- Any chance to get WXcam back?
2- Alternatively, any ideas on how to fix Kamoso?

TIA.
Logged

I was once a sinner, but I have seen the light. Linux saved me!
Leiche
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2704


God knows, i'm not an Angel!


WWW
« Reply #1 on: January 23, 2012, 05:09:04 PM »

What will you do?

Works this in a konsole?
Code:
mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 30
or
Code:
mencoder tv:// -tv device=/dev/video0 vcodec=h264 vb=1300 -ovc lavc -o test.mp4
last command create a video file in your home names test.mp4
Logged

TheGhost
Sr. Member
****
Offline Offline

Posts: 397


Boo!


« Reply #2 on: January 24, 2012, 12:40:17 AM »

What will you do?

Works this in a konsole?
Code:
mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 30
or
Code:
mencoder tv:// -tv device=/dev/video0 vcodec=h264 vb=1300 -ovc lavc -o test.mp4
last command create a video file in your home names test.mp4

That is simply BRILLIANT!! It worked perfectly!

I didn't know I could do that with MPlayer.
Now all I have to do is to configure that url in the TV configuration in SMplayer, and I have a quick and easy way to test webcams, grab images or recordings, etc.

You're a genius!

Thanks a million.
Logged

I was once a sinner, but I have seen the light. Linux saved me!
Leiche
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2704


God knows, i'm not an Angel!


WWW
« Reply #3 on: January 24, 2012, 12:22:19 PM »

you are welcome, TheGhost  Smiley
Logged

Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4610


MLUs Forever!


« Reply #4 on: January 24, 2012, 01:36:41 PM »

What will you do?

Works this in a konsole?
Code:
mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 30
or
Code:
mencoder tv:// -tv device=/dev/video0 vcodec=h264 vb=1300 -ovc lavc -o test.mp4
last command create a video file in your home names test.mp4

Is there a simple way to add to that mencoder command so that it records audio also from the webcam?

only out of interest, not need  Wink

thanks
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Leiche
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2704


God knows, i'm not an Angel!


WWW
« Reply #5 on: January 24, 2012, 03:43:12 PM »

mencoder will not capture from audiocard or else, but you can try arecord.

I play here with a little script, but get it not working  Embarrassed.
I can capture video, and i can capture audio, but not together audio, and video.  Roll Eyes
Logged

Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4610


MLUs Forever!


« Reply #6 on: January 24, 2012, 03:51:53 PM »

mencoder will not capture from audiocard or else, but you can try arecord.

I play here with a little script, but get it not working  Embarrassed.
I can capture video, and i can capture audio, but not together audio, and video.  Roll Eyes

Thanks .......  that explains why I also failed  Cheesy Cheesy

I guess both need to be captured and muxed  Sad
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Leiche
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2704


God knows, i'm not an Angel!


WWW
« Reply #7 on: January 24, 2012, 04:00:58 PM »

Here an old script, (my first script), changed for webcam, maybe it's work for you

Code:
#!/bin/bash
#
# saa7134
#
# Shellscript to capture a video with sound
#
# Recommended: mplayer, mencoder, yad
#
# Daniel Meiß-Wilhelm <MeissSW01@aol.com>
# 17. Januar 2009
#
# Licence: GPL, V2
#
# Information
#
 yad --title "WebcamDub for Webcam" --text "Welcome to WebcamDub !\nRecord will starts, after closing preview window!"
#
# Preview window
#
mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 30
#
# save in directory
#
 NAME=$(yad --title "Save record ..." --file-selection --save )
if  [ "$NAME" = "" ]; then
     exit
    else

#
# Information
#
    yad --title "WebcamDub" --text "Stop record with\n\nStrg+C !"
#
# Audio and Video record
#
    arecord -D hw:0,0 -f cd -t wav $NAME.wav & xterm -e mencoder tv:// -tv device=/dev/video0 vcodec=h264 vb=1300 -ovc lavc -noautoexpand -nosound -o $NAME
    killall arecord
    mencoder -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc copy -o $NAME.mp4 -audiofile $NAME.wav $NAME
#
# Information
#
    yad --title "WebcamDub" --text "Recording successful saved!"
    rm -rf $NAME
    rm -rf $NAME.wav
#



fi


An result would be fine  Wink
Logged

Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4610


MLUs Forever!


« Reply #8 on: January 24, 2012, 04:02:13 PM »

Will give it a run and see what happens Wink
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4610


MLUs Forever!


« Reply #9 on: January 24, 2012, 05:10:03 PM »

arecord -v -c 1 -D hw:1,0 -f S16_LE -t wav NAME.wav

As the webcam has only a mono sound, only one channel should be used ....  the CD format will not work I think.

Also, the hw reference for the webcam needs to be defined in the script, as it will change.

The above worked here for recording sound.


Have you tried putting both arecord and mencoder into separate xterm processes?

I think that will get the two files saved ......  then comes the remuxing part

Wink
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Leiche
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2704


God knows, i'm not an Angel!


WWW
« Reply #10 on: January 24, 2012, 05:18:45 PM »




Have you tried putting both arecord and mencoder into separate xterm processes?



I choose here all ways, but i can only record audio, or video, both together don't work.
This script worked on my old tower perfectly under kde3 for a long, long, looooonnnng time Wink
Logged

Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4610


MLUs Forever!


« Reply #11 on: January 24, 2012, 05:38:09 PM »

I have corrupted the script .....  I was not aware it had previously worked  Sad

The commands that work for me are as follows .....

Code:
xterm -e arecord -v -c 1 -D hw:1,0 -f S16_LE -t wav $NAME.wav & xterm -e mencoder tv:// -tv device=/dev/video0 vcodec=h264 vb=1300 -ovc lavc -noautoexpand -nosound -o $NAME.raw

    killall arecord

mencoder -oac copy -ovc copy -o $NAME.avi -audiofile $NAME.wav $NAME.raw

The difficulty I have is that the .raw video file does not play at the correct speed, and thus also does not mux properly.

regards
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Leiche
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2704


God knows, i'm not an Angel!


WWW
« Reply #12 on: January 24, 2012, 05:44:01 PM »

raw?
Maybe avi and muxing to mp4  Roll Eyes
Logged

Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4610


MLUs Forever!


« Reply #13 on: January 24, 2012, 05:55:36 PM »

raw?
Maybe avi and muxing to mp4  Roll Eyes

just a unique name I used .....  could have been .xxx
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Leiche
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2704


God knows, i'm not an Angel!


WWW
« Reply #14 on: January 25, 2012, 12:01:10 PM »

my lost, sorry, maybe will help -fps 30 ?

Or have you to many frames dropped ?
Logged

Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM