Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 5364  / 2 Years ago, sun, february 13, 2022, 6:27:54

I want to create some screencast, I am using avconv (recent ffmpeg counterpart) for doing so.



This is the reference for command I used. I also referred the avconv manual pages. Due to some reason I am unable to record audio from microphone into the screencast.



What is the -f switch for audio from microphone? I tried -f jack but it gives an error message.



I am not sure whether the microphone audio drivers are installed on my PC.
Command I used is as follows:



avconv -f x11grab -f jack -s hd1080 -r 30 -i 0:0  screencast.mov


Error message I get is:



Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
exec of JACK server (command = "/usr/bin/jackd") failed: No such file or directory
jack server is not running or cannot be started
[jack @ 0x9b6dc80] Unable to register as a JACK client
0:0: Input/output error

More From » alsa

 Answers
6

Make sure microphone is properly plugged in. You may also test your recording settings using "sound recorder" on your Ubuntu.



Now, execute the following command on terminal by replacing 1366x786 by your screen resolution.



avconv -f alsa -i pulse -f x11grab -r 30 -s 1366x768 -i :0.0 -vcodec libx264 -preset ultrafast -threads 4 -y myscreencast.mp4



If you use avconv regularly of making screencast you would like to avoid typing above command each time (in that case, do the following) :



Save the script given below in ~/Videos/ with filename screencast



#!/bin/sh
echo "Enter the output file name: "; read name

fullscreen=$(xwininfo -root | grep 'geometry' | awk '{print $2;}')

avconv -f alsa -i pulse -f x11grab -r 30 -s $fullscreen -i :0.0 -vcodec libx264 -preset ultrafast -threads 4 -y $name


Do, chmod +x screencast



Now, double-click on screencast file and "Run in Terminal"
Enter the name of video you want to make(filename and extension eg:myvideo.mkv or myvideo.mp4).



Finally, on completing your screencast, do ^C (contol+c) in terminal.



Your video will be saved in ~/Videos/
Bingo!!!


[#36601] Monday, February 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowstonnequ

Total Points: 279
Total Questions: 125
Total Answers: 123

Location: Finland
Member since Sun, Dec 5, 2021
2 Years ago
lowstonnequ questions
Wed, Oct 26, 22, 14:40, 2 Years ago
Tue, Feb 28, 23, 01:39, 1 Year ago
Wed, Dec 1, 21, 23:44, 2 Years ago
Thu, Apr 21, 22, 13:13, 2 Years ago
;