Ffmpeg: Unterschied zwischen den Versionen

Aus Foxwiki
Zeile 8: Zeile 8:


== WAV ==
== WAV ==
=== wav zu mp3  ===
''' wav zu mp3  '''
  $ ffmpeg -i audio.wav -acodec libmp3lame audio.mp3
  $ ffmpeg -i audio.wav -acodec libmp3lame audio.mp3


=== wav zu ogg  ===
''' wav zu ogg  '''
  $ ffmpeg -i audio.wav -acodec libvorbis audio.ogg
  $ ffmpeg -i audio.wav -acodec libvorbis audio.ogg


=== wav zu aac  ===
''' wav zu aac  '''
  $ ffmpeg -i audio.wav -acodec libfaac audio.aac
  $ ffmpeg -i audio.wav -acodec libfaac audio.aac


=== wav zu ac3  ===
''' wav zu ac3  '''
  $ ffmpeg -i audio.wav -acodec ac3 audio.mp3
  $ ffmpeg -i audio.wav -acodec ac3 audio.mp3


== OGG ==
== OGG ==
=== ogg zu mp3  ===
''' ogg zu mp3  '''
  $ ffmpeg -i audio.ogg -acodec libmp3lame audio.mp3
  $ ffmpeg -i audio.ogg -acodec libmp3lame audio.mp3


=== ogg zu wav  ===
''' ogg zu wav  '''
  $ ffmpeg -i audio.ogg audio.wav
  $ ffmpeg -i audio.ogg audio.wav


=== ogg zu aac  ===
''' ogg zu aac  '''
  $ ffmpeg -i audio.ogg -acodec libfaac audio.aac
  $ ffmpeg -i audio.ogg -acodec libfaac audio.aac


=== ogg zu ac3  ===
''' ogg zu ac3  '''
  $ 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


=== ac3 zu wav  ===
''' ac3 zu wav  '''
  $ ffmpeg -i audio.ac3 audio.wav
  $ ffmpeg -i audio.ac3 audio.wav


=== ac3 zu aac  ===
''' ac3 zu aac  '''
  $ ffmpeg -i audio.ac3 -acodec libfaac audio.aac
  $ ffmpeg -i audio.ac3 -acodec libfaac audio.aac


=== ac3 zu ogg  ===
''' ac3 zu ogg  '''
  $ 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


=== aac zu wav  ===
''' aac zu wav  '''
  $ ffmpeg -i audio.aac audio.wav
  $ ffmpeg -i audio.aac audio.wav


=== aac zu ac3  ===
''' aac zu ac3  '''
  $ ffmpeg -i audio.aac -acodec ac3 audio.ac3
  $ ffmpeg -i audio.aac -acodec ac3 audio.ac3


=== aac zu ogg  ===
''' aac zu ogg  '''
  $ ffmpeg -i audio.aac -libvorbis audio.ogg
  $ ffmpeg -i audio.aac -libvorbis audio.ogg


== 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


=== 90 Grad nach links ===
''' 90 Grad nach links '''
  ffmpeg -i input.mpeg -vf "transpose=2" -qscale 0 output.mpeg
  ffmpeg -i input.mpeg -vf "transpose=2" -qscale 0 output.mpeg


=== 180 Grad ===
''' 180 Grad '''
  ffmpeg -i input.mpeg -vf "hflip,vflip" -qscale 0 output.mpeg
  ffmpeg -i input.mpeg -vf "hflip,vflip" -qscale 0 output.mpeg



Version vom 12. März 2022, 10:15 Uhr

ffmpeg ist eine Open-Source-Suite von Dienstprogrammen zur Bearbeitung von Audio- und Videomedien, die zum Konvertieren von Audiodateien in verschiedene Typen wie wav, mp3, ogg usw. verwendet werden kann.

Installation

$ sudo apt install ffmpeg

Anwendungen

ffmpeg bietet viele zusätzliche Qualitätseinstellungen und andere Optionen an, die in der Manpage nachgeschlagen werden können.

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 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

Interne Links

Externe Links