View Issue Details

IDProjectCategoryView StatusLast Update
0006345ardourbugspublic2015-12-08 14:49
Reporterchaot Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version4.0 
Summary0006345: Exported ogg files are flawed (also affects flac)
DescriptionVersion:
Ardour 4.0 from ardour.org

Description:
The exported ogg files are cut at the end (approximately the last second is missing) and sndfile-info gives strange results which hints at the ogg files being partly broken. The length of the part that is missing at the end of the ogg files varies.

Steps to reproduce:
* Create new session in Ardour4
* Add audio track
* Record a minute of audio to the track (the effect tended to be stronger on longer recordings in my test)
* Session > Export > Export to Audio File(s)
* Choose:
    - Format: Ogg/Vorbis (tagged): normalize, Ogg Vorbis, Session rate
    - leave the rest as is
* Execute: sndfile-info on the created ogg soundfile.
* This should especially give weird values for 'Signal Max' (around -90dB)
    -> probably ogg file is broken
* Listen to the ogg file with mplayer (or some other player that doesn't cut audio at the end as a bug).
    -> A little piece of the end is missing, normally approximately a second.
    -> It's especially hearable when one trimmed the silence at the end of the recording.

Misc:
* Used JACK sample rate: 48k
* I also tried sndfile-convert to check if it's a libsndfile bug but it worked flawlessly on a flawless wav file.
* Exporting to flac has a similar issue with cutting at the end but sndfile-info seems to print the correct data.
* For an example ogg file that is flawed see/hear the attached one.
TagsNo tags attached.

Activities

2015-05-24 18:42

 

chaot

2015-05-24 18:44

reporter   ~0016724

This is the output of sndfile-info on the example file:

Version : libsndfile-1.0.25

========================================
File : short_part_after_d_regions3.ogg
Length : 58620
Ogg stream data : Vorbis
Stream serialno : 0422077804
Vorbis library version : Xiph.Org libVorbis 1.3.2
Bitstream is 2 channel, 48000 Hz
Encoded by : Xiph.Org libVorbis I 20140122 (Turpakäräjiin)
End

----------------------------------------
Sample Rate : 48000
Frames : 253440
Channels : 2
Format : 0x00200060
Sections : 1
Seekable : TRUE
Duration : 00:00:05.280
Signal Max : 0.957727 (-90.68 dB)

chaot

2015-05-24 18:51

reporter   ~0016725

I experience this behaviour on two machines. They run:
* Linux Mint 17, 64 bit
* Xubuntu 14.10, 64 bit

x42

2015-05-26 11:44

administrator   ~0016729

I can reproduce the -90dB issue on GNU/Linux 32bit.
Both with nightly built (libsndfile 20140122) as well as a build from source (debian libsndfile 20101101)
using the ALSA backend and JACK backend.

I did (two times) 4 Ogg/Vorbis exports, normalize on/off tagged on/off. all at session-rate.
The sndfile-info duration varies ever so slightly 00:02:53.793 -> 00:02:54.642 and all files are silent (around -92dB or so, slightly different every export).

The odd thing: on OSX it works just fine (both self-built as well as nightly). duration is always exactly what it should be and the file plays fine.

x42

2015-05-26 12:07

administrator   ~0016730

First step of further investigation: the temporary file created before normalization and ogg-encoding is fine.

(while ardour is normalizing cp <Session-Dir>/export/XXXXXX /tmp/
check file with sox -t raw -r 48k -e float -b 32 -c 2 /tmp/6GL5YX /tmp/test.wav)
perfectly bit exact every time).

x42

2015-05-26 13:35

administrator   ~0016731

mmh actually this seems to be an issue with libsndfile/libogg/libvorbis on some platforms.

sndfile-convert -vorbis session.wav session.oga

has the same issue.

x42

2015-05-26 13:51

administrator   ~0016732

scratch all the above. It's only sndfile-info reporting it incorrectly! (using float while the ogg file is actually 16bit). sndfile-convert works too.

All exports here so far actually play fine (with mplayer) using the Dummy or ALSA backend to export, all files are precisely the expected duration.

chaot

2015-12-08 14:49

reporter   ~0017717

Now having switched to Arch Linux on both my machines this issue doesn't occur anymore. Most probably this bug was related to some old jack version shipped with Ubuntu.

Thanks for your help Robin and sorry for having wasted your time with this issue.

Issue History

Date Modified Username Field Change
2015-05-24 18:42 chaot New Issue
2015-05-24 18:42 chaot File Added: short_part_after_d_regions3.ogg
2015-05-24 18:44 chaot Note Added: 0016724
2015-05-24 18:51 chaot Note Added: 0016725
2015-05-26 11:44 x42 Note Added: 0016729
2015-05-26 12:07 x42 Note Added: 0016730
2015-05-26 13:35 x42 Note Added: 0016731
2015-05-26 13:51 x42 Note Added: 0016732
2015-12-08 14:49 chaot Note Added: 0017717
2015-12-08 14:49 chaot Status new => closed
2015-12-08 14:49 chaot Resolution open => no change required