예제 #1
0
    def showEncodingDialog(self):

        msg = 'Recorded %d frames.  For encoding, use this command line:\n\n\n' % self.frameCount
        msg += '    cd "%s"\n\n' % self.movieOutputDirectory()
        msg += '    avconv -r %d -i frame_%%07d.tiff \\\n' % self.captureRate()
        msg += '           -vcodec libx264 \\\n'
        msg += '           -preset slow \\\n'
        msg += '           -crf 18 \\\n'
        msg += '           output.mp4\n\n\n'

        app.showInfoMessage(msg, title='Recording Stopped')
예제 #2
0
    def showEncodingDialog(self):

        msg = "Recorded %d frames.  For encoding, use this command line:\n\n\n" % self.frameCount
        msg += '    cd "%s"\n\n' % self.movieOutputDirectory()
        msg += "    avconv -r %d -i frame_%%07d.tiff \\\n" % self.captureRate()
        msg += "           -vcodec libx264 \\\n"
        msg += "           -preset slow \\\n"
        msg += "           -crf 18 \\\n"
        msg += "           output.mp4\n\n\n"

        app.showInfoMessage(msg, title="Recording Stopped")
예제 #3
0
    def showEncodingDialog(self):

        msg = (
            "Recorded %d frames.  For encoding, use this command line:\n\n\n" %
            self.frameCount)
        msg += '    cd "%s"\n\n' % self.movieOutputDirectory()
        msg += "    avconv -r %d -i frame_%%07d.tiff \\\n" % self.captureRate()
        msg += "           -vcodec libx264 \\\n"
        msg += "           -preset slow \\\n"
        msg += "           -crf 18 \\\n"
        msg += "           -pix_fmt yuv420p \\\n"
        msg += "           output.mp4\n\n\n"

        app.showInfoMessage(msg, title="Recording Stopped")
예제 #4
0
    def showEncodingDialog(self):

        msg = 'Recorded %d frames.  For encoding, use this command line:\n\n\n' % self.frameCount
        msg += '    cd "%s"\n\n' % self.movieOutputDirectory()
        if self.ui.syncFrameRateToDrawMessageCheck.check:
            msg += '    avconv -r 60 -i frame_%%07d.tiff \\\n'
        else:
            msg += '    avconv -r %d -i frame_%%07d.tiff \\\n' % self.captureRate()
        msg += '           -vcodec libx264 \\\n'
        msg += '           -preset slow \\\n'
        msg += '           -crf 18 \\\n'
        msg += '           -pix_fmt yuv420p \\\n'
        msg += '           output.mp4\n\n\n'
        if self.ui.syncFrameRateToDrawMessageCheck.check:
            msg += '(assuming that pose update messages are sent at 60 Hz)\n'

        app.showInfoMessage(msg, title='Recording Stopped')
예제 #5
0
def onModelPublisherString(msg):

    lastStr = getModelPublisherString()
    if updateModelPublisherString(msg) == lastStr:
        return

    print 'reloading models with new model publisher string'

    if lastStr is not None:
        app.showInfoMessage('A model publisher string was received that differs from the previous string. '
                            'Models will be reloaded with the new string.',
                            title='Model publisher string changed')

    objs = getExistingRobotModels()
    for obj, jointController in _modelsToReload:
        print 'reloading model:', obj.getProperty('Name')
        newModel = loadRobotModelFromString(getModelPublisherString())
        obj.setModel(newModel)
        jointController.push()
예제 #6
0
def onModelPublisherString(msg):

    lastStr = getModelPublisherString()
    if updateModelPublisherString(msg) == lastStr:
        return

    print 'reloading models with new model publisher string'

    if lastStr is not None:
        app.showInfoMessage('A model publisher string was received that differs from the previous string. '
                            'Models will be reloaded with the new string.',
                            title='Model publisher string changed')

    objs = getExistingRobotModels()
    for obj, jointController in _modelsToReload:
        print 'reloading model:', obj.getProperty('Name')
        newModel = loadRobotModelFromString(getModelPublisherString())
        obj.setModel(newModel)
        jointController.push()