ffmpeg vs. SoX for resampling |
ffmpeg vs. SoX for resampling |
Feb 5 2013, 11:00
Post
#1
|
|
![]() Group: Members (Donating) Posts: 102 Joined: 1-October 01 From: Doylestown, PA Member No.: 145 |
I just found out that TAudioConverter, although it has SoX support, uses ffmpeg for bitdepth changes, resampling, and dither. I don't use those functions very much, but I'm curious if anyone has done a quality comparison between the two.
|
|
|
|
![]() |
Feb 5 2013, 11:28
Post
#2
|
|
|
Group: Super Moderator Posts: 4483 Joined: 23-June 06 Member No.: 32180 |
I’m no authority, but there’s always good old http://src.infinitewave.ca/
SoX 14.4.0: QUOTE ![]() FFmpeg 0.10.4: QUOTE ![]() |
|
|
|
Feb 5 2013, 12:36
Post
#3
|
|
![]() Group: Members (Donating) Posts: 102 Joined: 1-October 01 From: Doylestown, PA Member No.: 145 |
I’m no authority, but there’s always good old http://src.infinitewave.ca/ SoX 14.4.0: FFmpeg 0.10.4: Well, FFmpeg is now up to version 1.1.1, and Peter has incorporated it into fb2k, so I think we can assume the program's improved. Whether it's improved for this functionality is another question. Of course, there's a 14.4.1 version of SoX just out, too. |
|
|
|
Feb 5 2013, 13:05
Post
#4
|
|
![]() Group: Members Posts: 267 Joined: 3-August 08 From: UK Member No.: 56644 |
Well, FFmpeg is now up to version 1.1.1, and Peter has incorporated it into fb2k, so I think we can assume the program's improved. Whether it's improved for this functionality is another question. Of course, there's a 14.4.1 version of SoX just out, too. Oddly, SoX itself is a little behind the curve: 14.4.1 contains the same (slow, by comparison) version of the resampler that's been there for some years, so until SoX 14.5 is released (couple of months I think), the ffmpeg route will give better performance (about 2-3 x faster). Don't know if it made it into 1.1.1 or not, but I saw that ffmpeg has also recently ported (most of) SoX's dither code. |
|
|
|
Feb 5 2013, 16:32
Post
#5
|
|
|
Group: Members Posts: 154 Joined: 14-February 12 Member No.: 97162 |
|
|
|
|
Feb 5 2013, 17:23
Post
#6
|
|
![]() Group: Members Posts: 267 Joined: 3-August 08 From: UK Member No.: 56644 |
I am not sure speed is the correct measure of quality. The conversion quality is the same (graphs for the newer version are @ infinitewave under Audacity 2.0.3); the performance is higher cos it's faster than before. And this build wasn't compiled with --enable-libsoxr option Zeranoe takes ffmpeg build requests at: http://ffmpeg.zeranoe.com/forum/viewforum.php?f=10 |
|
|
|
Feb 12 2013, 15:01
Post
#7
|
|
|
Group: Members Posts: 154 Joined: 14-February 12 Member No.: 97162 |
The conversion quality is the same (graphs for the newer version are @ infinitewave under Audacity 2.0.3); the performance is higher cos it's faster than before. Do I understand correctly Audacity 2.0.3 is using new ffmpeg through which it uses libsoxr for the resampling? I would like to add a new resampling option to linux alsa rate plugin. Until recently I thought sox implementation was the best from the quality/speed POW. Using a library compatible with libsamplerate API would make the addition simple as libsamplerate is already supported by the plugin. Thanks for the info. |
|
|
|
Feb 13 2013, 15:49
Post
#8
|
|
|
Group: Members Posts: 47 Joined: 7-February 12 Member No.: 96993 |
The conversion quality is the same (graphs for the newer version are @ infinitewave under Audacity 2.0.3); the performance is higher cos it's faster than before. I would like to add a new resampling option to linux alsa rate plugin. I already did this. Replicating the libsamplerate code in alsa-plugins with some gluing just works (with some quality modes). Here is a patch that implements soxr_lsr_{HQ,MQ,LQ} : http://ompldr.org/vaGc3Ng/Initial-soxr-lsr-support.patch I shared more info here: http://www.hydrogenaudio.org/forums/index....st&p=817595 |
|
|
|
jkauff ffmpeg vs. SoX for resampling Feb 5 2013, 11:00
bandpass QUOTE (db1989 @ Feb 5 2013, 10:28) Let’s,... Feb 5 2013, 12:33

bandpass Audacity are using libsoxr directly (native API). ... Feb 12 2013, 16:13

