How to stream a USB camera to a desktop screen? (Nearly Solved)

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

How to stream a USB camera to a desktop screen? (Nearly Solved)

Post by April »

I wanted to mess around with cameras and was looking for a program that worked in Pupp that connected via usb to the desktop computer.

There does not seem to be anything standard that is useable to add a camera for something like skype etc .

What are you guys using please?

Last edited by April on Thu May 20, 2021 9:33 pm, edited 2 times in total.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2742 times
Been thanked: 2619 times
Contact:

Re: Add a camera

Post by rockedge »

What kind of cameras? Web cam directly connected by USB cable? Or some network cameras? Are you doing surveillance or something with security in mind?

What are the specs of the computer you plan on using? How many webcams at once.

I do a lot of work with Zoneminder and it does almost every camera type available but it could be overkill if you just need a to see a stream.
That you can do with VLC, guvcview and similar. Also I think MPV can be used with the right commands but I am not sure about that at the moment.

Or you are working with digital film cameras and want to offload photos?

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: How to add a camera?

Post by April »

Just playing with a go pro type of camera (Akaso Brave 4) with an SD card but it has a mode for a USB plug accessing the storage through your PC or running it as a camera on the PC but puppy has no way to input its stream that I have found so far.

No special requirements ,no zoneminder or Digiwatch needed just want to use it as a camera in a Skype way so I can see its picture on my screen . I'm using an old dell optiplex for this.

The camera has a wifi function but I don't want to use that .

Often I have seen in Puppy files in the /dev/ called video1 and video2 . How do I get them to work?

Edit downloaded vlc but not much use yet.
downloaded guvcview and got a camera . .. something to work with , Thanks

Last edited by April on Mon May 17, 2021 9:43 am, edited 1 time in total.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
mikewalsh
Moderator
Posts: 6149
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 788 times
Been thanked: 1976 times

Re: How to add a camera?

Post by mikewalsh »

@April :-

Take a look at this:-

https://oldforum.puppylinux.com/viewtopic.php?t=112299

Watchdog came up with this one years ago, when I was trying to use my old webcam under Racy. It still works under the newest Pups today.

Just out of curiosity, do the following, would you please? Run

Code: Select all

lsusb

.....thru the terminal, and let us have the readout? I'm after the hardware ID numbers; I'll run it through the UVC driver website database.....may help to give us a clue as to how easily - or not - your cam will be recognized by the kernel. And most important; what Puppy is this, please?

Mike. ;)

Last edited by mikewalsh on Mon May 17, 2021 10:13 am, edited 1 time in total.
User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: How to add a camera?

Post by April »

Yeh Mike its showing up there and I've now got a stream in guvcview to play with . I'll have a look at yours shortly thanks.

root# lsusb
Bus 002 Device 002: ID 0cf3:1006 Atheros Communications, Inc. TP-Link TL-WN322G v3 / TL-WN422G v2 802.11g [Atheros AR9271]
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0603:8612 Novatek Microelectronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard
Bus 003 Device 002: ID 062a:4101 Creative Labs Wireless Keyboard/Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root#

Novatek ..AKASO Brave 4 camera
I'm using xenialpup64-7.5

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
mikewalsh
Moderator
Posts: 6149
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 788 times
Been thanked: 1976 times

Re: How to add a camera?

Post by mikewalsh »

@April :-

If you're in Xenial64, you'll need the 32-bit compat libs SFS loaded for VideoView, because it's 32-bit only. If you're functional with GuvcView, you may as well stick with that if it's working OK...

Mike. ;)

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: How to stream a USB camera to a laptop screen? (Solved)

Post by April »

Yeh Thanls Mike . The same old problem with no audio in what seems like all video programs in Puppy . I might give it a run in Fossapup64-9.5

Whats the source of that "32-bit compat libs SFS" or maybe the right name ?
OK found it
https://distro.ibiblio.org/puppylinux/p ... nial64.sfs

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: How to stream a USB camera to a laptop screen? (Solved)

