Waveform not shown with some wav files
Up one level
Waveform not shown with some wav files
I use wave files (sample rate 48.000, sample type 24-bit) with ELAN. Normally, when I load the files as they come from the recorder (Marantz PDM 620) the waveform is correctly shown in ELAN; but if edit the files (cropping, merging, cleaning), for which I use Adobe Soundbooth, the waveform is no longer shown in Elan, although they appear to be wave files, pcm with the same sample rate and sample type. How could I correct this so I can edit the files and keep the waveform showing? Is there a problem with that editor?<br>Thanks for your help.<br>
Re: Waveform not shown with some wav files
I don't know SoundBooth but I don't expect that to be the problem. What you can do is have a look in ELAN's log file after closing ELAN (after a failed attempt to view the waveform). There should be a line like this:
"Information from header of wav-file:"
followed by information from the .wav file as it is read from the header. And maybe there will be error messages.
The log file on Windows and Linux: <user_home>/.elan_data/elan0.log (elan1.log etc), on Mac OS it is: <user_home>/Library/Preferences/ELAN/elan0.log.
-Han
Re: Waveform not shown with some wav files
Han, thanks for your reply. I checked the log file after I opened and closed a file with no waveform shown. I transcribe from the line with header information. I don't see any clear error messages; I appreciate any comments:<br><br>Information from header of wav-file:<br>NrOfChannels : 2<br>Sample frequency: 48000<br>Bitrate : 24<br>nrOfSamples : 6278051<br> -> Length : 00:02:10.793<br>java.lang.ArrayIndexOutOfBoundsException: -2<br> at mpi.eudico.client.util.WAVSampler.<init>(WAVSampler.java:90)<br> at mpi.eudico.client.annotator.viewer.SignalViewer.initLoad(SignalViewer.java:389)<br> at mpi.eudico.client.annotator.viewer.SignalViewer.setMedia(SignalViewer.java:296)<br> at mpi.eudico.client.annotator.viewer.SignalViewer.<init>(SignalViewer.java:227)<br> at mpi.eudico.client.annotator.ViewerManager2.createSignalViewer(ViewerManager2.java:736)<br> at mpi.eudico.client.annotator.linkedmedia.MediaDescriptorUtil.createMediaPlayers(MediaDescriptorUtil.java:498)<br> at mpi.eudico.client.annotator.ElanFrame2.initElan(ElanFrame2.java:639)<br> at mpi.eudico.client.annotator.ElanFrame2.openEAF(ElanFrame2.java:352)<br> at mpi.eudico.client.annotator.ElanFrame2.openEAF(ElanFrame2.java:368)<br> at mpi.eudico.client.annotator.FrameManager.createFrame(FrameManager.java:582)<br> at mpi.eudico.client.annotator.FrameManager$RecentAction.actionPerformed(FrameManager.java:1040)<br> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)<br> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)<br> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)<br> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)<br> at javax.swing.AbstractButton.doClick(Unknown Source)<br> at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)<br> at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)<br> at java.awt.Component.processMouseEvent(Unknown Source)<br> at javax.swing.JComponent.processMouseEvent(Unknown Source)<br> at java.awt.Component.processEvent(Unknown Source)<br> at java.awt.Container.processEvent(Unknown Source)<br> at java.awt.Component.dispatchEventImpl(Unknown Source)<br> at java.awt.Container.dispatchEventImpl(Unknown Source)<br> at java.awt.Component.dispatchEvent(Unknown Source)<br> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)<br> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)<br> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)<br> at java.awt.Container.dispatchEventImpl(Unknown Source)<br> at java.awt.Component.dispatchEvent(Unknown Source)<br> at java.awt.EventQueue.dispatchEvent(Unknown Source)<br> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)<br> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)<br> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)<br> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)<br> at java.awt.EventDispatchThread.run(Unknown Source)<br>No media export functionality available<br>Clean up media player...<br>Clean up media player...<br>15/10/2008 08:25:31 AM mpi.eudico.client.annotator.integration.ExternalLauncher$LaunchThread run<br>INFO: Launch thread interrupted...<br>15/10/2008 08:25:31 AM mpi.eudico.client.annotator.integration.ExternalLauncher stop<br>INFO: External launch thread stopped...<br><br>
Re: Re: Waveform not shown with some wav files
The error messages are kind of useful in this case: an error occurs when ELAN tries to read and log the compression type of the file. If this succeeds the output starts with "WAVE Format : ". Apparently the value returned from the file is invalid. This might be an error that would be save to ignore, but it could also indicate a serious problem in the file or might lead to incorrect visualization.
Could you check in other applications what the compression type is? Just to see if others apps have the same problem with the file (or at least this part)?
-Han