Skip to content
  • View menu
  • View sidebar

trenkwalder.name

Photoblog

  • Home
  • Xaver
  • Alben
  • Hobbies
  • Knowledge Base
  • About

Recent Posts

  • Herbst
  • Laurins 7. Geburtstag
  • Xavers 4. Weihnachten
  • Ein Spatz am heißen Dach …
  • Paulis Erstkommunion

Recent Comments

  • Ursula Gloor on About
  • d on pacman error: failed to update mingw64 (unable to lock database)?
  • sdaau on pacman error: failed to update mingw64 (unable to lock database)?
  • wpadmin on pacman error: failed to update mingw64 (unable to lock database)?
  • NatoBoram on pacman error: failed to update mingw64 (unable to lock database)?

Archives

  • November 2021
  • May 2021
  • December 2018
  • June 2018
  • May 2018
  • April 2018
  • January 2017
  • May 2016
  • July 2015
  • October 2014
  • August 2014

Calendar

May 2025
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Nov    

Categories

  • Uncategorized
  • Xaver

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Archives

How to select streams from a file with ffmpeg?

  • file, select, stream
  • Leave a comment

This is, what the -map option is for. In the simplest form you just select one after another stream from the sources with the form <file>:<stream>. So for example to select the first stream from the first input file, use 0:0.

See https://ffmpeg.org/ffmpeg.html#toc-Advanced-options.

How to recode audio by leaving video as is?

  • audio, recode
  • Leave a comment
$ ffmpeg -i input.mp4 -c:v copy -c:a libfdk_aac -b:a 384k output.mp4

How to recode audio?

  • lame, mp3, wav
  • Leave a comment
$ ffmpeg -i input.wav -codec:a libmp3lame -qscale:a 2 output.mp3

A table with options mapped to lame can be found at https://trac.ffmpeg.org/wiki/Encode/MP3.

How to simply convert video files i.e. MKV to MP4?

  • convert, mkv, mp4
  • Leave a comment
$ ffmpeg -i LostInTranslation.mkv -vcodec copy -acodec copy LostInTranslation.mp4

See http://askubuntu.com/questions/396883/ddg#396906.

Proudly powered by WordPress | Theme: editor by Array