Post by April »

Sometimes Puppy can be a pain .
Found the sfs Mike but sfs on the fly does not want to load it with this error message.

sfsload.jpg
sfsload.jpg (8.37 KiB) Viewed 1178 times

Something is wrong with the sfs file as I can't look inside it either . It won't load .
Don't know if anyone maintains the sfs libraries?

How can you look inside a sfs file otherwise?

Last edited by April on Tue May 18, 2021 4:53 pm, edited 1 time in total.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: How to stream a USB camera to a laptop screen? (Solved)

Post by OscarTalks »

If you mean the audio from the camera which is coming down the USB cable it will probably show up as a different (USB) soundcard on the system, so you will have to look for that in your device selection.

User avatar
mikewalsh
Moderator
Posts: 6149
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 788 times
Been thanked: 1976 times

Re: How to stream a USB camera to a laptop screen? (Solved)

Post by mikewalsh »

Yah, Oscar's right.

If you want to find out the device designation of your webcam's sound card, there's one of two ways to obtain it:-

Either by entering

Code: Select all

alsamixer

.....in the terminal and hitting 'Enter', followed by selecting F6 to choose sound card. You can then set the recording level from the 'sliders' - remember this is operated via the cursor keys, not the mouse. You may need to select F5 (show all); alsamixer typically shows playback (output) controls by default, and a webcam only has recording (input) controls......think about it!

Or, if you enter

Code: Select all

arecord -l

