Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repair Audio? #205

Open
rowanfr opened this issue Jan 27, 2025 · 2 comments
Open

Repair Audio? #205

rowanfr opened this issue Jan 27, 2025 · 2 comments

Comments

@rowanfr
Copy link

rowanfr commented Jan 27, 2025

I wanted to ask is there any way to use this to repair audio. I'm trying to repair some m4a files and the details are as follows:

untrunc +1.m4a +2.m4a
Info: version '' using ffmpeg '7.0.2' Lavc61.3.100
Info: reading +1.m4a
Info: parsing healthy moov atom ...

Info: reading mdat from truncated file ...
Warning: Skipping moov atom: 217661
Info: Found 54247 packets ( mp4a: 54247 )
Tip: Audio and video seem to have different durations (inf).
     If audio and video are not in sync, give `-sv` a try. See `--help`
/usr/include/c++/15/bits/stl_vector.h:1262: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Track::Chunk; _Alloc = std::allocator<Track::Chunk>; reference = Track::Chunk&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
rowanfr@fedora ~/D/attachments [SIGABRT]> untrunc -sv +1.m4a +2.m4a
Info: version '' using ffmpeg '7.0.2' Lavc61.3.100
Info: reading +1.m4a
Info: parsing healthy moov atom ...

Info: reading mdat from truncated file ...
Warning: Skipping moov atom: 217661
Info: Found 54247 packets ( mp4a: 54247 )
/usr/include/c++/15/bits/stl_vector.h:1262: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Track::Chunk; _Alloc = std::allocator<Track::Chunk>; reference = Track::Chunk&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
rowanfr@fedora ~/D/attachments [255]> untrunc -s +1.m4a +2.m4a
Info: version '' using ffmpeg '7.0.2' Lavc61.3.100
Info: reading +1.m4a
Info: parsing healthy moov atom ...

Info: reading mdat from truncated file ...
Warning: Skipping moov atom: 217661
Info: Found 54247 packets ( mp4a: 54247 )
Tip: Audio and video seem to have different durations (inf).
     If audio and video are not in sync, give `-sv` a try. See `--help`
/usr/include/c++/15/bits/stl_vector.h:1262: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Track::Chunk; _Alloc = std::allocator<Track::Chunk>; reference = Track::Chunk&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

I know this can be done as https://www.onlineconverter.com/repair-m4a is able to do it using I believe to be a similar if not identical technique, but unfortunately I'm not familiar enough with media encoding to know for certain. (For those wondering while I would love to use there service I have both a large number and large size audio files that I want to repair and I don't want to waste there bandwidth or compute)

@anthwlock
Copy link
Owner

Hey - Yes this should be possible. Please send me the files (healthy+broken) and I might take a look at some point (could take a while though).
You can upload them on wetransfer (2GB limit) or dropmefiles.net (100GB limit). If you think they are too big, you can use untrunc -sh file.mp4.
In case you want to keep the link private, you can send me an email - see my Profile page.
Thank you!

@rowanfr
Copy link
Author

rowanfr commented Jan 30, 2025

I sent you an email from "[email protected]" which should provide access to the files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants