#N canvas 714 348 549 449 10;
#X text 69 27 recordPNM - PPM/PGM image stream output;
#X text 69 37 =======================================;
#X text 60 78 PNM is a family of lowest common denominator image formats \, with an ASCII header containing metadata \, followed by raw uncompressed image data.;
#X msg 217 116 https://netpbm.sourceforge.net/doc/pnm.html;
#X text 84 129 Specification:;
#X text 76 167 The 'PNM' backend writes a single file containing a concatenated stream of PNM images.;
#X text 78 201 The following codecs are currently supported:;
#X text 103 217 - ppm (rgb888 PPM P6 binary format);
#X text 103 232 - pgm (gray8 PGM P5 binary format);
#X obj 32 260 cnv 18 420 60 empty empty empty 20 12 0 10 #ffe3c6 #404040 0;
#X text 36 277 NOTE:;
#N canvas 735 459 450 300 URL 0;
#X obj 37 37 inlet;
#X obj 37 60 symbol;
#X obj 37 106 pdcontrol;
#X msg 37 83 browse \$1;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 3 0 2 0;
#X restore 217 139 pd URL;
#X text 75 289 You need special software (such as FFMPEG) in order to correctly decode it., f 62;
#N canvas 735 459 450 300 example 0;
#X text 75 91 1- select the backend;
#X obj 232 163 s \$1-ctl;
#X msg 261 132 record 1;
#X text 75 111 2- name the NDI-stream;
#X text 75 131 3- start sending out stream;
#X text 28 20 Example use case:;
#X text 51 42 I. create a named pipe (in the terminal): 'mkfifo fifo.ppm';
#X text 49 67 II. record frames into the named pipe using this backend:;
#X text 52 200 III. encode the video with FFMPEG:;
#X text 84 221 'ffmpeg -f image2pipe -i fifo.ppm ...';
#X text 71 254 note that the [pix_record] may block if data is not read fast enough by the encoder.;
#X msg 261 92 codec ppm;
#X msg 261 112 file /tmp/fifo.ppm;
#X connect 2 0 1 0;
#X connect 11 0 1 0;
#X connect 12 0 1 0;
#X restore 200 330 pd example;
#X text 45 397 This plugin does not require any external libraries \, and should therefore be available on all platforms., f 52;
#X text 75 261 The file created by this backend is not a valid video file and CANNOT be played directly., f 62;
#X connect 3 0 11 0;
