Skip to main content

All Questions

Tagged with
0 votes
0 answers
69 views

Automatically synchronize two audio streams with ffmpeg

Say I have a video of a talk but the soundtrack is bad, and I happen to have an audio recording of the same talk made with a good mike. Is there a way, with ffmpeg, to replace the bad audio with the ...
Sulli's user avatar
  • 137
0 votes
0 answers
85 views

How to force audio not being delayed compared to video while processing ffmpeg filters?

I apply zoom filter on a 2k video but I've noticed the audio doesn't go with it. It's slightly delayed. I guess it's an issue with my cpu or gpu because there are lot of processing. ffmpeg -i e:/vid....
Peter.k's user avatar
  • 149
1 vote
0 answers
377 views

How to detect in real-time, whether there is an audio video sync or lag using FFMPEG?

I'm not asking about how to fix an audio video sync issue or lag. That I'll figure out, using FFMPEG's timeline editing filter. My question is about whether there is a way to detect if the audio and ...
Nav's user avatar
  • 1,089
0 votes
2 answers
1k views

Can ffmpeg automaticaly align audio and video tracks

I have searched and found many similar questions, but not this one. I've experimented and can't come up with an answer. I have a Standalone "Digital TV Converter Box". This receives ...
Bart Lederman's user avatar
0 votes
0 answers
1k views

Fix TS File Audio Sync Issue Using FFMPEG

I have a few .ts files which I've downloaded from the web that I want to chop up into smaller files. I'm using FFmpeg to do this, but each time, after about 3 minutes the video starts to fall behind ...
Steve Brown's user avatar
2 votes
1 answer
2k views

Audio out of sync when using ffmpeg, adelay, and amix

I have a series of mp3 files with a start time offset. I am trying to merge them together with adelay and amix. The following codes run and creates the combined MP3 but when I listen to the final ...
Randy Johnson's user avatar
2 votes
2 answers
1k views

ffmpeg - video and audio out of sync

This seems to be a common problem, but the answers I found don't seem to apply to my situation. I'm merging 6 videos (one of them is a short background that loops) into 1 output video, and the audio ...
Betty Crokker's user avatar
7 votes
2 answers
10k views

Audio is not in sync after re-encoding with ffmpeg of video and changing audio from eac3 to aac

Recently I did a re-encode using ffmpeg and encountered an inaudible but waveform visible audio desynchronization in the process. Source information of MKV file and audio stream: Mediainfo shows a ...
octo's user avatar
  • 81
2 votes
0 answers
686 views

FFMPEG Extracting MP3 from MP4 returns shorter audio file

I have lost so much time over this problem and really need some professional help. Over the last days I recorded some VHS tapes, I used ffmpeg which worked great! When I finished, I noticed that must ...
asergio's user avatar
  • 21
1 vote
1 answer
2k views

Trimming to milllisecond in FFmpeg causing massive slowdown in processing speed

I'm new here, first time joining a forum site like this so my sincerest apologies if I suck! Thanks in advance for your patience. I'm running Windows CMD on my laptop. I am trying to trim (delete) ...
stopper0607's user avatar
1 vote
1 answer
2k views

Ensure audio and video track are EXACTLY the same length

I generate 200 video files based on audio files generated using sox, combined with image files. Most clips are shorter than one second, none is longer than 6. I then concatenate these files and there ...
qubodup's user avatar
  • 9,014
0 votes
1 answer
960 views

Inconsistent audio sync, capturing with V4L2 and PulseAudio