phofman QUOTE (2012 @ Feb 13 2013, 16:49) I alrea... Feb 13 2013, 20:29
[JAZ] QUOTE (db1989 @ Feb 5 2013, 11:28) Let’s... Feb 5 2013, 20:36
db1989 I did notice the large disparity in version number... Feb 5 2013, 12:40
lvqcl Downloaded TAC(0.7.5.938)(portable).7z. It contain... Feb 5 2013, 15:56
db1989 Regardless of different options and builds, someth... Feb 5 2013, 17:50
ozok I've posted a request for a ffmpeg build with ... Feb 5 2013, 18:09
db1989 QUOTE QUOTE
Seems to me that those reflections of... Feb 5 2013, 20:51
lvqcl QUOTE (Alexey Lukin @ Jul 31 2008, 04:10)... Feb 5 2013, 21:55
bandpass QUOTE (lvqcl @ Feb 5 2013, 20:55) + a thr... Feb 5 2013, 22:39
bandpass FFmpeg native is even worse going the other way (i... Feb 5 2013, 22:29
mavere QUOTE (db1989 @ Feb 5 2013, 02:28) I... Feb 6 2013, 02:58
nu774 QUOTE (mavere @ Feb 6 2013, 10:58) Apple ... Feb 6 2013, 05:06
IgorC http://src.infinitewave.ca/images/Tone/ffmpeg.png
... Feb 6 2013, 03:43
bandpass QUOTE (IgorC @ Feb 6 2013, 02:43) ffmpeg... Feb 6 2013, 07:48
Alexey Lukin These spectral peaks are not bad only for a 1 kHz ... Feb 6 2013, 04:33
LithosZA QUOTE ve posted a request for a ffmpeg build with ... Feb 6 2013, 08:17
ozok zeranoe kindly supplied it after my request. Feb 6 2013, 13:01
soulsearchingsun So, where is TOS#8 when everyone agrees on looking... Feb 6 2013, 14:34
pdq QUOTE (soulsearchingsun @ Feb 6 2013, 08... Feb 6 2013, 14:46
db1989 QUOTE (soulsearchingsun @ Feb 6 2013, 13... Feb 6 2013, 15:27
bandpass QUOTE (soulsearchingsun @ Feb 6 2013, 13... Feb 7 2013, 08:57
[JAZ] As always, there is tradeoff between speed and acc... Feb 6 2013, 23:36
saratoga QUOTE ([JAZ] @ Feb 6 2013, 17:36)... Feb 12 2013, 16:50
halb27 QUOTE ([JAZ] @ Feb 6 2013, 23:36)... Feb 12 2013, 18:30
bandpass QUOTE (halb27 @ Feb 12 2013, 17:30) Can y... Feb 14 2013, 08:04
[JAZ] @ halb27: I haven't checked other software, b... Feb 12 2013, 20:25
lvqcl QUOTE ([JAZ] @ Feb 12 2013, 23:25... Feb 12 2013, 20:39
knutinh QUOTE ([JAZ] @ Feb 12 2013, 20:25... Feb 13 2013, 16:04
saratoga QUOTE ([JAZ] @ Feb 12 2013, 14:25... Feb 13 2013, 18:32
[JAZ] @ saratoga:
As I said, my knowledge of this is av... Feb 13 2013, 22:11
Rotareneg QUOTE ([JAZ] @ Feb 13 2013, 15:11... Feb 14 2013, 05:39
saratoga QUOTE ([JAZ] @ Feb 13 2013, 16:11... Feb 14 2013, 07:01
halb27 So SSRC high precision is a good approximation to ... Feb 14 2013, 09:07
bandpass SSRC uses kaiser-windowed sinc. Feb 14 2013, 13:48
halb27 Sorry, I don't know what this means in terms o... Feb 14 2013, 19:03
saratoga QUOTE (halb27 @ Feb 14 2013, 13:03) Sorry... Feb 14 2013, 19:12
bandpass It has some problems upsampling though: Feb 14 2013, 22:28
saratoga QUOTE (bandpass @ Feb 14 2013, 16:28) It ... Feb 15 2013, 01:53
bandpass QUOTE (saratoga @ Feb 15 2013, 00:53) Are... Feb 15 2013, 07:00
halb27 No problem for me, I'm only interested in down... Feb 14 2013, 23:05
Wombat QUOTE (bandpass @ Feb 14 2013, 23:28) It ... Feb 15 2013, 03:42![]() ![]() |
|
Lo-Fi Version | Time is now: 18th June 2013 - 21:42 |