User Tools

Site Tools


util:multimedia:ffmpeg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
util:multimedia:ffmpeg [2015/04/21 02:27] – external edit 127.0.0.1util:multimedia:ffmpeg [2024/02/20 10:38] (current) – Added section about MP3 encoding phil
Line 51: Line 51:
   * scale to yres of 480, keeping aspect ratio (-1)   * scale to yres of 480, keeping aspect ratio (-1)
   * drop audio input (-an)   * drop audio input (-an)
 +
 +===== Concatenating Videos =====
 +
 +A quick and easy way to concat videos without re-encoding is to use the
 +''concat'' format specifier:
 +
 +  $ cat mylist.txt
 +  file '/path/to/file1'
 +  file '/path/to/file2'
 +  file '/path/to/file3'
 +  
 +  $ ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4
 +
 +===== Encoding MP3s =====
 +
 +While this is about transcoding from FLAC to MP3, the same command should do
 +for about any supported source format:
 +
 +  ffmpeg -i input.flac -q:a 0 -map a output.mp3
 +
 +By default, ffmpeg will write an ID3 version 2.4 section based on FLAC tags.
 +Though since hardly any ID3-related tool seems to support them, it is advisable
 +to pass ''-id3v2_version 3'' so version 2.3 is being used. To increase
 +compatibility, ''-write_id3v1 1'' enables additional ID3 version 1 tags.
 +
 +===== Links =====
 +
 +[[https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg|How to concatenate two mp4 files on Stackoverflow]]
  
util/multimedia/ffmpeg.txt · Last modified: 2024/02/20 10:38 by phil