Capturing video from two webcam and record it into computer using max?

R_Gol's icon

Is it possible to capture two identical (or they must be different?) simple webcams into max msp and record them into one video file? (on camera data on leftside and the other on right hand side)?

Is all the above possible? if not what is possible using max in term of video recording?

Thanks

LSka's icon

hi,

simplest way would be using two jit.grab objects, then jit.concat to join the videos and jit.record to record.

If you want something easier, you can check the Vizzie abstractions, which come with pre-built controls

R_Gol's icon

Thanks this is great!

Max Patch
Copy patch and select New From Clipboard in Max.

Edit: What definition I need for high quality recording?

Edit2: What format I need to be able to open in VLC?

.mov won't open in VLC rather only in quick time

R_Gol's icon

Another strange issue. I record 5 seconds but my video file shows 25 seconds. why is that?

Edit:

I have added: @frame 30 @codec h264 which seems to solve it.

Edit2: the above did not solved it :( it records different length then the time I press write and stop

Is there any option to record also the sound from the cameras?

R_Gol's icon

Some updates:

1) The recording length is fine now! I made some mistake to stop the recording.

2) I'm using jit.vcr instread of jit.record in order to be able to record the audio in the patch as well.

3) my output file is way too large - ~300Mb for 01:20 minute of recording. How can I reduced the output file?

R_Gol's icon

There is no way to reduce the size of the recorded video? 300Mb for 01:20 minutes is too large...

Wil's icon

Try setting up to record in OBS

follow this thread about quality

There is an "undistinguishable quality" feature

I just recorded 1 minute video in jit.vcr = 1.5gb

Same recording in OBS = 9.1 mb

1920 x1080 - no quality difference

***note - if you use OBS, you can [jit.world @visible 0] with very large dimensions and massively increase frame rate

R_Gol's icon

I just recorded 1 minute video in jit.vcr = 1.5gb

Same recording in OBS = 9.1 mb

I really would preffer not using OBS (or any other external object/software)

Is there no other way to reduce to file when using jit.vcr?

Rob Ramirez's icon

you can change the codec attribute, but it will affect performance and quality.

R_Gol's icon

you can change the codec attribute, but it will affect performance and quality.

Which is the one I should use?

R_Gol's icon

Try setting up to record in OBS

follow this thread about quality

I don't understand how to record using OBS?

Do you have an example patch?