FFMPEG从MP3转换为M4A-获取错误

问题描述 投票:2回答:1

我正在使用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(使用不同的代码字符串),但我不断收到错误,例如:qazxsw poi

转换为M4A的最佳方法是什么?我这样做是为了减少磁盘空间。

audio ffmpeg mp3 m4a converters
1个回答
5
投票

添加[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!。 FFmpeg正试图对封面图像进行转码。虽然即使在转码时你也不应该得到那个错误 - 我认为这是一个错误。

© www.soinside.com 2019 - 2024. All rights reserved.