Stef Weicks hello Apparently we exceed th elenght of you discussion thread :) How

i did it with this line 300:
myFile.write(frame,NUM_LEDS*sizeof(CRGB));

yes i recorded two times … and 2 files were created… but with 0kB

@Stef_Weicks oki i need to make a quick chnage in the call

@Stef_Weicks try this

ok now it´s working … cool!!
there is one thing left … i don´t know if we can or could speed something up here? i recorded a few seconds… and got this:
frames saved:709 frames lues:719 lost frames:47
time per frame 18.870239

47 frames are lots of frames which are lost… it looks like this…
https://drive.google.com/open?id=1IPt-a-m1tkru_WhmCtaXXSxfMAPEE6fL

@Stef_Weicks you have now so many stuff running in parallel that is why you are loosing frames. if you remove the display during recording it should be faster.
I will have a look if I can reduce the impact of recording and displaying plus the full loop stuff

@Stef_Weicks was it the ‘live’ or the recording ?

live is a smooth animation… its only while recording and after play back.

video is a recording

during recording, it looks worse than during playback.

@Stef_Weicks increase the buffersize to see
Put back the same code from the recording.
In both artnet.begin and in the if (artnet.nbreadframes+buffersize… look at my original code )

@Stef_Weicks ?? What do u mean

hm … i did it now with buffersize 10.
but the terminal says still some lost frames …
frames saved:373 frames lues:382 lost frames:28

@Stef_Weicks and how does the palyback looks like ?

could it be that my sdcard is to slow? i tired the old standalone program with the same sd card … and i also got some lost frames (3 or 5 frames lost)… but not as many as the new program displays it (over 20 or 40 frames)…

and i recognized (in the standalone-code) also some different jerks in the animation as in the code we did now.
sometimes recordings are very smooth and ok … but sometimes recordings are bad (jerky).

@Stef_Weicks
I have noticed with Glediator that sometimes i needed to restart the program to have better results (geldiator is based on java hence i guess memory issue and sening the universe not correctly)
I will depend of the activity on your network.
So try to restart jynx and see

ok i will try!

i already ordert a new sd card … i hope a fast one

OOOH Yes… i already recognized that the java stuff would slow down jinx…also in conjunction with the opened programs and browsers.
but that this is such a problem i never thought this… now its working very good…no jerks in my animation!
Very good, you are really a good thinker in this field!

Now we don´t need an additional controller to record stuff and i never have to lift the display off the wall again… yipii :slight_smile:

I hope I do not make to much circumstances with my constant questions :frowning: but unfortunately I don´t know anyone who can help me with these problems … and if I have to learn all this stuff alone i would never get this to work…hahaha

Thanks again and again and again … !!! :smiley:

@Stef_Weicks no problem we are here to share !!!
I am happy that it works correctly now !!
No you have challenged me to do better programming and the artnet library code can handle more now.
now you need to make a nice video, a nice speech and put that in show your work and link your gihub

It’s great that this group exists! of course i will make a nice video maybe today or tomorrow.
now I am working on a butten to delete the file which is already playing back in sd-mode … with the record button.

i did it like this :
if (myFile.available())
{
myFile.read(readbuffer,NUM_LEDSsizeof(CRGB));
memcpy(matrixleds,readbuffer,NUM_LEDS
sizeof(CRGB));
if(record==1){ // Recordbutten as delete
SD.remove(filename);
Serial.println(“file deleted”);
}
}

i tried it also with close file before trying to delete but the file was not deleted.
maybe you have an idea?

@Stef_Weicks where did you put it in the code ?
what are you trying to do exactly ?
when you are in reading mode from SD, if you click record it will remove the current file ?

@Stef_Weicks hop
try this
if(record==1)
{
myFile.close();
SD.remove(myFile.name());
selectNextFile();
record=0; //otherwise you would erase all the files :slight_smile:
Serial.println(“file deleted”);
}