Skip to content

TypeError: fsPath.existsSync is not a function #3

Open

Description

@sincerefly

when i use

x-recorder start-video --display :99 --pid $PWD/video.pid --output $PWD/out.mov

there is a error

.nvm/versions/node/v5.0.0/lib/node_modules/x-recorder/scripts/start-video.js:50

if (!fsPath.existsSync(lockFile)) {
            ^

TypeError: fsPath.existsSync is not a function
at checkDisplay (/home/solideo/.nvm/versions/node/v5.0.0/lib/node_modules/x-recorder/scripts/start-video.js:50:17)
at Object. (/home/solideo/.nvm/versions/node/v5.0.0/lib/node_modules/x-recorder/scripts/start-video.js:56:3)
at Object.runScript as run
at Object. (/home/solideo/.nvm/versions/node/v5.0.0/lib/node_modules/x-recorder/bin/x-recorder:16:19)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:457:10)
at startup (node.js:136:18)

Activity

  1. eredi93 commented on Dec 13, 2016

    @eredi93

    +1

  2. sincerefly commented on Dec 15, 2016

    @sincerefly
    Author

    @eredi93 There is x-recorder from this repo solved this problem

    https://github.com/SteveNewson/x-recorder

    and you can also use ffmpeg to record the video

    ffmpeg -video_size DISPLAY=:2 xdpyinfo | grep 'dimensions:'|awk '{print $2}' -framerate 30 -f x11grab -i :2.0 output.mpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions