terminal command to record video

Mohammad Reza Rezwani

I have cheese software in order to record a video and also take a picture from my laptop camera. But when you open that. you should do two thing: 1.Select video recording among its default taking photo option) 2. start to play ( start to record)

I need a command line when you put it on the terminal. cheese start to recording video without any other mouse click.

Registered User

You can try avconv.

According to manpage for the avconv command Manpage icon

avconv is a very fast video and audio converter that can also grab from a live audio/video source.

There are many options in avconv, but for recording the screen, the command would be like

avconv -f x11grab -s 1024x768 -r 50 -t 500 -i :0.0 ~/Videos/name.mp4

Here,

-f: format for input file, x11grab for recording screen
-s: resolution, can be axb(eg. 1024x768) or some predefined words like hd1080
-r: rate(or bitrate).
-t: time, as seconds(500) or HH:MM:SS.[XXX](eg 01:04:59 or 01:56:43.111)
-i: input, here :0.0 generally
Finally the output file name

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

command to record terminal does not work with bash

From Dev

FFmpeg command to record Skype sound and video

From Dev

Set execution time for Script command to record terminal activity

From Dev

Can one watch video in terminal (command-line)?

From Dev

How to record the terminal on a server?

From Dev

How can I record a video like output of top command for set time period?

From Dev

Android video record libraries

From Dev

Record video with timestamp on vlc

From Dev

Gstreamer Record Audio and Video

From Dev

guvcview: can not record video

From Dev

Terminal command follows the lifetime of another terminal command

From Dev

how to record a terminal session in Windows?

From Dev

Terminal giving "Unknown option on the command line: -gf" error with YouTube video streaming script using youtube-dl and mplayer

From Dev

Record video while other video is playing

From Dev

Creating a terminal command programmatically?

From Dev

Is there a terminal command that will click the mouse?

From Dev

Switch encoding of terminal with a command

From Dev

Command run in terminal, not with shortcuts

From Dev

run :!command in a real terminal

From Dev

Terminal command "rails server"

From Dev

Express command not working in terminal

From Dev

Terminal Command into Applescript

From Dev

Creating a terminal command in Minix

From Dev

Switch encoding of terminal with a command

From Dev

Terminal: prefix previous command?

From Dev

Alias empty command in terminal

From Dev

Is there a terminal command that will click the mouse?

From Dev

Remove a terminal command

From Dev

Terminal Root Command Warning