R
R
Risent Veber2016-09-14 13:03:17
linux
Risent Veber, 2016-09-14 13:03:17

How to record video synchronized with audio from webcam and microphone on Raspberry Pi?

There is a Raspberry Pi 3 B along with a microphone and a webcam.
When trying to write

ffmpeg -f video4linux2 -i /dev/video0   \
-f pulse -i alsa_input.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00-Device.analog-mono \
 hello.mp4

We have a file in which the sound is faster than the video.
Colleagues, how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2016-09-14
@Zarom

Try with the -itsoffset N
option Play around with this N option until you get the timing you want. For example, slow down the audio for exactly 1 second

ffmpeg -f video4linux2 -i /dev/video0   \
-f pulse -itsoffset -1.0 -i alsa_input.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00-Device.analog-mono \
 hello.mp4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question