Recovering corrupted m4a recordings The 2019 Stack Overflow Developer Survey Results Are In ...
Typeface like Times New Roman but with "tied" percent sign
How is simplicity better than precision and clarity in prose?
Are my PIs rude or am I just being too sensitive?
Hiding Certain Lines on Table
Why is superheterodyning better than direct conversion?
How to colour the US map with Yellow, Green, Red and Blue to minimize the number of states with the colour of Green
Why can't wing-mounted spoilers be used to steepen approaches?
How can I protect witches in combat who wear limited clothing?
Road tyres vs "Street" tyres for charity ride on MTB Tandem
Relations between two reciprocal partial derivatives?
How can I define good in a religion that claims no moral authority?
Do working physicists consider Newtonian mechanics to be "falsified"?
Format single node in tikzcd
Did God make two great lights or did He make the great light two?
How do you keep chess fun when your opponent constantly beats you?
Can smartphones with the same camera sensor have different image quality?
"... to apply for a visa" or "... and applied for a visa"?
What do you call a plan that's an alternative plan in case your initial plan fails?
What information about me do stores get via my credit card?
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
University's motivation for having tenure-track positions
Can the DM override racial traits?
Python - Fishing Simulator
How does ice melt when immersed in water?
Recovering corrupted m4a recordings
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Howto convert audio files to *.m4a?How can I find exact delay in badly synced audio and video streams in a media container?Is there now any way to convert mp3 files to m4a or aac 192kbit?How to do screencasting (desktop recording) with high quality audio and video?How to extract aac audio from an mp4 file to m4aRemove audio from mp4 fileProblem with m4a filesFFmpeg use AAC encoderClementine doesn't play m4a anymore after 16.04 upgradeFFMPEG screen record with audio
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have been using Ubuntu on my school computer this year, I usually record the lectures that I can't hope to keep up with the prof, I have permission to do this. I have been using the default audio recorder that you can install with sudo apt-get install audio-recorder
because it was the easiest to use. Earlier in the semester they recordings were fine. But now they are corrupt as soon as the recording is done. They are in the .m4a format.
I have tried many tutorials, including editing the hex data of the recording, no luck. I do not know where the recording starts since when I try to make a new recording it is corrupt off the bat. I have tried using ffmpeg to get this error, moov atom not found
, which looking up does nothing to help solve the problem. Or I get an error saying protocol not found. Did you mean in.m4a?
which is the name of the file, that I typed in correctly. ffmpeg returns a “protocol not found” error. Then it says do you mean the file that I did put in. Faad returns this error: Unable to find correct AAC sound track in the MP4 file.
Also I tried an mp4 repair service and it works so the file should be able to be fixed. But it would cost $86 for it, and I need to fix 6 recordings.
I have tried uninstalling and reinstalling the restricted codecs.
Any help would be greatly appreciated.
sound ffmpeg aac m4a
add a comment |
I have been using Ubuntu on my school computer this year, I usually record the lectures that I can't hope to keep up with the prof, I have permission to do this. I have been using the default audio recorder that you can install with sudo apt-get install audio-recorder
because it was the easiest to use. Earlier in the semester they recordings were fine. But now they are corrupt as soon as the recording is done. They are in the .m4a format.
I have tried many tutorials, including editing the hex data of the recording, no luck. I do not know where the recording starts since when I try to make a new recording it is corrupt off the bat. I have tried using ffmpeg to get this error, moov atom not found
, which looking up does nothing to help solve the problem. Or I get an error saying protocol not found. Did you mean in.m4a?
which is the name of the file, that I typed in correctly. ffmpeg returns a “protocol not found” error. Then it says do you mean the file that I did put in. Faad returns this error: Unable to find correct AAC sound track in the MP4 file.
Also I tried an mp4 repair service and it works so the file should be able to be fixed. But it would cost $86 for it, and I need to fix 6 recordings.
I have tried uninstalling and reinstalling the restricted codecs.
Any help would be greatly appreciated.
sound ffmpeg aac m4a
1
drive.google.com/file/d/1pt2op6vgr0Kvwi96wKdDoY0COI4vJUUN/… I hope a Drive link is okay
– KeenanKer
Apr 10 '18 at 13:15
1
drive.google.com/open?id=1QN90YlEOllGyWdG3azZu_3OhxLhNZQ3f Here is a smaller one if that is to large.
– KeenanKer
Apr 10 '18 at 13:26
add a comment |
I have been using Ubuntu on my school computer this year, I usually record the lectures that I can't hope to keep up with the prof, I have permission to do this. I have been using the default audio recorder that you can install with sudo apt-get install audio-recorder
because it was the easiest to use. Earlier in the semester they recordings were fine. But now they are corrupt as soon as the recording is done. They are in the .m4a format.
I have tried many tutorials, including editing the hex data of the recording, no luck. I do not know where the recording starts since when I try to make a new recording it is corrupt off the bat. I have tried using ffmpeg to get this error, moov atom not found
, which looking up does nothing to help solve the problem. Or I get an error saying protocol not found. Did you mean in.m4a?
which is the name of the file, that I typed in correctly. ffmpeg returns a “protocol not found” error. Then it says do you mean the file that I did put in. Faad returns this error: Unable to find correct AAC sound track in the MP4 file.
Also I tried an mp4 repair service and it works so the file should be able to be fixed. But it would cost $86 for it, and I need to fix 6 recordings.
I have tried uninstalling and reinstalling the restricted codecs.
Any help would be greatly appreciated.
sound ffmpeg aac m4a
I have been using Ubuntu on my school computer this year, I usually record the lectures that I can't hope to keep up with the prof, I have permission to do this. I have been using the default audio recorder that you can install with sudo apt-get install audio-recorder
because it was the easiest to use. Earlier in the semester they recordings were fine. But now they are corrupt as soon as the recording is done. They are in the .m4a format.
I have tried many tutorials, including editing the hex data of the recording, no luck. I do not know where the recording starts since when I try to make a new recording it is corrupt off the bat. I have tried using ffmpeg to get this error, moov atom not found
, which looking up does nothing to help solve the problem. Or I get an error saying protocol not found. Did you mean in.m4a?
which is the name of the file, that I typed in correctly. ffmpeg returns a “protocol not found” error. Then it says do you mean the file that I did put in. Faad returns this error: Unable to find correct AAC sound track in the MP4 file.
Also I tried an mp4 repair service and it works so the file should be able to be fixed. But it would cost $86 for it, and I need to fix 6 recordings.
I have tried uninstalling and reinstalling the restricted codecs.
Any help would be greatly appreciated.
sound ffmpeg aac m4a
sound ffmpeg aac m4a
edited Apr 10 '18 at 13:33
Melebius
5,09352041
5,09352041
asked Apr 10 '18 at 12:55
KeenanKerKeenanKer
185
185
1
drive.google.com/file/d/1pt2op6vgr0Kvwi96wKdDoY0COI4vJUUN/… I hope a Drive link is okay
– KeenanKer
Apr 10 '18 at 13:15
1
drive.google.com/open?id=1QN90YlEOllGyWdG3azZu_3OhxLhNZQ3f Here is a smaller one if that is to large.
– KeenanKer
Apr 10 '18 at 13:26
add a comment |
1
drive.google.com/file/d/1pt2op6vgr0Kvwi96wKdDoY0COI4vJUUN/… I hope a Drive link is okay
– KeenanKer
Apr 10 '18 at 13:15
1
drive.google.com/open?id=1QN90YlEOllGyWdG3azZu_3OhxLhNZQ3f Here is a smaller one if that is to large.
– KeenanKer
Apr 10 '18 at 13:26
1
1
drive.google.com/file/d/1pt2op6vgr0Kvwi96wKdDoY0COI4vJUUN/… I hope a Drive link is okay
– KeenanKer
Apr 10 '18 at 13:15
drive.google.com/file/d/1pt2op6vgr0Kvwi96wKdDoY0COI4vJUUN/… I hope a Drive link is okay
– KeenanKer
Apr 10 '18 at 13:15
1
1
drive.google.com/open?id=1QN90YlEOllGyWdG3azZu_3OhxLhNZQ3f Here is a smaller one if that is to large.
– KeenanKer
Apr 10 '18 at 13:26
drive.google.com/open?id=1QN90YlEOllGyWdG3azZu_3OhxLhNZQ3f Here is a smaller one if that is to large.
– KeenanKer
Apr 10 '18 at 13:26
add a comment |
2 Answers
2
active
oldest
votes
See here, at the bottom of the page.
Install faad if needed sudo apt install faad
dd ibs=1 skip=44 if=yourfilename.m4a of=raw.m4a
faad -a newname.m4a raw.m4a
All credits to the author of the link I am pointing to, cause I do not know what I am doing, but I tested it on your bigger file, and it works. First command takes some time. Be patient. Tried it on ubuntu 16.04.
As pointed out in the comments, the result can be opened in VLC, but not in Audacious. But we can use vlc to transcode it, or rewrite it to another format. The script below converts all *.m4a files in the current directory to *.mp3.#!/bin/bash
quote="
executable="/usr/bin/vlc"
argument3=vlc://quit
#transcoding parameters
acodecvalue=mp3
bitratevalue=128
accessvalue=file
muxvalue=raw
for x in *.m4a; do
inputname="${x}"
strippedname=${x%.m4a}
outputname=${strippedname}.mp3
quote_outputname=${quote}./${outputname}${quote}
echo ${inputname}
echo ${quote_outputname}
qtranscode=#transcode{vcodec=none,acodec=$acodecvalue, # continue line !
ab=$bitratevalue,channels=$channelsvalue} # continue line !
:standard{access=$accessvalue,mux=$muxvalue,dst=${quote_outputname}}
argument1="$inputname"
argument2=--sout=$qtranscode
"$executable" -I dummy "$argument1" "$argument2" "$argument3"
done
add a comment |
This works but the values use in dd are not adequate for every case. Here the author of the original post explains why:
Original post of this solution
Basically you are stripping the header of the file by skipping 44 bytes with dd but that value varies from file to file, as it happened to me.
The solution is to use a hex editor (I suggest on a copy of the broken file) and delete everything from the beginning up to the end of the word "mdat". In my case it was 28 bytes instead of 44.
I use 0xED as a hex editor on mac (it's free and runs on the latest mac OS, Mojave, as of this writing). Also, for mac you can install faad using Homebrew by running
brew install faad2
You may need to specify the file sample rate if different from 44,100Hz when using faad with the switch -s
If faad returns this error Error: Maximum number of bitstream elements exceeded
it could mean that you deleted too many bytes from the beginning of the file, as it happened to me at first.
Lastly, once you process the raw file with faad you will want to reencode the m4a file to make sure you have a proper and compatible file, this can easily be done with ffmpeg
ffmpeg -i newfile.m4a -c:a aac output.m4a
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023648%2frecovering-corrupted-m4a-recordings%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
See here, at the bottom of the page.
Install faad if needed sudo apt install faad
dd ibs=1 skip=44 if=yourfilename.m4a of=raw.m4a
faad -a newname.m4a raw.m4a
All credits to the author of the link I am pointing to, cause I do not know what I am doing, but I tested it on your bigger file, and it works. First command takes some time. Be patient. Tried it on ubuntu 16.04.
As pointed out in the comments, the result can be opened in VLC, but not in Audacious. But we can use vlc to transcode it, or rewrite it to another format. The script below converts all *.m4a files in the current directory to *.mp3.#!/bin/bash
quote="
executable="/usr/bin/vlc"
argument3=vlc://quit
#transcoding parameters
acodecvalue=mp3
bitratevalue=128
accessvalue=file
muxvalue=raw
for x in *.m4a; do
inputname="${x}"
strippedname=${x%.m4a}
outputname=${strippedname}.mp3
quote_outputname=${quote}./${outputname}${quote}
echo ${inputname}
echo ${quote_outputname}
qtranscode=#transcode{vcodec=none,acodec=$acodecvalue, # continue line !
ab=$bitratevalue,channels=$channelsvalue} # continue line !
:standard{access=$accessvalue,mux=$muxvalue,dst=${quote_outputname}}
argument1="$inputname"
argument2=--sout=$qtranscode
"$executable" -I dummy "$argument1" "$argument2" "$argument3"
done
add a comment |
See here, at the bottom of the page.
Install faad if needed sudo apt install faad
dd ibs=1 skip=44 if=yourfilename.m4a of=raw.m4a
faad -a newname.m4a raw.m4a
All credits to the author of the link I am pointing to, cause I do not know what I am doing, but I tested it on your bigger file, and it works. First command takes some time. Be patient. Tried it on ubuntu 16.04.
As pointed out in the comments, the result can be opened in VLC, but not in Audacious. But we can use vlc to transcode it, or rewrite it to another format. The script below converts all *.m4a files in the current directory to *.mp3.#!/bin/bash
quote="
executable="/usr/bin/vlc"
argument3=vlc://quit
#transcoding parameters
acodecvalue=mp3
bitratevalue=128
accessvalue=file
muxvalue=raw
for x in *.m4a; do
inputname="${x}"
strippedname=${x%.m4a}
outputname=${strippedname}.mp3
quote_outputname=${quote}./${outputname}${quote}
echo ${inputname}
echo ${quote_outputname}
qtranscode=#transcode{vcodec=none,acodec=$acodecvalue, # continue line !
ab=$bitratevalue,channels=$channelsvalue} # continue line !
:standard{access=$accessvalue,mux=$muxvalue,dst=${quote_outputname}}
argument1="$inputname"
argument2=--sout=$qtranscode
"$executable" -I dummy "$argument1" "$argument2" "$argument3"
done
add a comment |
See here, at the bottom of the page.
Install faad if needed sudo apt install faad
dd ibs=1 skip=44 if=yourfilename.m4a of=raw.m4a
faad -a newname.m4a raw.m4a
All credits to the author of the link I am pointing to, cause I do not know what I am doing, but I tested it on your bigger file, and it works. First command takes some time. Be patient. Tried it on ubuntu 16.04.
As pointed out in the comments, the result can be opened in VLC, but not in Audacious. But we can use vlc to transcode it, or rewrite it to another format. The script below converts all *.m4a files in the current directory to *.mp3.#!/bin/bash
quote="
executable="/usr/bin/vlc"
argument3=vlc://quit
#transcoding parameters
acodecvalue=mp3
bitratevalue=128
accessvalue=file
muxvalue=raw
for x in *.m4a; do
inputname="${x}"
strippedname=${x%.m4a}
outputname=${strippedname}.mp3
quote_outputname=${quote}./${outputname}${quote}
echo ${inputname}
echo ${quote_outputname}
qtranscode=#transcode{vcodec=none,acodec=$acodecvalue, # continue line !
ab=$bitratevalue,channels=$channelsvalue} # continue line !
:standard{access=$accessvalue,mux=$muxvalue,dst=${quote_outputname}}
argument1="$inputname"
argument2=--sout=$qtranscode
"$executable" -I dummy "$argument1" "$argument2" "$argument3"
done
See here, at the bottom of the page.
Install faad if needed sudo apt install faad
dd ibs=1 skip=44 if=yourfilename.m4a of=raw.m4a
faad -a newname.m4a raw.m4a
All credits to the author of the link I am pointing to, cause I do not know what I am doing, but I tested it on your bigger file, and it works. First command takes some time. Be patient. Tried it on ubuntu 16.04.
As pointed out in the comments, the result can be opened in VLC, but not in Audacious. But we can use vlc to transcode it, or rewrite it to another format. The script below converts all *.m4a files in the current directory to *.mp3.#!/bin/bash
quote="
executable="/usr/bin/vlc"
argument3=vlc://quit
#transcoding parameters
acodecvalue=mp3
bitratevalue=128
accessvalue=file
muxvalue=raw
for x in *.m4a; do
inputname="${x}"
strippedname=${x%.m4a}
outputname=${strippedname}.mp3
quote_outputname=${quote}./${outputname}${quote}
echo ${inputname}
echo ${quote_outputname}
qtranscode=#transcode{vcodec=none,acodec=$acodecvalue, # continue line !
ab=$bitratevalue,channels=$channelsvalue} # continue line !
:standard{access=$accessvalue,mux=$muxvalue,dst=${quote_outputname}}
argument1="$inputname"
argument2=--sout=$qtranscode
"$executable" -I dummy "$argument1" "$argument2" "$argument3"
done
edited Apr 11 '18 at 9:12
answered Apr 10 '18 at 14:29
oscar1919oscar1919
50748
50748
add a comment |
add a comment |
This works but the values use in dd are not adequate for every case. Here the author of the original post explains why:
Original post of this solution
Basically you are stripping the header of the file by skipping 44 bytes with dd but that value varies from file to file, as it happened to me.
The solution is to use a hex editor (I suggest on a copy of the broken file) and delete everything from the beginning up to the end of the word "mdat". In my case it was 28 bytes instead of 44.
I use 0xED as a hex editor on mac (it's free and runs on the latest mac OS, Mojave, as of this writing). Also, for mac you can install faad using Homebrew by running
brew install faad2
You may need to specify the file sample rate if different from 44,100Hz when using faad with the switch -s
If faad returns this error Error: Maximum number of bitstream elements exceeded
it could mean that you deleted too many bytes from the beginning of the file, as it happened to me at first.
Lastly, once you process the raw file with faad you will want to reencode the m4a file to make sure you have a proper and compatible file, this can easily be done with ffmpeg
ffmpeg -i newfile.m4a -c:a aac output.m4a
New contributor
add a comment |
This works but the values use in dd are not adequate for every case. Here the author of the original post explains why:
Original post of this solution
Basically you are stripping the header of the file by skipping 44 bytes with dd but that value varies from file to file, as it happened to me.
The solution is to use a hex editor (I suggest on a copy of the broken file) and delete everything from the beginning up to the end of the word "mdat". In my case it was 28 bytes instead of 44.
I use 0xED as a hex editor on mac (it's free and runs on the latest mac OS, Mojave, as of this writing). Also, for mac you can install faad using Homebrew by running
brew install faad2
You may need to specify the file sample rate if different from 44,100Hz when using faad with the switch -s
If faad returns this error Error: Maximum number of bitstream elements exceeded
it could mean that you deleted too many bytes from the beginning of the file, as it happened to me at first.
Lastly, once you process the raw file with faad you will want to reencode the m4a file to make sure you have a proper and compatible file, this can easily be done with ffmpeg
ffmpeg -i newfile.m4a -c:a aac output.m4a
New contributor
add a comment |
This works but the values use in dd are not adequate for every case. Here the author of the original post explains why:
Original post of this solution
Basically you are stripping the header of the file by skipping 44 bytes with dd but that value varies from file to file, as it happened to me.
The solution is to use a hex editor (I suggest on a copy of the broken file) and delete everything from the beginning up to the end of the word "mdat". In my case it was 28 bytes instead of 44.
I use 0xED as a hex editor on mac (it's free and runs on the latest mac OS, Mojave, as of this writing). Also, for mac you can install faad using Homebrew by running
brew install faad2
You may need to specify the file sample rate if different from 44,100Hz when using faad with the switch -s
If faad returns this error Error: Maximum number of bitstream elements exceeded
it could mean that you deleted too many bytes from the beginning of the file, as it happened to me at first.
Lastly, once you process the raw file with faad you will want to reencode the m4a file to make sure you have a proper and compatible file, this can easily be done with ffmpeg
ffmpeg -i newfile.m4a -c:a aac output.m4a
New contributor
This works but the values use in dd are not adequate for every case. Here the author of the original post explains why:
Original post of this solution
Basically you are stripping the header of the file by skipping 44 bytes with dd but that value varies from file to file, as it happened to me.
The solution is to use a hex editor (I suggest on a copy of the broken file) and delete everything from the beginning up to the end of the word "mdat". In my case it was 28 bytes instead of 44.
I use 0xED as a hex editor on mac (it's free and runs on the latest mac OS, Mojave, as of this writing). Also, for mac you can install faad using Homebrew by running
brew install faad2
You may need to specify the file sample rate if different from 44,100Hz when using faad with the switch -s
If faad returns this error Error: Maximum number of bitstream elements exceeded
it could mean that you deleted too many bytes from the beginning of the file, as it happened to me at first.
Lastly, once you process the raw file with faad you will want to reencode the m4a file to make sure you have a proper and compatible file, this can easily be done with ffmpeg
ffmpeg -i newfile.m4a -c:a aac output.m4a
New contributor
New contributor
answered 27 mins ago
Diego AlifanoDiego Alifano
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023648%2frecovering-corrupted-m4a-recordings%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
drive.google.com/file/d/1pt2op6vgr0Kvwi96wKdDoY0COI4vJUUN/… I hope a Drive link is okay
– KeenanKer
Apr 10 '18 at 13:15
1
drive.google.com/open?id=1QN90YlEOllGyWdG3azZu_3OhxLhNZQ3f Here is a smaller one if that is to large.
– KeenanKer
Apr 10 '18 at 13:26