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

Reassemble packets into a new MP4 file #983

Open
alanccw opened this issue Sep 23, 2024 · 0 comments
Open

Reassemble packets into a new MP4 file #983

alanccw opened this issue Sep 23, 2024 · 0 comments

Comments

@alanccw
Copy link

alanccw commented Sep 23, 2024

I have many MP4 files which are truncated in their tails, which make them not playable. I analyze these files manually and find the ftyp and moov boxes and their child boxes are all OK. But part of the data in mdat box are lost, which corresponding to some packet data only, which is <= 5% of the total packets.

So I wrote a small app that can parse all the data in the MP4 and read all the meta info from the boxes(except for mdat box), and get all the existing packets and save them as separate .dat files. Now I want to reassemble them back into a valid MP4 file.

Can I implement that with your Bento4 API? I have tried ffmpeg commandline and API but failed.

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

1 participant