live streaming and recording

24chrisl's icon

HI all, I am a graduate student trying to work with live video in jitter.

I have a 2 part question....

I am using an IR sensor to trigger events, I have that working in Max....the events I want to trigger is the question

1.) Is it possible to record a live stream and have the saved file play automatically?

and

2.) can the saved file play at the same time that a the camera continues to record? Then when the recording is done, it overwrites the file playing and begins playing the new one?

Any help or suggestions would be greatly appreciated

dtr's icon

you wanna look at jit.qt.grab, jit.qt.movie and jit.qt.record. you can do this in parallel, as long as your CPU and HD can take the load. should be fine with any not to antique system. just don't go for full HD res.

24chrisl's icon

I have the jit.qt.grab going into jit.qt.record and separately I have the jit.qt.movie playing. The live stream will not record while the moving is playing, unless I use write with and change the file name. Is there a way to record the live feed and append a number (like tester_5_1.mov and tester_5_2.mov) every time it records and having the movie play _1 _2 and so on?

3663.tester4.maxpat
Max Patch
dtr's icon

yes, use sprintf to format your filename