1 | ffmpeg -i infile.flac -q:a 0 outfile.mp3 |
-q:a 0
tells ffmpeg
to use the highest quality VBR.
However, ffmpeg
was transcoding my album art from jpeg
to png
, which increased the size of the cover art.
1 2 3 4 | Stream mapping: Stream #0:1 -> #0:0 (mjpeg (native) -> png (native)) Stream #0:0 -> #0:1 (flac (native) -> mp3 (libmp3lame)) |
(I guess the above conversion sort of makes sense given how ffmpeg
works.)
After some digging, I found the -c:v copy
option, which specifies that the video stream should be copied, rather than transcoded. The full command is:
1 2 | ffmpeg -i infile.flac -c:v copy -q:a 0 outfile.mp3 |
The above command results in:
1 2 3 | Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:0 -> #0:1 (flac (native) -> mp3 (libmp3lame)) |
0 条评论