Ffmpeg (Linux): Unterschied zwischen den Versionen
		
		
		
		
		
		Zur Navigation springen
		Zur Suche springen
		
				
		
		
	
|  (→Links) | |||
| (23 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| {{note|Noch in Bearbeitung}} | {{note|Noch in Bearbeitung}} | ||
| == Hardware-Beschleunigung == | |||
| === Links === | |||
| [https://trac.ffmpeg.org/wiki/HWAccelIntro https://trac.ffmpeg.org/wiki/HWAccelIntro] | |||
| == Selbst kompilieren == | == Selbst kompilieren == | ||
| Zeile 11: | Zeile 17: | ||
| Quellen: | Quellen: | ||
| [https://packages.debian.org/bookworm/libfaac-dev https://packages.debian.org/bookworm/libfaac-dev] | [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/] | [https://deb-multimedia.org/dists/stable/main/ https://deb-multimedia.org/dists/stable/main/] | ||
| Zeile 27: | Zeile 35: | ||
| sudo apt-get install make automake g++ bzip2 python3 unzip patch subversion ruby build-essential git \ | 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 \ | 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 | 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> | </pre> | ||
| == Links == | == Links == | ||
| [https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu] | |||
| [https://github.com/jc-kynesim/rpi-ffmpeg/blob/master/README.md https://github.com/jc-kynesim/rpi-ffmpeg/blob/master/README.md] | |||
| [https://helpdesk.vimp.com/de/wissensdatenbank-faq/article/transcoding-ubuntu-debian-ffmpeg-selbst-kompilieren https://helpdesk.vimp.com/de/wissensdatenbank-faq/article/transcoding-ubuntu-debian-ffmpeg-selbst-kompilieren] | [https://helpdesk.vimp.com/de/wissensdatenbank-faq/article/transcoding-ubuntu-debian-ffmpeg-selbst-kompilieren https://helpdesk.vimp.com/de/wissensdatenbank-faq/article/transcoding-ubuntu-debian-ffmpeg-selbst-kompilieren] | ||
Aktuelle Version vom 1. Juni 2025, 09:48 Uhr
Noch in Bearbeitung
Hardware-Beschleunigung
Links
https://trac.ffmpeg.org/wiki/HWAccelIntro
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://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
https://github.com/jc-kynesim/rpi-ffmpeg/blob/master/README.md
https://www.linux-magazin.de/ausgaben/2017/11/ffmpeg-mit-gpus/3/
https://wiki.ubuntuusers.de/FFmpeg/
Zurück zu Ubuntu