FFMPEG 从 MP3 转换为 M4A- 出现错误

FFMPEG convert from MP3 to M4A- Getting errors

我正在研究 Windows 10 x64,构建 ffmpeg-20180916-5109c38-win64-static。

我有一个 MP3 音频文件文件夹,我想将其转换为 M4A。

这是我的命令运行:

FOR /F "tokens=*" %G IN ('dir /b *.mp3') DO ffmpeg -i "%G" -map_metadata 0 -c:a aac -b:a 192000 "%~nG.m4a"

这会扫描我的 bin 文件夹并转换所有文件。这非常适合将视频文件从 MOV 转换为 MP4(使用不同的代码字符串),但我不断收到以下错误: [ipod @ 0000025507991b40] Frame rate very high for a muxer not efficiently supporting it. Please consider specifying a lower framerate, a different muxer or -vsync 2 [libx264 @ 0000025507e45180] using SAR=1/1 [libx264 @ 0000025507e45180] MB rate (129960000) > level limit (16711680) [libx264 @ 0000025507e45180] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0000025507e45180] profile High 4:4:4 Predictive, level 6.2, 4:4:4, 8-bit [libx264 @ 0000025507e45180] 264 - core 157 r2932 303c484 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [ipod @ 0000025507991b40] Could not find tag for codec h264 in stream #0, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:1 -- [aac @ 0000025507e60100] Qavg: nan Conversion failed!

转换为 M4A 的最佳方式是什么?我这样做是为了减少磁盘 space.

添加-c:v copy。 FFmpeg 正在尝试对封面图像进行转码。虽然即使在转码时也不应该出现该错误 - 我认为这是一个错误。

跳过包含视频流也有效。

-vn

在输出文件之前添加这个。