With avconv you can get to do a screencast perfect consuming little. It's very easy if you keep reading 😉 |
avconv is the new command used by ffmpeg and it keeps the same way of use so we can use the avconv command in a console and directly convert a video from one format to another for example:
avconv video.mpg video.avi
This will use the default settings but we can get a lot more out of this powerful program.
To make a Screencast you can use this command
avconv -f x11grab -s 1366x768 -r 25 -i: 0.0 -same_quant screen.mp4
The video codec used is mpeg4, the -f x11grab option is indicating to capture the Xorg server screen, the -s 1366 × 768 option indicates the screen size in pixels, the -r 25 option indicates the number of images per second, -i: 0.0 I think it indicates the screen to capture within the Xorg server, -same_quant, this parameter is very important because it allows the quality to be as close as possible to the source, and finally we indicate the name of the file to create . You can also capture the sound in real time but I like more to add the sound later, so my little mac works more loosely and I don't lose quality.
To obtain the help of the program we can type in the console:
avconv -h
And to get the list of codecs and options:
avconv-codecs
The result can be something like this:
I tried various desktop grabbers back in the day… between the various desktop environments and capturing JACK's audio was a christ. We will have to take a look at this one. 😀
What difference is there with ffmpeg, because from what I see the only thing that changes is the name of the command. Can you record audio with alsa ?, with ffmpeg you couldn't.
Well, to install it I did "sudo apt-get install ffmpeg" and it told me to use the avconv command from now on.
Good morning, the same question as Saeron, what is the improvement of avconv against ffmpeg?, And I add my grain of sand, to record the audio at the same time you record the video, add the parameter -f oss
Hey.
Too bad you didn't include in your example how to record video AND AUDIO. Think that it is always easier to REMOVE arguments from a command, than to GUESS THEM or discover them in those kilometer manuals.
MY QUESTION: the video is recorded phenomenon. PEEEERO …… with the audio there are problems. I read that you have to capture the audio "MONITOR". I tried 1000 ways, but there is no case, it records me with sound, that is, the resulting video has a «soundtrack»… .but in silence. CAN'T CAPTURE the "monitor" of my headphones.
I use LinuxMint. The sound is ALSA, and I think, I'm not sure, THAT IS THE PROBLEM.
CLARIFICATION…. it seems that with the -hw0…. it points to HD sound, not MONITOR, and so it records audio, but doesn't pick up anything. It is understood??
Cheers and thanks for your time.
Nepo.