To install FFmpeg on Fedora, use the RPMfusion repository. Next, we can install FFmpeg and its development packages using: yum install ffmpeg ffmpeg-devel -y On CentOS/RHEL 6/5, the command is slightly different and refers to a different repository. On CentOS 7 and RHEL 7 use the following command: rpm -import
How to install ffmpeg on raspberry pi update#
To install using CentOS 7 or 6, update the system using: yum install epel-release -y This can be installed using third party nux dextop yum repo. Install FFmpeg on CentOS, Fedora, and RHELĬentOS does not provide an official repository for FFmpeg installation. To validate the installation on Debian use the following command: ffmpeg -version
Once you’re done, install the FFmpeg package using: apt install ffmpeg This makes sure that all the changes are correctly updated and noted. First, we will update, then install, and update one more time. Next we will have to install the deb-multimedia-keyring package. To exit the editor press : and execute q! To save your edit on the vi editor press Esc. Open the file using the following command and press I (Insert) to start editing: vi /etc/apt/sources.listĪdd the lines listed below to the file: deb jessie main non-free To edit this file, you can use a terminal editor such as nano or vi.
This file contains the list of repositories APT uses. To add this, we need to edit the file /etc/apt/sources.list. We will have to add the Debian multimedia repository. However, the Debian multimedia repository can be used to install the codex. If you’re using Debian 8 – Jessie, FFmpeg won’t be available in the official repository. It’s available in the official Debian repository.įirst, update the package list using: apt updateĪfter this we can execute the following command to install FFmpeg: apt install ffmpeg The FFmpeg package uses the apt package manager for installation. To install FFmpeg on Debian 9 – Stretch, you need to be logged in as a root user. To verify the version check using the following command: ffmpeg -version Lastly, to install ffmpeg we need to execute: apt-get install ffmpeg Once the PPA is installed, move on to updating the repository by executing: apt-get update To add this PPA we need to execute: sudo apt-get install -y software-properties-commonĪdd apt-repository ppa:mc3man/trusty-media PPA stands for Personal Package Archives which are supported by the Ubuntu community. We will install FFmpeg from the mc3man ppa. You can tweak the -fps and -b (bandwidth) settings depending on your internet connection.Installing FFmpeg 4 – the latest version – on Ubuntu 14. Streaming on a Pi Zero W hovers around 50% CPU utilisation with the settings above. We'll leave that until we need audio :) How does it perform? This doesn't send any audio but as we're using a Pi Zero it doesn't have any easy way to bring in audio. acodec aac -ab 128k -g 50 -strict experimental -f flv URL]:1935/
i /dev/zero -f h264 -thread_queue_size 512 -i -vcodec copy \ Now click next to compose your steem post, click next again and on the following screen you can then start the stream (by clicking start) and once you are at this point you can run the command to start streaming:Īnd the command you will want to run to start broadcasting is: raspivid -o -t 0 -fps 25 -w 1280 -h 720 -b 3000000 | \įfmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 \ Fill in the required fields (image, title,description, etc.) and you will need to use the values in the lower right to build your rtmp URL. Visit dlive, login and then click Go Live. enable-omx -enable-omx-rpi -enable-nonfree configure -arch=armel -target-os=linux -enable-gpl \ Install ffmpeg to do the streaming and you should build it to make use of the hardware capabilities of the Raspberry Pi's (which have some h264 hardware available): $ sudo apt-get install build-essential Here is how we got it to work: Install ffmpeg We'd love to stream some of the activity from our hackerspace to Steem but we need to see if we could do it from a Raspberry Pi Zero W as we have a few spare with raspicam's attached and don't really want to buy any specialised hardware to achieve this.