Ravi Sagar | Home | Blog

ffmpeg tutorials

Table of Contents

1 Introduction

ffmpeg is a great piece of software. It is a cross platform utility to modify audio and video. It can do lot of wonderful things like editing videos, encoding them and live streaming as well. In this post I want to share whatever little I know and have been exploring.

Installing it is easy. Just check your package manager but on Arch linux you can do sudo pacman -S ffmpeg and it should install it.

2 Live streaming with ffmpeg

I recently made a video explain how to use ffmpeg to live stream from local computer to YouTube using nothing but shell scripts. Check the video here.

3 Record audio with ffmpeg

Check this link.

First check your audio devices.

arecord -l

4 Screen recording with ffmpeg

ffmpeg   -video_size 1368x768   -framerate 25   -f x11grab   -i :0.0+0,30   -f pulse   -i default   -ac 2   rec-01.mp4