Out of sync audio after processing video with repeated frames The 2019 Stack Overflow...
How to obtain Confidence Intervals for a LASSO regression?
How to save as into a customized destination on macOS?
Are there any other methods to apply to solving simultaneous equations?
One word riddle: Vowel in the middle
Right tool to dig six foot holes?
Can a flute soloist sit?
What does ひと匙 mean in this manga and has it been used colloquially?
Is there any way to tell whether the shot is going to hit you or not?
Why isn't airport relocation done gradually?
Aging parents with no investments
How to manage monthly salary
Why did Acorn's A3000 have red function keys?
Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?
What does "fetching by region is not available for SAM files" means?
Falsification in Math vs Science
Write faster on AT24C32
What is the most effective way of iterating a std::vector and why?
Which Sci-Fi work first showed weapon of galactic-scale mass destruction?
What did it mean to "align" a radio?
Are there incongruent pythagorean triangles with the same perimeter and same area?
What tool would a Roman-age civilization have for the breaking of silver and other metals into dust?
Resizing object distorts it (Illustrator CC 2018)
Can we generate random numbers using irrational numbers like π and e?
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
Out of sync audio after processing video with repeated frames
The 2019 Stack Overflow Developer Survey Results Are Inffmpeg: images to 29.97fps mpeg2, audio not syncFFmpeg convert video w/ dropped frames, out of syncUse FFMPEG for Video to Frames, then Frames to Video with Original SoundExtract video frames display time and frame numberffmpeg - complex filter putting 2 videos side by side results in audio out of syncProblems with joining videos in FFmpeg with a cross-fade effect (buffer queue overflow, frames dropped)ffmpeg slow motion video with audioffmpeg: .ogv to .mp4 - audio video not synchronizedffmpeg: Buffer queue overflow error appears when adding audio with amix to overlay filtered videoVideo cut with missing frames in FFmpeg
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
So I've been succesfully trimming videos with ffmpeg using a command someone provided here, this is it:
-vf "select='between(ss,ss)+between(ss,ss)',setpts=N/FRAME_RATE/TB" -af "aselect='between(ss,ss)+between(ss,ss)',asetpts=N/SR/TB" output.mp4
But now I'm facing an issue. I have a videofile with -it seems- lots of repeated frames, very inconsistent and apparently the command above is telling ffmpeg to get rid of those repeated frames so the output file results in a smooth and consistent framerate. Sounds good but by doing so it shortens the original time and therefore the output file plays very fast. The audio remains at its original speed so they naturally get out of sync.
So, first, I like the idea of getting rid of repeated frames as the output file plays smoothly but at the same time I need ffmpeg to keep the original speed for obvious reasons and plus the audio shouldn't get out of sync in that case, right?
In short, what I need:
Adding an option to the command above that let me keep the original speed even after getting rid of repeated frames so the output plays smoothly and the audio is synchronized.
audio video ffmpeg sync
add a comment |
So I've been succesfully trimming videos with ffmpeg using a command someone provided here, this is it:
-vf "select='between(ss,ss)+between(ss,ss)',setpts=N/FRAME_RATE/TB" -af "aselect='between(ss,ss)+between(ss,ss)',asetpts=N/SR/TB" output.mp4
But now I'm facing an issue. I have a videofile with -it seems- lots of repeated frames, very inconsistent and apparently the command above is telling ffmpeg to get rid of those repeated frames so the output file results in a smooth and consistent framerate. Sounds good but by doing so it shortens the original time and therefore the output file plays very fast. The audio remains at its original speed so they naturally get out of sync.
So, first, I like the idea of getting rid of repeated frames as the output file plays smoothly but at the same time I need ffmpeg to keep the original speed for obvious reasons and plus the audio shouldn't get out of sync in that case, right?
In short, what I need:
Adding an option to the command above that let me keep the original speed even after getting rid of repeated frames so the output plays smoothly and the audio is synchronized.
audio video ffmpeg sync
Paste the readout fromffmpeg -i thisvideo -vf vfrdet -f null -
– Gyan
yesterday
I'm afraid my ffmpeg version is too old to perform that filter (3.2). I'm on debian stable and not even the backports repos have the newer version so...
– midish
yesterday
add a comment |
So I've been succesfully trimming videos with ffmpeg using a command someone provided here, this is it:
-vf "select='between(ss,ss)+between(ss,ss)',setpts=N/FRAME_RATE/TB" -af "aselect='between(ss,ss)+between(ss,ss)',asetpts=N/SR/TB" output.mp4
But now I'm facing an issue. I have a videofile with -it seems- lots of repeated frames, very inconsistent and apparently the command above is telling ffmpeg to get rid of those repeated frames so the output file results in a smooth and consistent framerate. Sounds good but by doing so it shortens the original time and therefore the output file plays very fast. The audio remains at its original speed so they naturally get out of sync.
So, first, I like the idea of getting rid of repeated frames as the output file plays smoothly but at the same time I need ffmpeg to keep the original speed for obvious reasons and plus the audio shouldn't get out of sync in that case, right?
In short, what I need:
Adding an option to the command above that let me keep the original speed even after getting rid of repeated frames so the output plays smoothly and the audio is synchronized.
audio video ffmpeg sync
So I've been succesfully trimming videos with ffmpeg using a command someone provided here, this is it:
-vf "select='between(ss,ss)+between(ss,ss)',setpts=N/FRAME_RATE/TB" -af "aselect='between(ss,ss)+between(ss,ss)',asetpts=N/SR/TB" output.mp4
But now I'm facing an issue. I have a videofile with -it seems- lots of repeated frames, very inconsistent and apparently the command above is telling ffmpeg to get rid of those repeated frames so the output file results in a smooth and consistent framerate. Sounds good but by doing so it shortens the original time and therefore the output file plays very fast. The audio remains at its original speed so they naturally get out of sync.
So, first, I like the idea of getting rid of repeated frames as the output file plays smoothly but at the same time I need ffmpeg to keep the original speed for obvious reasons and plus the audio shouldn't get out of sync in that case, right?
In short, what I need:
Adding an option to the command above that let me keep the original speed even after getting rid of repeated frames so the output plays smoothly and the audio is synchronized.
audio video ffmpeg sync
audio video ffmpeg sync
edited yesterday
midish
asked yesterday
midishmidish
11
11
Paste the readout fromffmpeg -i thisvideo -vf vfrdet -f null -
– Gyan
yesterday
I'm afraid my ffmpeg version is too old to perform that filter (3.2). I'm on debian stable and not even the backports repos have the newer version so...
– midish
yesterday
add a comment |
Paste the readout fromffmpeg -i thisvideo -vf vfrdet -f null -
– Gyan
yesterday
I'm afraid my ffmpeg version is too old to perform that filter (3.2). I'm on debian stable and not even the backports repos have the newer version so...
– midish
yesterday
Paste the readout from
ffmpeg -i thisvideo -vf vfrdet -f null -– Gyan
yesterday
Paste the readout from
ffmpeg -i thisvideo -vf vfrdet -f null -– Gyan
yesterday
I'm afraid my ffmpeg version is too old to perform that filter (3.2). I'm on debian stable and not even the backports repos have the newer version so...
– midish
yesterday
I'm afraid my ffmpeg version is too old to perform that filter (3.2). I'm on debian stable and not even the backports repos have the newer version so...
– midish
yesterday
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1423136%2fout-of-sync-audio-after-processing-video-with-repeated-frames%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1423136%2fout-of-sync-audio-after-processing-video-with-repeated-frames%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Paste the readout from
ffmpeg -i thisvideo -vf vfrdet -f null -– Gyan
yesterday
I'm afraid my ffmpeg version is too old to perform that filter (3.2). I'm on debian stable and not even the backports repos have the newer version so...
– midish
yesterday