LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-18-2014, 08:57 AM   #1
jokar.mohsen
Member
 
Registered: Jul 2008
Location: Tehran
Posts: 441

Rep: Reputation: 22
Thumbs down WAV file is corrupted and can't repair :(


Hello all.
I have a WAV file with below specific :
REC064.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 84 bit, 52 channels

this file is corrupted but I tried "qwavheaderdump -F REC064.WAV" and it told me that file is fixed :

REC064.WAV (28291584 bytes):
riff: 'RIFF'
riff length: 28291576
wave: 'WAVE'
fmt: 'fmt '
fmt length: 16
format: 1
channels: 52
channels field should be 1 (mono) or 2 (stereo)
don't know which value must be set...

fixed
sample rate: 0
sample rate field should be between 8000 and 48000
don't know which value must be set...

bytes/second: -482283425
bytes/sample: 0
bytes/sample field should be 1, 2 or 4
don't know which value must be set...

bits/sample: 84
data: 'data'
data length: 28291540


but not repaired!!! How can I fix it?
 
Old 11-18-2014, 09:45 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by jokar.mohsen View Post
Hello all.
I have a WAV file with below specific: REC064.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 84 bit, 52 channels this file is corrupted but I tried "qwavheaderdump -F REC064.WAV" and it told me that file is fixed :

REC064.WAV (28291584 bytes):
riff: 'RIFF'
riff length: 28291576
wave: 'WAVE'
fmt: 'fmt '
fmt length: 16
format: 1
channels: 52
channels field should be 1 (mono) or 2 (stereo)
don't know which value must be set...

fixed
sample rate: 0
sample rate field should be between 8000 and 48000
don't know which value must be set...

bytes/second: -482283425
bytes/sample: 0
bytes/sample field should be 1, 2 or 4
don't know which value must be set...

bits/sample: 84
data: 'data'
data length: 28291540

but not repaired!!! How can I fix it?
You can fix it by actually reading and understanding the messages the program gave you.. Look at the lines in bold above...read them. The program tells you what the options are. As far as what you SHOULD set them to, that's up to YOU. Pick a value, or determine it from how the input was recorded. If it was mono, set it to 1...stereo, set it to 2. Set the sample rate to be whatever you'd like...same for the bytes sample rate. Since you didn't specify them, it set them to zero, and it even TOLD YOU THAT.

Also, according to the WAV standard, you certainly do NOT have a "52 channel" file...since that doesn't exist.
 
Old 11-18-2014, 10:19 AM   #3
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by TB0ne View Post
Since you didn't specify them, it set them to zero, and it even TOLD YOU THAT.
maybe you misunderstood that. I read the output the way that the program detected a channel count of 52, some lines further down it detected a sample rate of 0, and finally a huge negative number of bytes per second, and 0 bytes per sample. No hint about the actual replacement values.
My guess is, since the OP didn't explicitly enter new data, it remained unchanged.

Quote:
Originally Posted by TB0ne View Post
Also, according to the WAV standard, you certainly do NOT have a "52 channel" file...since that doesn't exist.
Neither does a sample width of 84 bits. I guess the OP downloaded a file which is either corrupted beyond repair, or it is something completely different camouflaged as an audio file. I had the same thought in his other recent thread, where he reported similar trouble with a video file.

[X] Doc CPU
 
Old 11-19-2014, 02:32 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
is this happening on the same machine as this:
http://www.linuxquestions.org/questi...ly-4175525662/
???

because i wonder how you can even know that your file is corrupt if your system sound setup is borked.
 
Old 11-19-2014, 04:36 AM   #5
jokar.mohsen
Member
 
Registered: Jul 2008
Location: Tehran
Posts: 441

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by TB0ne View Post
You can fix it by actually reading and understanding the messages the program gave you.. Look at the lines in bold above...read them. The program tells you what the options are. As far as what you SHOULD set them to, that's up to YOU. Pick a value, or determine it from how the input was recorded. If it was mono, set it to 1...stereo, set it to 2. Set the sample rate to be whatever you'd like...same for the bytes sample rate. Since you didn't specify them, it set them to zero, and it even TOLD YOU THAT.

Also, according to the WAV standard, you certainly do NOT have a "52 channel" file...since that doesn't exist.
Yes, My problem is 52 channel and it is so odd. This file recorded by a sound recorder from Marshal company.

---------- Post added 11-19-14 at 02:07 PM ----------

Quote:
Originally Posted by Doc CPU View Post
Hi there,



maybe you misunderstood that. I read the output the way that the program detected a channel count of 52, some lines further down it detected a sample rate of 0, and finally a huge negative number of bytes per second, and 0 bytes per sample. No hint about the actual replacement values.
My guess is, since the OP didn't explicitly enter new data, it remained unchanged.



Neither does a sample width of 84 bits. I guess the OP downloaded a file which is either corrupted beyond repair, or it is something completely different camouflaged as an audio file. I had the same thought in his other recent thread, where he reported similar trouble with a video file.

[X] Doc CPU
It is not downloaded, It is recorded by a sound recorder from Marshal Company.
 
Old 11-19-2014, 10:56 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by jokar.mohsen View Post
Yes, My problem is 52 channel and it is so odd. This file recorded by a sound recorder from Marshal company.
And there IS STILL NO 52 channel option for that format, period. You DO NOT have a 52 channel file in a WAV format, at all, and you will NEVER have a 52 channel WAV file. Go look up the specifications on that file format.
Quote:
It is not downloaded, It is recorded by a sound recorder from Marshal Company.
Great...so we will AGAIN tell you to contact the support/vendor for whatever hardware/software recorded it. This is no different than many of your other threads, where you're using a commercial product, but don't call and use the support you SHOULD be paying for.

AGAIN:
  • You CANNOT have a 52 channel WAV file.
  • The qwavheaderdump program gave you information..if you read the man page, you'd see:
    Code:
    -F --fix  correct  the  header if there’s any incorrect value. not all the
                    fields are recoverable.
  • You don't tell us what "Marshal Company" product/hardware/software supposedly recorded this, onto what format, and how you got it onto your Linux system. AGAIN, as with most of your posts, you fail to provide relevant details, even when asked.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to convert Ogg Vorbis .WAV file to normal .WAV file? *Dark Dragon* Linux - Software 8 11-16-2014 12:45 PM
Ubuntu 9.x install corrupted NTFS partition; repair corrupted TrueCrypt partition halfer Linux - General 1 06-30-2009 02:59 PM
repair corrupted ext3 filesystem rvijay17 Linux - General 3 06-20-2009 11:35 AM
Corrupted bootloader - can't repair it. Adrian Baker Linux - General 8 04-26-2006 01:00 AM
corrupted reiserfs, can't repair antipop Linux - Newbie 8 05-04-2004 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration