How to record video with audio(from microphone) using USB webcam
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
ROS-Kinetic
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?
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.
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?