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

"Trying to add item, but missing meta box" error #2832

Open
3 tasks done
gabriele-v opened this issue May 7, 2024 · 1 comment
Open
3 tasks done

"Trying to add item, but missing meta box" error #2832

gabriele-v opened this issue May 7, 2024 · 1 comment

Comments

@gabriele-v
Copy link

Hello,
I need to extract some additional data (GoPro GPS data) from a MP4 file and add them to another MP4 file.
I'm able to extract them with the command
mp4box.exe -raw 3 ..\video.mp4

But when I try to import them again with this command
mp4box.exe -add ..\GoproVideo.mp4 -set-meta meta:tk=3 -add-item ..\video_track3.gpmd:tk=3 -new output.mp4

I got the following error
Trying to add item, but missing meta box

Am I missing something? Looking at the documentation, command line seems ok because I set the meta type and then add the item to it. Should I create first the track3? Or is automatically created with the set-meta command?

This is what I get if I run a -info on the original file

# Track 3 Info - ID 3 - TimeScale 1000
Media Duration 00:14:41.526
Track has 2 edits: track duration is 00:14:41.628
Track flags: Enabled In Movie In Preview
Media Samples: 8801
1 UDTA types:
        meta:
Media Type: meta:gpmd
        Unknown Metadata Stream
        RFC6381 Codec Parameters: gpmd
        All samples are sync
        Max sample duration: 104 / 1000

Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

Detailed guidelines: https://gpac.io/bug-reporting/

@gabriele-v gabriele-v changed the title Trying to add item, but missing meta box "Trying to add item, but missing meta box" error May 7, 2024
@jeanlf
Copy link
Member

jeanlf commented May 23, 2024

I looks like trackID 3 is no longer present after import (I added a more explicit check in mp4box for that).

Can you run a -info on the output file without the -set-meta and -add-item options ?

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