Ask Your Question

How to record video with audio(from microphone) using USB webcam

asked 2018-08-07 12:03:42 -0600

yahska gravatar image

I am using USB webcam with microphone on it. ROS drivers to read/publish images and read/publish audio messages from webcam are working perfectly fine. My objective is to simply record audio and video from the webcam and write this synced video-audio in video file like *.mp4. Is there any package to simply do this task? Or any suggestions for writing a video-audio recording node? Any help/suggestion is much appreciated.

Drivers to read and publish images: usb_cam

Drivers to read and publish audio messages: audio_common

Environment details:

Ubuntu 16.04 LTS


edit retag flag offensive close merge delete



If you want it in sync I suggest you write your own node which sources audio and video input, writes the combined file and publishes both ros messages. You could use gstreamer for that. But may I ask why you want to use ROS at all for this task?

Humpelstilzchen gravatar image Humpelstilzchen  ( 2018-08-07 14:44:21 -0600 )edit

Thanks for reply. There are 4 cameras that I am using for recording, using only 1 microphone though, all the cameras are mounted on car to record surroundings, going down the line, image processing nodes are to be added.

yahska gravatar image yahska  ( 2018-08-08 07:09:33 -0600 )edit

Then I would vote for gestreamer, you can push the data from gstreamer to ros with an appsink. Or may you could even do that all in gscam?

Humpelstilzchen gravatar image Humpelstilzchen  ( 2018-08-08 11:30:01 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-12-11 04:35:26 -0600

I seldom use USB webcam. I think a screen recorder Mac would make things straight and easier. It helps me record the full screen or a particular area with or without system sound and/or microphone.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-08-07 12:03:42 -0600

Seen: 460 times

Last updated: Aug 07 '18