lib/imageio/plugins/ffmpeg.py
def _initialize(self):
            """ Opens the file, creates the pipe. """
            # Create input args
            if self.request._video:
                iargs = ['-f', CAM_FORMAT]
                if self._arg_pixelformat:
                    iargs.extend(['-pix_fmt', self._arg_pixelformat])
                if self._arg_size:
                    iargs.extend(['-s', self._arg_size])
            else:
                iargs = []
            # Output args, for writing to pipe
            oargs = ['-f', 'image2pipe',
                     '-pix_fmt', self._pix_fmt,
                     '-vcodec', 'rawvideo']
            oargs.extend(['-s', self._arg_size] if self._arg_size else [])
            # Create process
            cmd = [self._exe] + iargs + ['-i', self._filename] + oargs + ['-']
            self._proc = sp.Popen(cmd, stdin=sp.PIPE,
                                  stdout=sp.PIPE, stderr=sp.PIPE)

            # Create thread that keeps reading from stderr
            self._stderr_catcher = StreamCatcher(self._proc.stderr)
 Opens the file, creates the pipe. 
Opens the file, creates the pipe.
Opens the file creates the pipe .
def _initialize(self):
            if self.request._video:
                iargs = ['-f', CAM_FORMAT]
                if self._arg_pixelformat:
                    iargs.extend(['-pix_fmt', self._arg_pixelformat])
                if self._arg_size:
                    iargs.extend(['-s', self._arg_size])
            else:
                iargs = []
            oargs = ['-f', 'image2pipe',
                     '-pix_fmt', self._pix_fmt,
                     '-vcodec', 'rawvideo']
            oargs.extend(['-s', self._arg_size] if self._arg_size else [])
            cmd = [self._exe] + iargs + ['-i', self._filename] + oargs + ['-']
            self._proc = sp.Popen(cmd, stdin=sp.PIPE,
                                  stdout=sp.PIPE, stderr=sp.PIPE)
            self._stderr_catcher = StreamCatcher(self._proc.stderr)
def _initialize ( self ) : if self . request . _video : iargs = [ '-f' , CAM_FORMAT ] if self . _arg_pixelformat : iargs . extend ( [ '-pix_fmt' , self . _arg_pixelformat ] ) if self . _arg_size : iargs . extend ( [ '-s' , self . _arg_size ] ) else : iargs = [ ] oargs = [ '-f' , 'image2pipe' , '-pix_fmt' , self . _pix_fmt , '-vcodec' , 'rawvideo' ] oargs . extend ( [ '-s' , self . _arg_size ] if self . _arg_size else [ ] ) cmd = [ self . _exe ] + iargs + [ '-i' , self . _filename ] + oargs + [ '-' ] self . _proc = sp . Popen ( cmd , stdin = sp . PIPE , stdout = sp . PIPE , stderr = sp . PIPE ) self . _stderr_catcher = StreamCatcher ( self . _proc . stderr )
Opens the file, creates the pipe.
Opens the file creates the pipe .
""" Opens the file, creates the pipe. """ # Create input args # Output args, for writing to pipe # Create process # Create thread that keeps reading from stderr
self