Skip to content

[Question] Fragmented recording #1987

@alexsafe

Description

@alexsafe

Hi Pedro,

I did almost 0 homework before asking this, so appologies in advance :)

My question is: is it possible to have a way to protect a recording from unforseen events. Like a sudden app close mid-recording. That would corrupt the mp4. The muxer stop/release are most likely not called.

So is it possible to save in chunks in a way that the MOOV is written?
Or, a workaround that I did think about was to try to record in chunks of say separate 10s files and then have them stitched together at stopRecord() with ffmpeg. I'm already using it so that part won't be a too big of an overhead for me.

Do you think one if these 2 options would work or do you have another suggestion?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions