Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: ffmpeg atempo vs. asetrate (Read 4011 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ffmpeg atempo vs. asetrate

Hello,

I have a DVD (25 fps) audio stream --> 01:26:17.920
And I want to put it on a Blu-Ray (23.976 fps) --> have to be 01:29:53,180

01:26:17.920 / 01:29:53,180 = 0,960086627926381

Now I have to commands:
ffmpeg.exe -i audio.flac -filter:a "atempo=0.960086627926381" audio_23976fps_atempo.flac
ffmpeg.exe -i audio.flac -filter:a "asetrate=48000*0.960086627926381,aresample=48000" audio_23976fps_asetrate.flac

What is the difference? What preserves the best quality?
Both have the correct length now.

Best
Felix

Re: ffmpeg atempo vs. asetrate

Reply #1
First changes tempo and tries to keep same pitch.
Second one changes both speed and pitch.

Re: ffmpeg atempo vs. asetrate

Reply #2
Thank you.
What would you suggest for frame rate conversion?

Re: ffmpeg atempo vs. asetrate

Reply #3
atempo if you care for tempo, like for example if there is speech.
otherwise it doesnt matter.