Not sure what's going on here but I can't seem to get consistent audio sync capturing from HDMI with ffmpeg. I can get consistent results from OBS no problem (video is always 100ms or thereabouts ...
spacer GIF's user avatar
2 votes
0 answers
1k views

ffmpeg concat filter adds audio delay gradually

I use ffmpeg to concatenate a lot of video files, using filter_complex. However, the result file has its audio out of sync gradually. and I use mediainfo --Inform='Video;%Duration%' filename.ext and ...
Mr.Clowder's user avatar
0 votes
1 answer
6k views

FFMPEG audio/video out of sync after converting from mkv to mp4 [duplicate]

So, after i convert the mkv file to mp4, the audio plays at the correct time but the video ends early. That means the starting bit of the video has been cut off and so the video starts at a later ...
user902222's user avatar
2 votes
0 answers
1k views

FFMPEG Audio out of sync when concat

I'm processing a load of videos to concat together using Java on a Linux server. First, I mix in an audio track with this process, depending on if the video already has audio or not. ffmpeg -y -i ...
beek's user avatar
  • 355
0 votes
0 answers
1k views

How to account for tempo difference with FFMPEG realtime stream encoding?

Background: I am using FFMPEG to combine an audio and video stream into a combined MPEGTS stream over the network. Video comes encoded in h264 from the raspberry pi camera, audio comes ogg vorbis ...
user680638's user avatar
4 votes
1 answer
11k views

FFmpeg and HLS multiple audio renditions

I'm trying to use FFmpeg to produce an HLS playlist which contains multiple audio renditions, but I cannot get the audio & video tracks to sync together. Here is the scenario: Suppose I have 2 ...
Alfredo Di Napoli's user avatar
0 votes
1 answer
317 views

How to sync video (with dropped frames) with its separately recorded audio?

Video where frames get dropped: procvid.StartInfo.Arguments = "-rtbufsize 1500M -f image2pipe -r 25 -i pipe:.bmp -vcodec libx264 -r 25 C:\\onlyvideo.avi" Audio is recorded simultaneously with video: ...
AY125's user avatar
  • 3
1 vote
1 answer
1k views

ffmpeg: .ogv to .mp4 - audio video not synchronized

I have a video in .ogv and want to convert it to .mp4 so I can upload it to youtube. I am trying ffmpeg for it: ffmpeg -i *.ogv -acodec libmp3lame -vcodec libx264 -crf 18 Windup-demo.mp4 After ...
Ondra Žižka's user avatar
5 votes
4 answers
35k views

FFMPEG audio out of sync when transcoding (demuxing) from DV

I've been stuck with this problem for months. I have over 50 DV tapes (from and old Sony camcorder) to be converted to a more modern, usable format (most likely H264). I've started off with pulling ...
Wojciech's user avatar
2 votes
1 answer
2k views

How can I get exact delay between audio and video with ffmpeg?

I know how to set a delay with ffmpeg's -itsoffset flag, but I want to know how to get and set exact delay time.
mitli's user avatar
  • 23
0 votes
1 answer
268 views

Sync two movies, frame-accurate?

Given video recordings made on two (or more) cameras such as gopros or keychain cameras, and given a "clapperboard" event in each recording, what is a simple way to trim each recording to start with ...
Camille Goudeseune's user avatar
2 votes
0 answers
2k views

ffmpeg - complex filter putting 2 videos side by side results in audio out of sync

We have 2 videos. One is a professionally produced video by an artist that performs a song stopping in certain parts to let the user sing. The second video is a stream that is recorded while the user ...
Lauchenauer's user avatar
2 votes
1 answer
7k views

ffmpeg/avconv async is not working - unsync audio

I have a javascript that records video from a webcam as webm and audio from microphone as wav together. I am encoding these webm and wave files to generate a mp4 file using ffmpeg/avconv. But i've ...
Khaleel's user avatar
  • 1,032
2 votes
0 answers
916 views

Cut part of video with ffmpeg with both sync and quality?

How to cut part of video with ffmpeg without any problems? The following command ffmpeg -i <infile> -ss <starttime> -to <endtime> -vcodec copy -acodec copy <outfile> will ...
Dims's user avatar
  • 12.8k
2 votes
0 answers
2k views

How can I synchronize two audio files?

I've got many audio files of the same scene, but recorded with different devices. I would like to automaticaly synchronize the sources. I searched the web for a solution an I understood that I should ...
Wesley's user avatar
  • 21
1 vote
2 answers
7k views

Out of sync audio video using mencoder

I converted an mkv (matroska) file to avi using ffmpeg: ffmpeg -i input.mkv -f mp4 -vcodec mpeg4 -sameq -r 29.97 -b 512kb -acodec ac3 -ab 128kb -vol 512 output.avi The output file plays fine using ...
user avatar