The file can be read normally if I exit with Ctrl+C but my problem is that when my Jetson shutdown (in my case I need it to happen) the video file is corrupted. The file has a size of 0 byte.
Is there a way to properly save the file when the jetson shutdown ?
Thanks
In a shutdown event the Jetson module asserts SHUTDOWN_REQ*. The SHUTDOWN_REQ* must be serviced by the carrier
board to toggle POWER_EN from high to low, even in cases of sudden power loss. The Jetson module starts the power off
sequence when POWER_EN is deasserted; SYS_RESET* is asserted by the Jetson module, allowing the carrier board to put
any components into a known state and power down.
not sure that that is the issue. but it is my first thought
well that sounds like a good idea. but my idea originally was to handle the shutdown process properly. That is assuming that you are using a custom carrier board though. Are you using a custom carrier board, or are you using the devkit?
I have already tried at the beginning this command ! matroskamux ! filesink location=a.mkv
but it didn’t work.
I don’t understand when you say to enable SPS/PPS. Can you give me example to do it ?
Thanks !
@DaneLLL
At the end, my command where I record into multiples files doesn’t work either. (in my first post)
The first file is correct but the the others don’t have a fix duration. The header is not correct I think.
And do you have an idea to correctly save the video file when the jetson is suddenly shutdown ?
Thanks !