Hi Folks,
I need to record some videos, and it would be nice to be able to use the PBP for this. Unfortunately, I'm having some trouble getting ffmpeg to do an acceptable job of keeping recorded audio and video in sync. I wonder if anyone has any tips, or has had any luck recording decent videos?
Here's the command I've been using:
I'm running an up-to-date manjaro system.
Thanks!
I need to record some videos, and it would be nice to be able to use the PBP for this. Unfortunately, I'm having some trouble getting ffmpeg to do an acceptable job of keeping recorded audio and video in sync. I wonder if anyone has any tips, or has had any luck recording decent videos?
Here's the command I've been using:
Code:
v4l2-ctl --set-fmt-video=width=640,height=480 -d /dev/video4 #this video format gets a decent framerate
#I'm not sure if its necessary to force key frames. It seemed to help some.
ffmpeg -f v4l2 -i /dev/video4 \
-f alsa -i default \
-c:v libx264 -preset ultrafast -force_key_frames 00:00:00.000\
-c:a aac \
~/$TITLE.mp4
I'm running an up-to-date manjaro system.
Thanks!