Other Parts Discussed in Thread: TEST2
Hey,
I am using tda2pxevm and created a usecase where I encode captured data and send the encoded frames to nulllink where I copy the encoder output buffer (NULL_LINK_COPY_TYPE_BITSTREAM_MEMORY) and then write those frames to sd card.
Every filename includes the timestamp of the respective frame. I only record 1 frame each 30seconds.
Simply writing those frames to sd card work fine, every frame is labeled with the respective timestamp.
Now I want to create directories for every test. This means everytime the usecase is called I want to check if a directory (for example "test1") is already there and if so another directory ("test2" and so forth) should be created.
I already approached it in several ways but here is how I do this now in a very simple and basic way.
So if it is not possible to change the directory as planned, I will create this directory since it is not there yet, otherwise it should be able to change to that directory.
I then use this path with Utils_fileWriteFile function.
This works for like 2 folders but then it does something of which I just can´t figure out why and how exactly it is happening. It desroys my appimage and mlo file?! it suddenly shows both of them are 0kb big and I obviously can´t start the application again.
On the other hand if I create the different folders myself and just switch after couple of minutes to a different folder I want the frames to be stored in(programmed in usecase) it works without any problem.
I somehow think that the api is buggy and that the mkdir functions don´t setup the directory trees properly.
Could you clarify where I might be making mistakes or if for any reasons the api might not even be able to do stuff like this?
best regards,
Nicolas Rausch