Ffmpeg: Unterschied zwischen den Versionen
KKeine Bearbeitungszusammenfassung |
|||
Zeile 6: | Zeile 6: | ||
= Anwendungen = | = Anwendungen = | ||
== Audio == | == Audio == | ||
== WAV == | === WAV === | ||
''' wav zu mp3 ''' | ''' wav zu mp3 ''' | ||
$ ffmpeg -i audio.wav -acodec libmp3lame audio.mp3 | $ ffmpeg -i audio.wav -acodec libmp3lame audio.mp3 | ||
Zeile 32: | Zeile 32: | ||
$ ffmpeg -i audio.ogg -acodec ac3 audio.ac3 | $ ffmpeg -i audio.ogg -acodec ac3 audio.ac3 | ||
== AC3 == | === AC3 === | ||
''' ac3 zu mp3 ''' | ''' ac3 zu mp3 ''' | ||
$ ffmpeg -i audio.ac3 -acodec libmp3lame audio.mp3 | $ ffmpeg -i audio.ac3 -acodec libmp3lame audio.mp3 | ||
Zeile 45: | Zeile 45: | ||
$ ffmpeg -i audio.ac3 -acodec libvorbis audio.ogg | $ ffmpeg -i audio.ac3 -acodec libvorbis audio.ogg | ||
== AAC == | === AAC === | ||
''' aac zu mp3 ''' | ''' aac zu mp3 ''' | ||
$ ffmpeg -i audio.aac -acodec libmp3lame audio.mp3 | $ ffmpeg -i audio.aac -acodec libmp3lame audio.mp3 | ||
Zeile 59: | Zeile 59: | ||
== Video == | == Video == | ||
== Video rotieren == | === Video rotieren === | ||
''' 90 Grad nach rechts ''' | ''' 90 Grad nach rechts ''' | ||
ffmpeg -i input.mpeg -vf "transpose=1" -qscale 0 output.mpeg | ffmpeg -i input.mpeg -vf "transpose=1" -qscale 0 output.mpeg |
Version vom 23. März 2022, 12:56 Uhr
ffmpeg bearbeitet und knovertiert Audio- und Videomedien
Installation
$ sudo apt install ffmpeg
Anwendungen
Audio
WAV
wav zu mp3
$ ffmpeg -i audio.wav -acodec libmp3lame audio.mp3
wav zu ogg
$ ffmpeg -i audio.wav -acodec libvorbis audio.ogg
wav zu aac
$ ffmpeg -i audio.wav -acodec libfaac audio.aac
wav zu ac3
$ ffmpeg -i audio.wav -acodec ac3 audio.mp3
OGG
ogg zu mp3
$ ffmpeg -i audio.ogg -acodec libmp3lame audio.mp3
ogg zu wav
$ ffmpeg -i audio.ogg audio.wav
ogg zu aac
$ ffmpeg -i audio.ogg -acodec libfaac audio.aac
ogg zu ac3
$ ffmpeg -i audio.ogg -acodec ac3 audio.ac3
AC3
ac3 zu mp3
$ ffmpeg -i audio.ac3 -acodec libmp3lame audio.mp3
ac3 zu wav
$ ffmpeg -i audio.ac3 audio.wav
ac3 zu aac
$ ffmpeg -i audio.ac3 -acodec libfaac audio.aac
ac3 zu ogg
$ ffmpeg -i audio.ac3 -acodec libvorbis audio.ogg
AAC
aac zu mp3
$ ffmpeg -i audio.aac -acodec libmp3lame audio.mp3
aac zu wav
$ ffmpeg -i audio.aac audio.wav
aac zu ac3
$ ffmpeg -i audio.aac -acodec ac3 audio.ac3
aac zu ogg
$ ffmpeg -i audio.aac -libvorbis audio.ogg
Video
Video rotieren
90 Grad nach rechts
ffmpeg -i input.mpeg -vf "transpose=1" -qscale 0 output.mpeg
90 Grad nach links
ffmpeg -i input.mpeg -vf "transpose=2" -qscale 0 output.mpeg
180 Grad
ffmpeg -i input.mpeg -vf "hflip,vflip" -qscale 0 output.mpeg
Links
ffmpeg bietet viele zusätzliche Qualitätseinstellungen und andere Optionen an, die in der Manpage nachgeschlagen werden können.