Skip to content

Recording audio from host pc: synchronize audio and video #26

@vinipsmaker

Description

@vinipsmaker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions