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

Two Tracks Get Combined To Create Distorted Audio #276

Open
noah-hornak opened this issue Mar 3, 2024 · 2 comments
Open

Two Tracks Get Combined To Create Distorted Audio #276

noah-hornak opened this issue Mar 3, 2024 · 2 comments

Comments

@noah-hornak
Copy link

Hi @ponchio thank you for this wonderful tool! I have a corrupt mp4 file that was recorded with two audio tracks in OBS. After running untrunc, I get back an mp4 with two tracks but each track is identical in audio and it seems like it combines audio from both tracks and combines them into each track to create two duplicate tracks that results in very distorted, choppy audio.

What I would expect to happen is untrunc successfully identifies both tracks through the corrupt audio and creates two codecs or tracks each with their own respectful audio as is what happens when I record with 2 microphones in OBS and my computer doesn't shut down to give me a corrupt mp4.

Here are the available stream information in audacity after importing the mp4 audio file generated by untrunc
Screenshot from 2024-03-03 10-32-52

And here are the waveforms for the audio generated by untrunc (notice the 2 tracks each with 2 mono tracks containing the same audio)
Screenshot from 2024-03-03 10-57-18

I also want to mention that I uncommented line 1333 in mp4.cpp in order to use the DOUBLEAUDIO code. When I have it commented, it generates an mp4 file twice the length of the actual recording with audio that does not play any audio in VLC and is unable to be opened in Audacity

Here is a folder containing zip files for the good audio (ok_long.mp4) and the corrupted audio (eriko.mp4):
https://drive.google.com/drive/folders/1iX7LNkdOP1Vfnn3q5a1_xQYHaFDmhvRX?usp=drive_link

Any help is greatly appreciated!

@ponchio
Copy link
Owner

ponchio commented Mar 5, 2024 via email

@noah-hornak
Copy link
Author

@ponchio Thank you so much for your help and for saving my audio! Much appreciated friend! Donation on your way!

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