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
81
Likes
1,402
Points
194
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
440
Likes
934
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
81
Likes
1,402
Points
194
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
81
Likes
1,402
Points
194
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,469
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
 

yop038

New Member
Member
Joined
Apr 21, 2020
Messages
10
Likes
9
Points
14
from rpi4, if u use all ressources and h264 params will do 27-28 fps from 720p, with h264_omx between 23-25fps not much more.
with 1080p less than 24fps from a capture device using mjpeg input.
i also test it with rpi2b+ just not enough powerfull ... max 12fps
 
Place your Business Ad here !

powerstv

New Member
Member
Joined
Mar 15, 2020
Messages
4
Likes
5
Points
11
Good One , would be nice if can make a control panel with UI
 

echotop7

New Member
Member
Banned
Joined
Apr 9, 2020
Messages
13
Likes
9
Points
14
any review for this one.. can 1 board transcoding more than 1 channel ? and what bit rate if can do more ?

thx
 
Place your Business Ad here !

techker

Moderator
Staff member
Moderator
Member
Joined
Sep 26, 2019
Messages
157
Likes
265
Points
74
quick question i was looking at this a wile back..i found a pi hat that had the hdmi in..but not available anymore..sucks..were to you enter the url to transcode?does it give you a UI?
 
Top