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

styp box is made twice #2757

Open
3 tasks done
ohjiwoo123 opened this issue Feb 14, 2024 · 2 comments
Open
3 tasks done

styp box is made twice #2757

ohjiwoo123 opened this issue Feb 14, 2024 · 2 comments

Comments

@ohjiwoo123
Copy link

ohjiwoo123 commented Feb 14, 2024

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/

In memory-writing mode,
we use gf_isom_open using "_gpac_isobmff_redirect"
gf_isom_set_write_callback
after setting callback function
When exactly is the callback function called?
I think that gf_isom_finalize and gf_isom_close_segment call the callback function

And

If I want to call the callback function forcely, how to do that?

My plan is that
After making All segments, I calculate all duration of segments and allocate duration using
gf_isom_set_movie_duration
then I want to receive moov box data with a duration value assigned to it through callback function.

Can I use on_last_block_start to handle the above situation?

@ohjiwoo123
Copy link
Author

I found the solution!
But I have Another Question!
After making dash segments,
I tried gf_isom_set_movie_duration and WriteToFile Function (for making movie box that added movie duration using callback function)
styp box is made twice.
I tried to find what problem it is, but failed.
what is the problem?
styp-double

@ohjiwoo123 ohjiwoo123 reopened this Feb 26, 2024
@ohjiwoo123 ohjiwoo123 changed the title When exactly is the callback function called? styp box is made twice Feb 26, 2024
@jeanlf
Copy link
Member

jeanlf commented Apr 9, 2024

We don't have this behavior in the filters code. Could you please send some sample code reproducing your bug ?

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