View Issue Details

IDProjectCategoryView StatusLast Update
0003061ardourbugspublic2010-07-22 13:21
Reporteroofus Assigned Tocth103  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformDell D830 core2duo T9300 2.5GHzOSMandrivaOS Version2010
Summary0003061: Importing oggs that are a different sample rate to the current session results in very badly clipped regions
DescriptionImporting oggs that are a different sample rate to the current session results in very badly clipped regions.

This happens when files are copied into the session and the oggs are converted to the native session audio file format. So far I have seen it happen with all combinations of wav files.

I have also experimented with converting the oggs with a two step process (ie ogg -> wav then wav -> wav with sample rate convert) using the same tools as Ardour uses but via the command line. The end result is a non clipping region when the file is imported.
TagsNo tags attached.

Relationships

related to 0001241 closedcth103 Resampling hot sources 44.1khz > 48khz causes distortion 

Activities

cth103

2010-04-05 20:10

administrator   ~0007443

I'm having trouble reproducing this. Can you supply an example OGG file? When you say "very badly clipped", roughly how clipped do you mean?

cth103

2010-04-07 21:06

administrator   ~0007451

This is because the resampling process can generate samples > 1.0, and if the session file format is an integer one, the resampled files will be clipped on being written back to disk.

Two possible solutions suggest themselves:

1. do the resampling twice, first to find the peak level and then second to do the actual conversion & write to disk with appropriate gain factor.

2. stop resampling on the first peak and retry with a gain factor.

We should probably only do gain munging if the session file format cannot cope with samples > 1.0. Option 2 is more efficient if the file doesn't clip much, but potentially much less efficient if, say, it starts off clipping a bit and then gets worse.

cth103

2010-04-09 14:14

administrator   ~0007459

This should be fixed in SVN.

oofus

2010-04-09 14:37

developer   ~0007460

Tested with some files I had been previously having problems with. All seems fine now. Thanks.

cth103

2010-04-09 15:01

administrator   ~0007462

Thanks for testing.

oofus

2010-07-22 13:21

developer   ~0008578

Believed fixed

Issue History

Date Modified Username Field Change
2010-04-05 10:03 oofus New Issue
2010-04-05 20:10 cth103 Note Added: 0007443
2010-04-05 20:10 cth103 Status new => feedback
2010-04-07 21:06 cth103 Note Added: 0007451
2010-04-07 21:06 cth103 Status feedback => confirmed
2010-04-08 01:26 cth103 Relationship added related to 0001241
2010-04-09 14:14 cth103 Note Added: 0007459
2010-04-09 14:14 cth103 Status confirmed => feedback
2010-04-09 14:37 oofus Note Added: 0007460
2010-04-09 15:01 cth103 cost => 0.00
2010-04-09 15:01 cth103 Note Added: 0007462
2010-04-09 15:01 cth103 Status feedback => resolved
2010-04-09 15:01 cth103 Resolution open => fixed
2010-04-09 15:01 cth103 Assigned To => cth103
2010-04-24 10:28 cth103 Category bugs => bugs2
2010-04-24 10:29 cth103 Category bugs2 => bugs
2010-07-22 13:21 oofus Status resolved => feedback
2010-07-22 13:21 oofus Resolution fixed => reopened
2010-07-22 13:21 oofus Note Added: 0008578
2010-07-22 13:21 oofus Status feedback => closed
2010-07-22 13:21 oofus Resolution reopened => fixed