I've spent an hour trying to record audio and sync'ing with the video. I'm gonna paste my findings here and possibly get back to this issue when I have the time.
Just put -f pulse -ac 2 -i default to ffmpeg command and it'll record the audio. However, ffmpeg is very picky about ordering of the args. You must put these options after output path.
Also, I've tried to use the arg -use_wallclock_as_timestamps 1, but it wasn't good enough. This thread has a few other methods to try: https://superuser.com/questions/1042988/ffmpeg-audio-out-of-sync-when-transcoding-demuxing-from-dv/1054478
I've also tried to replace ffmpeg with gst-launch, but I only managed to capture the first frame and that's another story anyway.
I've spent an hour trying to record audio and sync'ing with the video. I'm gonna paste my findings here and possibly get back to this issue when I have the time.
Just put
-f pulse -ac 2 -i defaulttoffmpegcommand and it'll record the audio. However,ffmpegis very picky about ordering of the args. You must put these options after output path.Also, I've tried to use the arg
-use_wallclock_as_timestamps 1, but it wasn't good enough. This thread has a few other methods to try: https://superuser.com/questions/1042988/ffmpeg-audio-out-of-sync-when-transcoding-demuxing-from-dv/1054478I've also tried to replace
ffmpegwithgst-launch, but I only managed to capture the first frame and that's another story anyway.