ffmpeg -i test.m4a -y -acodec libmp3lame -aq 0 "test.mp3"
这是一个使用ffmpeg命令行工具将test.m4a文件转换为test.mp3文件的命令。具体解释如下: -i test.m4a:指定输入文件为test.m4a。 -y:覆盖输出文件,如果已存在同名文件,则自动覆盖。 -acodec libmp3lame:设置音频编码器为libmp3lame,这是一种常用的MP3编码格式。 -aq 0:设置音频质量为最高,数值越小,音质越差。这里设置为0表示最高质量。 "test.mp3":指定输出文件为test.mp3。
数据搬运
$ffmpeg -i test.m4a -y -acodec libmp3lame -aq 0 "test.mp3" ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers built with Apple clang version 14.0.0 (clang-1400.0.29.202) configuration: --prefix=/usr/local/Cellar/ffmpeg/6.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox libavutil 58. 2.100 / 58. 2.100 libavcodec 60. 3.100 / 60. 3.100 libavformat 60. 3.100 / 60. 3.100 libavdevice 60. 1.100 / 60. 1.100 libavfilter 9. 3.100 / 9. 3.100 libswscale 7. 1.100 / 7. 1.100 libswresample 4. 10.100 / 4. 10.100 libpostproc 57. 1.100 / 57. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.m4a': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf57.83.100 Duration: 00:02:41.22, start: 0.000000, bitrate: 97 kb/s Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream mapping: Stream #0:0 -> #0:0 (aac (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help Output #0, mp3, to 'test.mp3': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 TSSE : Lavf60.3.100 Stream #0:0(und): Audio: mp3, 44100 Hz, stereo, fltp (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] encoder : Lavc60.3.100 libmp3lame size= 3901kB time=00:02:41.20 bitrate= 198.2kbits/s speed=77.7x video:0kB audio:3900kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.008788%
标签:enable,ffmpeg,--,mp3,test,m4a From: https://www.cnblogs.com/softidea/p/17889049.html