.....('aplay' won't do anything; remember, no 'playback device'), you can get the 'hw:x,x' device number this way. It's no good trying to access the webcam's sound card via the ALSA Sound Wizard, because this doesn't normally show up here. It's possible it may if yours is an integrated cam built-in to a lappie, but the sound card of a USB 'external' cam - like my Logitech c920 HD 'Pro' - doesn't usually get detected via the Sound Wizard.....

'alsamixer' in the terminal really is the best way to adjust the recording/input level for a webcam's card. If this is a laptop, you'll typically have a 'system' mike built-in, and if you're using an external USB webcam (which has probably got its own mike), then you'll have two to choose from.

--------------------------------------------------------

Audio recording CAN be achieved in Guvcview, but the app is quite fussy as to what container/codec you choose to use (there's quite a selection to choose from!) It also helps to make sure you're using a 'modern' version of 'ffmpeg', since this is where most of the audio codecs'n'stuff are obtained.....and Pup's default ffmpeg is often very minimal & 'stripped-back'. I'll be happy to elaborate on this tomorrow, if you want, but ATM it's "beddy-byes" time for me..!! :D

Catch ya later.

Mike. ;)

Clarity
Posts: 3821
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1621 times
Been thanked: 520 times

Re: How to stream a USB camera to a laptop screen? (Solved)

Post by Clarity »

Any chance a 64bit version will surface? OR is there a PPM equivalent for USB cameras?

Wanna use with this FossaPUP64

Code: Select all

root# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 026: ID 10d5:55a4 Uni Class Technology Co., Ltd 
Bus 006 Device 025: ID 0bda:58bb Realtek Semiconductor Corp. 
Bus 006 Device 024: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 006 Device 023: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 006 Device 022: ID 058f:9254 Alcor Micro Corp. Hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID abcd:1234 Unknown 1
Bus 001 Device 002: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Webcam help.png
Webcam help.png (98.9 KiB) Viewed 1087 times
User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: How to stream a USB camera to a laptop screen? (Solved)

Post by April »

http://distro.ibiblio.org/puppylinux/pe ... s-fossa64/

@Clarity Maybe see if the 32bit_compatibility_libs_fossa64 works?

Last edited by April on Tue May 18, 2021 5:32 pm, edited 2 times in total.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: How to stream a USB camera to a laptop screen? (Solved)

Post by April »

OscarTalks wrote: Tue May 18, 2021 12:16 am

If you mean the audio from the camera which is coming down the USB cable it will probably show up as a different (USB) soundcard on the system, so you will have to look for that in your device selection.

Hey Oscar . Yes I have found it as DEMO1 and have that in the camera screen but no sound yet.

Hardware.jpg
Hardware.jpg (73.45 KiB) Viewed 1062 times
hardinfo.jpg
hardinfo.jpg (48.02 KiB) Viewed 1065 times

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: How to stream a USB camera to a laptop screen? (Solved)

Post by April »

mikewalsh wrote: Tue May 18, 2021 12:52 am

Yah, Oscar's right.

If you want to find out the device designation of your webcam's sound card, there's one of two ways to obtain it:-

Either by entering

Code: Select all

alsamixer

.....in the terminal and hitting 'Enter', followed by selecting F6 to choose sound card. You can then set the recording level from the 'sliders' - remember this is operated via the cursor keys, not the mouse. You may need to select F5 (show all); alsamixer typically shows playback (output) controls by default, and a webcam only has recording (input) controls......think about it!

Or, if you enter

Code: Select all

arecord -l

.....('aplay' won't do anything; remember, no 'playback device'), you can get the 'hw:x,x' device number this way. It's no good trying to access the webcam's sound card via the ALSA Sound Wizard, because this doesn't normally show up here. It's possible it may if yours is an integrated cam built-in to a lappie, but the sound card of a USB 'external' cam - like my Logitech c920 HD 'Pro' - doesn't usually get detected via the Sound Wizard.....

'alsamixer' in the terminal really is the best way to adjust the recording/input level for a webcam's card. If this is a laptop, you'll typically have a 'system' mike built-in, and if you're using an external USB webcam (which has probably got its own mike), then you'll have two to choose from.

--------------------------------------------------------

Audio recording CAN be achieved in Guvcview, but the app is quite fussy as to what container/codec you choose to use (there's quite a selection to choose from!) It also helps to make sure you're using a 'modern' version of 'ffmpeg', since this is where most of the audio codecs'n'stuff are obtained.....and Pup's default ffmpeg is often very minimal & 'stripped-back'. I'll be happy to elaborate on this tomorrow, if you want, but ATM it's "beddy-byes" time for me..!! :D

Catch ya later.

Mike. ;)

Thanks Mike . no joy yet I followed your post through and the camera audio come up as per the post above . I followed the cli commands too but choosing the camera just says this card has no settings .

So I'm sure sound is there somewhere as it pulls up a VU meter on the cameras picture output which varies with hand claps etc . Just the video on playback does not have any sound I can hear.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2742 times
Been thanked: 2619 times
Contact:

Re: How to stream a USB camera to a laptop screen? (Nearly Solved)

Post by rockedge »

@April did you check the audio card selected for output? If the meters are working and respond to the hand claps it should indicate your getting the audio stream but fail on the output.

User avatar
mikewalsh
Moderator
Posts: 6149
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 788 times
Been thanked: 1976 times

Re: How to stream a USB camera to a laptop screen? (Nearly Solved)

Post by mikewalsh »

@April :-

Mm-hm. Well, I agree with rockedge; if you're registering sound via the VU meter, you're obviously getting an input from somewhere.....it may be via your system mic. Even if the card doesn't show settings, you're definitely getting an input.

This is where we come to recording codecs/settings'n'stuff. Click on Video - in the top Menu; try this. For Video codec, choose MPEG4-ASP.....for Audio codec, go with MP3 (MPEG audio layer 3). Try recording a short clip. Any joy?

(I've just made a short recording clip with those settings, and it works fine for me.)

--------------------------------

As far as the Linux port of Skype is concerned, in Settings - Audio & Video, for microphone the drop-down should list all the available inputs.....this would include the webcam's 'mike' AND the system's built-in 'mike', too. Much as I hate to admit it (!!), MyCrudSoft have made a pretty thorough job of making it run well under Linux nowadays; I can't fault them in that respect.

It may be worth upgrading ffmpeg. Fred and I have both recommended Puppians use John van Sickle's 'static' builds of this; the one you want may look HUGE compared to the default one - 47MB compared to about 900 KB! - but it's been compiled with absolutely everything including the kitchen sink, and it makes so many other things in Puppy just work 'properly'.

You can find the .pet package here:-

https://www.mediafire.com/file/3whe9r20 ... 4.pet/file

I've uploaded these to MediaFire, since I gather you don't trust Google....! :D

---------------------------------

@rockedge :-

Guvcview lets you specify a 'default' card. I presume that means Guvcview then uses that card for both input AND output. It doesn't give you the option to specify separate input & output.

Mike. ;)

Clarity
Posts: 3821
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1621 times
Been thanked: 520 times

Re: How to stream a USB camera to a laptop screen? (Nearly Solved)

Post by Clarity »

I saw this and will report results for USB Camera on one of the WoofCE released 64bit PUP distro.

I want to avoid cluttering the system with any 32bit libs, if possible. Thanks for the offer and I'm confident that the 32bit library addition to a 64bit PUP could work in this case.

If success in my tests, that PET could be added to the current WoofCE repo for other PUP-DOG laptop and desktop users.

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: How to stream a USB camera to a desktop screen? (Nearly Solved)

Post by April »

well I have tried everything mentioned and no sound .

The VU bars are on the screen when I record and there is activity on them when I clap. I think they are added by the Brave 4 camera.
When I turn everything up full in sound I can just hear a clap but only just.I have external speakers and the amplification is turned up full.
On just one setting I get a heavy rushing white noise which I think is where I probably should be, but reducing everything to play around with it won't give me any sound.

The sound card is integrated in the motherboard . Is there a sound card I can add to my desktop to try to isolate the problem ?
I'll buy one through ebay or ali and try that.

Screen Retrovol.jpg
Screen Retrovol.jpg (185.37 KiB) Viewed 1018 times

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

User avatar
mikewalsh
Moderator
Posts: 6149
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 788 times
Been thanked: 1976 times

Re: How to stream a USB camera to a desktop screen? (Nearly Solved)

Post by mikewalsh »

@April :-

What sort of connectors does your Brave camera have? Does everything go via a USB connector.....or do you have a separate lead with a 3.5 mm jack plug for the audio? Some do, some don't.....

EDIT:- Ah. Just d/l'ed and had a quick look at the user manual. You've got the same issue that I had when I tried to use a digital camera as a web-cam, only more so. Seems your Akaso Brave 4 is designed to work in conjunction with a mobile phone app via wifi. I very much doubt that that USB connector is doing quite what you think it is; it definitely didn't with my old Vivitar.....didn't even recognise it. Of course, with that you were supposed to install supplied Windoze drivers from a CD....and it's years since I tried it; could work far better with a more modern kernel, I suppose.

Trying to use these types of camera never works as well as a dedicated webcam.

Mike. ;)

User avatar
April
Posts: 493
Joined: Tue Dec 29, 2020 9:06 pm
Has thanked: 57 times
Been thanked: 28 times

Re: How to stream a USB camera to a desktop screen? (Nearly Solved)

Post by April »

It has a normal android phone type connector and another I think is a type C connector . They said there is nothing for an external mike but there is a small slot cut for sound as normal use records sound.

I'm pretty sure if I could install apulse or other audio system it would work but Puppy does not like to install them well.They don't work .
Using Fossapup it's 'gucview' program crashes as soon as I try recording or a photo. Screen comes up fine though .Pity.

I have some other live distros on CD I'll try.

The Australian State Governments have all enacted laws to steal your assets on your death. All legal paperwork is binned and all assets seized on one disgruntled child's complaint.Move them well before you die or go into a home.

Post Reply

Return to “Users”