Ffmpeg (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→ffmpeg) |
|||
(27 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
{{note|Noch in Bearbeitung}} | {{note|Noch in Bearbeitung}} | ||
== Selbst kompilieren == | |||
=== Abhängigkeiten === | |||
==== libfaac-dev ==== | |||
Da ''libfaac-dev'' nicht frei ist, muss es manuell installiert werden. | |||
Quellen: | |||
[https://packages.debian.org/bookworm/libfaac-dev https://packages.debian.org/bookworm/libfaac-dev] | |||
[https://deb-multimedia.org/dists/stable/main/ https://deb-multimedia.org/dists/stable/main/] | |||
<pre> | |||
cd ~/temp | |||
wget https://deb-multimedia.org/pool/main/f/faac-dmo/libfaac-dev_1.30-dmo1_armhf.deb | |||
wget https://deb-multimedia.org/pool/main/f/faac-dmo/libfaac0_1.30-dmo1_armhf.deb | |||
sudo dpkg -i libfaac0_1.30-dmo1_armhf.deb | |||
sudo dpkg -i libfaac-dev_1.30-dmo1_armhf.deb | |||
</pre> | |||
==== Aus den Paktequellen ==== | |||
<pre> | |||
sudo apt-get install make automake g++ bzip2 python3 unzip patch subversion ruby build-essential git \ | |||
checkinstall yasm texi2html libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev \ | |||
libtheora-dev libvdpau-dev libvorbis-dev libvpx-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev \ | |||
yasm libv4l-dev | |||
</pre> | |||
==== x264 ==== | |||
<pre> | |||
cd ~/temp | |||
git clone https://code.videolan.org/videolan/x264.git | |||
sudo su | |||
cd x264 | |||
./configure --enable-shared | |||
make && make install | |||
cd .. | |||
</pre> | |||
==== libvpx ==== | |||
<pre> | |||
cd ~/temp | |||
git clone https://chromium.googlesource.com/webm/libvpx | |||
sudo su | |||
cd libvpx | |||
./configure | |||
make | |||
sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default | |||
</pre> | |||
==== ldconfig ==== | |||
Die Datei | |||
<pre> | |||
sudo vi /etc/ld.so.conf | |||
</pre> | |||
editieren und folgende Zeilen hinzufügen: | |||
<pre> | |||
/usr/lib | |||
/usr/local/lib | |||
</pre> | |||
Danach mittels | |||
<pre> | |||
sudo ldconfig | |||
</pre> | |||
Pfade neu laden | |||
==== rpi-update ==== | |||
'''ERROR: mmal not found''' | |||
[https://raspberrypi.stackexchange.com/questions/34107/libmmal-core-so-missing https://raspberrypi.stackexchange.com/questions/34107/libmmal-core-so-missing] | |||
=== ffmpeg === | |||
<pre> | |||
cd ~/temp | |||
wget https://ffmpeg.org//releases/ffmpeg-7.0.tar.bz2 | |||
tar xvjf ffmpeg-7.0.tar.bz2 | |||
sudo su | |||
cd ffmpeg-7.0 | |||
./configure \ | |||
--arch=armel \ | |||
--target-os=linux \ | |||
--enable-omx \ | |||
--enable-omx-rpi \ | |||
--enable-mmal \ | |||
--enable-gpl \ | |||
--enable-version3 \ | |||
--enable-nonfree \ | |||
--enable-postproc \ | |||
--enable-libfaac \ | |||
--enable-libmp3lame \ | |||
--enable-libopencore-amrnb \ | |||
--enable-libopencore-amrwb \ | |||
--enable-libtheora \ | |||
--enable-libvorbis \ | |||
--enable-libvpx \ | |||
--enable-libx264 \ | |||
--enable-libxvid | |||
make | |||
make install | |||
cd .. | |||
</pre> | |||
<pre> | |||
./configure \ | |||
--arch=armel \ | |||
--target-os=linux \ | |||
--enable-libv4l2 \ | |||
--enable-gpl \ | |||
--enable-version3 \ | |||
--enable-nonfree \ | |||
--enable-postproc \ | |||
--enable-libmp3lame \ | |||
--enable-libopencore-amrnb \ | |||
--enable-libopencore-amrwb \ | |||
--enable-libtheora \ | |||
--enable-libvorbis \ | |||
--enable-libvpx \ | |||
--enable-libx264 \ | |||
--enable-libxvid | |||
</pre> | |||
== Links == | == Links == |
Aktuelle Version vom 4. Mai 2024, 13:41 Uhr
Noch in Bearbeitung
Selbst kompilieren
Abhängigkeiten
libfaac-dev
Da libfaac-dev nicht frei ist, muss es manuell installiert werden.
Quellen:
https://packages.debian.org/bookworm/libfaac-dev
https://deb-multimedia.org/dists/stable/main/
cd ~/temp wget https://deb-multimedia.org/pool/main/f/faac-dmo/libfaac-dev_1.30-dmo1_armhf.deb wget https://deb-multimedia.org/pool/main/f/faac-dmo/libfaac0_1.30-dmo1_armhf.deb sudo dpkg -i libfaac0_1.30-dmo1_armhf.deb sudo dpkg -i libfaac-dev_1.30-dmo1_armhf.deb
Aus den Paktequellen
sudo apt-get install make automake g++ bzip2 python3 unzip patch subversion ruby build-essential git \ checkinstall yasm texi2html libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev \ libtheora-dev libvdpau-dev libvorbis-dev libvpx-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev \ yasm libv4l-dev
x264
cd ~/temp git clone https://code.videolan.org/videolan/x264.git sudo su cd x264 ./configure --enable-shared make && make install cd ..
libvpx
cd ~/temp git clone https://chromium.googlesource.com/webm/libvpx sudo su cd libvpx ./configure make sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
ldconfig
Die Datei
sudo vi /etc/ld.so.conf
editieren und folgende Zeilen hinzufügen:
/usr/lib /usr/local/lib
Danach mittels
sudo ldconfig
Pfade neu laden
rpi-update
ERROR: mmal not found
https://raspberrypi.stackexchange.com/questions/34107/libmmal-core-so-missing
ffmpeg
cd ~/temp wget https://ffmpeg.org//releases/ffmpeg-7.0.tar.bz2 tar xvjf ffmpeg-7.0.tar.bz2 sudo su cd ffmpeg-7.0 ./configure \ --arch=armel \ --target-os=linux \ --enable-omx \ --enable-omx-rpi \ --enable-mmal \ --enable-gpl \ --enable-version3 \ --enable-nonfree \ --enable-postproc \ --enable-libfaac \ --enable-libmp3lame \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libxvid make make install cd ..
./configure \ --arch=armel \ --target-os=linux \ --enable-libv4l2 \ --enable-gpl \ --enable-version3 \ --enable-nonfree \ --enable-postproc \ --enable-libmp3lame \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libxvid
Links
https://www.linux-magazin.de/ausgaben/2017/11/ffmpeg-mit-gpus/3/
https://wiki.ubuntuusers.de/FFmpeg/
Zurück zu Ubuntu