User Tools

Site Tools


ffmpeg

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
ffmpeg [2022/09/04 03:30] – WEBMs rjtffmpeg [2023/03/24 17:43] – [Converting] fixed busted example flac to mp3 rjt
Line 39: Line 39:
 <code>for i in *.[ext]; do ffmpeg -i "$i" "directory/${i%.*}.[ext]"; done</code> <code>for i in *.[ext]; do ffmpeg -i "$i" "directory/${i%.*}.[ext]"; done</code>
  
-For converting a directory of .FLAC files to .MP3. ''[-qscale:a 0|-b:a 320k]'' is your choice between VBR with the best quality (0) or a CBR of 320k. VBR is generally just as good, though sometimes you need CBR.+For converting a directory of .FLAC files to .MP3. ''[-q:a 0|-b:a 320k]'' is your choice between VBR with the best quality (0) or a CBR of 320k. VBR is generally just as good, though sometimes you need CBR.
  
-<code>for in ./*.flac; do ffmpeg -i "$a" [-qscale:a 0|-b:a 320k] "${a[@]/%flac/mp3}"; done</code>+<code>for in *.flac; do ffmpeg -i "$i" [-q:a 0|-b:a 320k] "${i%*}.mp3"; done</code>
  
 ==== Editing ==== ==== Editing ====
ffmpeg.txt · Last modified: 2023/08/27 20:51 by rjt