From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 7B174499D4 for ; Sun, 25 Feb 2024 16:38:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0B4CD68C633; Sun, 25 Feb 2024 18:38:37 +0200 (EET) Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 92DE768AA09 for ; Sun, 25 Feb 2024 18:38:30 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 59379E9EFB for ; Sun, 25 Feb 2024 17:38:30 +0100 (CET) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xuQZQTsjdMsW for ; Sun, 25 Feb 2024 17:38:28 +0100 (CET) Received: from iq (iq [217.27.212.140]) by iq.passwd.hu (Postfix) with ESMTPS id 81E05E9894 for ; Sun, 25 Feb 2024 17:38:27 +0100 (CET) Date: Sun, 25 Feb 2024 17:38:27 +0100 (CET) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Message-ID: <6374b936-e240-12fb-ec44-72d60656a893@passwd.hu> MIME-Version: 1.0 Subject: [FFmpeg-devel] Swresample strangeness X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Hi, I am working on a patch to select a better default packet size for the wav demuxer, since it reads at most 4096 bytes which can cause insanely small packets for files with high channel count. Unfortunately some swresample fate tests blew up, and I wonder if the result of the resampling should be dependant on size of the audio chunks which are being fed to it. My assumption is that if it causes audible difference in the output, then it is likely a bug in swresample, but I am not familiar with its code and its many tunable variables, so if someone could confirm, (or even better, fix it :)) that would be great. Here is a simple command line which should produce silence, but there is an audible regular clicking instead: ffplay -f lavfi -i \ "sine=440:r=8000:samples_per_frame=2048,aresample=44100:filter_size=1:phase_shift=0,aresample=8000,aformat=cl=mono[a]; sine=440:r=8000:samples_per_frame=320, aresample=44100:filter_size=1:phase_shift=0,aresample=8000,aformat=cl=mono[b]; [a][b]amerge,pan=mono|c0=c1-c0" Thanks, Marton _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".