https://www.streaming-servers.com/

Tutorial Raspberry Pi GPU Transcoding

delta1372

If it moves, compile it!
Staff member
Chief Moderator
Moderator
Member
Joined
Jun 17, 2020
Messages
29
Likes
1,157
Points
189
Using the following script will install and configure FFMPEG GPU support on your Pi3 / 4 device ready for transcoding.


Bash:
#!/bin/bash

# example: ffmpeg -c:v h264_mmal -i http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_tv/ak/bbc_parliament.m3u8 -c:v h264_omx -c:a copy -b:v 1500k output.mp4

echo "Installing FFMPEG with GPU support for Raspberry Pi"

cd /root

sudo -y apt-get update
sudo -y apt-get install autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev

cd ~
git clone https://github.com/ffmpeg/FFMpeg --depth 1

cd ~/FFMpeg
./configure --enable-gpl --enable-nonfree --enable-mmal --enable-omx --enable-omx-rpi
make -j4
make install

echo "Install should now be complete. Please check the above output for any error messages."
 
Place your Business Ad here !

makeitso

Moderator
Staff member
Moderator
Member
Joined
Sep 22, 2019
Messages
432
Likes
916
Points
104
Using the following script will install and configure FFMPEG GPU support on your Pi3 / 4 device ready for transcoding.


Bash:
#!/bin/bash

# example: ffmpeg -c:v h264_mmal -i http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_tv/ak/bbc_parliament.m3u8 -c:v h264_omx -c:a copy -b:v 1500k output.mp4

echo "Installing FFMPEG with GPU support for Raspberry Pi"

cd /root

sudo -y apt-get update
sudo -y apt-get install autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev

cd ~
git clone https://github.com/ffmpeg/FFMpeg --depth 1

cd ~/FFMpeg
./configure --enable-gpl --enable-nonfree --enable-mmal --enable-omx --enable-omx-rpi
make -j4
make install

echo "Install should now be complete. Please check the above output for any error messages."
Must dig out my pie 3
 

delta1372

If it moves, compile it!
Staff member
Chief Moderator
Moderator
Member
Joined
Jun 17, 2020
Messages
29
Likes
1,157
Points
189
I got a Pi4 sat on the desk - i should really give it a go with the transcoding - they make GREAT little encoders !!

Something like this would be amazing

1593520843109.png
 
Place your Business Ad here !

delta1372

If it moves, compile it!
Staff member
Chief Moderator
Moderator
Member
Joined
Jun 17, 2020
Messages
29
Likes
1,157
Points
189
How to hdmi in ?
This does not cover HDMI In, This covers transcoding online streams only at present.

The Pi does not have a HDMI in function, this is a hardware limitation.
 

On4sat

Advance Member
Member
Joined
Jul 2, 2019
Messages
308
Likes
1,405
Points
104
Using the following script will install and configure FFMPEG GPU support on your Pi3 / 4 device ready for transcoding.


Bash:
#!/bin/bash

# example: ffmpeg -c:v h264_mmal -i http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_tv/ak/bbc_parliament.m3u8 -c:v h264_omx -c:a copy -b:v 1500k output.mp4

echo "Installing FFMPEG with GPU support for Raspberry Pi"

cd /root

sudo -y apt-get update
sudo -y apt-get install autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev

cd ~
git clone https://github.com/ffmpeg/FFMpeg --depth 1

cd ~/FFMpeg
./configure --enable-gpl --enable-nonfree --enable-mmal --enable-omx --enable-omx-rpi
make -j4
make install

echo "Install should now be complete. Please check the above output for any error messages."
Thanks for that friend
 

mkdstream

New Member
Member
Joined
May 21, 2020
Messages
13
Likes
4
Points
14
Warning points
1
Poor quality frame drops with CPU usage high
 
Top