MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007625ardourbugspublic2018-05-29 02:002018-07-04 05:15
Reporterphildriscoll 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformLinuxOSUbuntu StudioOS Version16.04
Product Version 
Target VersionFixed in Version 
Summary0007625: Recording for a long time creates wav files longer than the maximum allowable length of a wav file
DescriptionRecording in Ardour (I was using version 4.60 bundled with Ubuntu Studio 16.04) for sufficiently long that the wav files in interchange/projectname/audiofiles become larger than 4Gb causes problems when reloading the project, as Ardour treats the file size as whatever it is MOD 4Gb. The unsigned 32 bit integer for the file length inside the wav header would seem to be the limiting factor. No problems are apparent during the recording process, but when the project is reloaded, the available length of audio is just the first FILELENGTH MOD 4Gb.
Steps To ReproduceRecord a track for sufficient length of time so that the WAV file created is greater than 4Gb in length. In my case, I was recording a 6 hour live event for a radio programme with several tracks at 16 bit, 44.1KHz. File size of the resulting WAV files in the interchange/projectname/audiofiles folder was 4.3Gb.
When the project was reloaded later, only the first 0.3Gb of audio was available.
Additional InformationI was able to recover my data by splitting the WAV files into smaller chunks and adding WAV headers, then importing back into Ardour.

I suggest that either Ardour starts making another WAV file when the maximum size is reached, or that the WAV 64 format is used for for the interchange files.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0020281)
x42 (administrator)
2018-05-29 10:12

Ardour from ardour.org comes with libsndfile that automatically upgrades .wav files to .w64 when the limit is reached.

I don't know what libsndfile/ardour versions Ubuntu ships and how Ubuntu configures those, so preferably you'll file a bug with Ubuntu for this issue. It is not under our control.

Meanwhile you can use Ardour-menu > Session > Properties > Media and select "Wave 64" manually.

To recover the files, sndfile-salvage (from the sndfile-programs package or https://github.com/erikd/libsndfile/blob/master/programs/sndfile-salvage.c [^] ) may come in handy.
(0020282)
phildriscoll (reporter)
2018-05-30 09:55

Thanks for the very helpful information x42. I will investigate further and file a bug with Ubuntu if appropriate.
(0020283)
x42 (administrator)
2018-05-30 11:26
edited on: 2018-05-30 11:27

Check ardour-menu > Help > About > Config

The compiler-flags at the end include a '-DHAVE_RF64_RIFF' if Ardour was compiled and linked with a recent libsndfile that supports this feature.

(libsndfile 1.0.26 or newer)

(0020285)
phildriscoll (reporter)
2018-05-31 04:29

That's the problem then. -DHAVE_RF64_RIFF is not present in the Config.

Build documentation: False
Debuggable build: False
Export all symbols (backtrace): False
Install prefix: /usr
Strict compiler flags: []
Internal Shared Libraries: True
Use External Libraries: True
Library exports hidden: True
ALSA Backend: True
ALSA DBus Reservation: False
Architecture flags: None
Aubio: True
AudioUnits: False
Free/Demo copy: False
Build target: x86_64
CoreAudio: False
CoreAudio 10.5 compat: False
CoreAudio/Midi Backend: False
Debug RT allocations: False
Debug Symbols: False
Dummy backend: False
Process thread timing: False
Denormal exceptions: False
FLAC: True
FPU optimization: True
Freedesktop files: True
JACK Backend: True
Libjack linking: link
Libjack metadata: True
LV2 UI embedding: True
LV2 support: True
LXVST support: True
OGG: True
Phone home: False
Program name: Ardour
Samplerate: True
PT format: False
PTW32 Semaphore: False
Translation: True
Unit tests: False
Mac i386 Architecture: False
Mac ppc Architecture: False
Waves Backend: False
Windows VST support: False
Wiimote support: True
Windows key: Mod4><Super
C compiler flags: ['-I/build/ardour-FKnpAB/ardour-4.6~dfsg', '-Wdate-time', '-D_FORTIFY_SOURCE=2', '-g', '-O2', '-fstack-protector-strong', '-Wformat', '-Werror=format-security', '-Wall', '-DWAF_BUILD', '-DNDEBUG', '-fshow-column', '-O3', '-fomit-frame-pointer', '-ffast-math', '-fstrength-reduce', '-pipe', '-DARCH_X86', '-mmmx', '-msse', '-mfpmath=sse', '-DUSE_XMMINTRIN', '-DBUILD_SSE_OPTIMIZATIONS', '-DLXVST_64BIT', '-Wall', '-Wpointer-arith', '-Wcast-qual', '-Wcast-align', '-Wno-unused-parameter', '-DBOOST_SYSTEM_NO_DEPRECATED', '-D_ISOC9X_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-DENABLE_NLS', '-DPROGRAM_NAME="Ardour"', u'-DPROGRAM_VERSION="4"', '-Wstrict-prototypes', '-Wmissing-prototypes']
C++ compiler flags: ['-I/build/ardour-FKnpAB/ardour-4.6~dfsg', '-Wdate-time', '-D_FORTIFY_SOURCE=2', '-g', '-O2', '-fstack-protector-strong', '-Wformat', '-Werror=format-security', '-Wall', '-DWAF_BUILD', '-DNDEBUG', '-fshow-column', '-O3', '-fomit-frame-pointer', '-ffast-math', '-fstrength-reduce', '-pipe', '-DARCH_X86', '-mmmx', '-msse', '-mfpmath=sse', '-DUSE_XMMINTRIN', '-DBUILD_SSE_OPTIMIZATIONS', '-DLXVST_64BIT', '-Wall', '-Wpointer-arith', '-Wcast-qual', '-Wcast-align', '-Wno-unused-parameter', '-DBOOST_SYSTEM_NO_DEPRECATED', '-D_ISOC9X_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-DENABLE_NLS', '-DPROGRAM_NAME="Ardour"', u'-DPROGRAM_VERSION="4"', '-std=c++11', '-DBOOST_NO_AUTO_PTR', '-Woverloaded-virtual', '-Wno-unused-local-typedefs', '-D__STDC_LIMIT_MACROS', '-D__STDC_FORMAT_MACROS', '-DCANVAS_COMPATIBILITY', '-DCANVAS_DEBUG']
Linker flags: ['-Wl,-Bsymbolic-functions', '-Wl,-z,relro', '-Wl,-Bsymbolic-functions', '-Wl,-z,relro']
(0020331)
paul (administrator)
2018-07-04 05:11

Where did you get Ardour from?
(0020332)
phildriscoll (reporter)
2018-07-04 05:13

It was the version bundled with Ubuntu Studio 16.04
(0020333)
paul (administrator)
2018-07-04 05:15

Yes, almost all Linux distributions fail to build Ardour correctly.

This is why we only encourage and support the use of the version we distribute, via http://ardour.org/download [^]

- Issue History
Date Modified Username Field Change
2018-05-29 02:00 phildriscoll New Issue
2018-05-29 10:12 x42 Note Added: 0020281
2018-05-30 09:55 phildriscoll Note Added: 0020282
2018-05-30 11:26 x42 Note Added: 0020283
2018-05-30 11:27 x42 Note Edited: 0020283 View Revisions
2018-05-31 04:29 phildriscoll Note Added: 0020285
2018-07-04 05:11 paul Note Added: 0020331
2018-07-04 05:13 phildriscoll Note Added: 0020332
2018-07-04 05:15 paul Note Added: 0020333


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker