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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-18-2014, 08:57 AM
|
#1
|
Member
Registered: Jul 2008
Location: Tehran
Posts: 441
Rep:
|
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?
|
|
|
11-18-2014, 09:45 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,141
|
Quote:
Originally Posted by jokar.mohsen
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.
|
|
|
11-18-2014, 10:19 AM
|
#3
|
Senior Member
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099
|
Hi there,
Quote:
Originally Posted by TB0ne
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
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
|
|
|
11-19-2014, 02:32 AM
|
#4
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
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.
|
|
|
11-19-2014, 04:36 AM
|
#5
|
Member
Registered: Jul 2008
Location: Tehran
Posts: 441
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
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
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.
|
|
|
11-19-2014, 10:56 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,141
|
Quote:
Originally Posted by jokar.mohsen
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.
|
|
|
All times are GMT -5. The time now is 12:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|