Opened 2 days ago

Last modified 13 hours ago

#11283 reopened defect

"aloop" filter somehow gave misalignment in 48 KHz Stereo WAV

Reported by: Danny Weijermans Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: aloop
Cc: Marton Balint Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

when using the aloop audio filter in ffmpeg

to produce a looped audio section,
it works sample accurate in 44.1kHz mono or stereo,
and in 48kHz mono.

But for some strange reason,

it's off (probably by 1?) when using a 48kHz stereo file.

I didn't test other sample-rates yet..
I'm including a 48kHz stereo wav file containing a pure 480Hz sine,

so you can test yourself.

I'm using for testing:
ffmpeg -y -i /Users/disjt/Desktop/s.wav -filter_complex "aloop=loop=4:start=48000:size=48000" s.wav


Attachments (1)

s.wav (750.2 KB ) - added by Danny Weijermans 2 days ago.
pure 480Hz Sinewave 16bits 48kHz stereo wav file

Download all attachments as: .zip

Change History (3)

by Danny Weijermans, 2 days ago

Attachment: s.wav added

pure 480Hz Sinewave 16bits 48kHz stereo wav file

comment:1 by MasterQuestionable, 20 hours ago

Keywords: seek seeking added
Resolution: duplicate
Status: newclosed
Summary: ffmpeg aloop audio filter not working correctly in 48khz stereo wav"aloop" filter somehow gave misalignment in 48 KHz Stereo WAV

comment:2 by Marton Balint, 13 hours ago

Cc: Marton Balint added
Component: undeterminedavfilter
Keywords: aloop added; seek seeking removed
Resolution: duplicate
Status: closedreopened
Version: unspecifiedgit-master

No, this is a totally different issue, it has nothing to do with seeking. I will send a patch to fix this soon.

Note: See TracTickets for help on using tickets.