Coder Social home page Coder Social logo

screenrecorder.sh's Introduction

screenrecorder.sh

A script for recording your screen under linux with ffmpeg

Things you'll need to install

On Debian based distros (Ubuntu, Mint, Kubuntu, Xubuntu...)

sudo apt install ffmpeg

Things you need to change based on your configuration

  • pkill -f /dev/video0 <- change "video0" to the video interface of your webcam

  • ffplay -f v4l2 -noborder -an -sn -alwaysontop -video_size 380x360 /dev/video0 <- do the same here

ffmpeg part

  • ffmpeg -y -f x11grab -s 1680x1050 -i :0.0+1280 -f alsa -i default screenout.mp4 <- change "1680x1050" to your monitors resolution....change ":0.0+1280" to ":0.0" if you use just one monitor.....if you use two monitors and want to record one specific monitor make sure to change the "1280" value acording to your second monitors width

  • in the -f pulse -ac 2 -i 2 section change the 2 acording to the output of the following command

pacmd list-sources
  • And look for Monitor of CM106 Like Sound Device Analog Stereo and replace the 2 in -f pulse -ac 2 -i 2 with the index number

  • in the -f alsa -i default section change the 2 acording to the output of the pacmd list-sources and look for your microphones audio card

ffplay part

  • -left 1325 -top 730 -video_size 380x360 - make sure to change these values as you need

Make executable

chmod +x screenrecorder.sh

To use

./screenrecorder.sh

videos

screenrecorder.sh - screen recording script finalized, new features

screenrecorder.sh's People

Contributors

beangreen247 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.