xhongc / music-tag-web

音乐标签编辑器,可编辑本地音乐文件的元数据(Editable local music file metadata.)
https://xiers-organization.gitbook.io/music-tag-web-v2
GNU General Public License v3.0
2.64k stars 177 forks source link

OPS转换失败,声道限制 #246

Open WingGao opened 2 months ago

WingGao commented 2 months ago
转换失败:/app/media/2024/黑神话.悟空.OST/71.敢问路在何方.wav
ffmpeg version 7.0.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2024 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 59. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 Input #0, wav, from '/app/media/2024/黑神话.悟空.OST/71.敢问路在何方.wav': Metadata: comment : wem:929503245 track : 71 date : 2024/08/20 TYER : 2024/08/20 title : 敢问路在何方 album : 《黑神话:悟空》游戏音乐<小曲> album_artist : 游戏科学&8082Audio TOTALTRACKS : 72 Duration: 00:05:16.05, bitrate: 9305 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 7.1.4, s16, 9216 kb/s Stream #0:1: Video: png, rgba(pc, gbr/unknown/unknown), 1440x1440 [SAR 7874:7874 DAR 1:1], 90k tbr, 90k tbn (attached pic) Metadata: comment : Cover (front) Please use -q:a or -q:v, -qscale is ambiguous Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> vorbis (libvorbis)) Press [q] to stop, [?] for help [libvorbis @ 0x7d28100] encoder setup failed [aost#0:0/libvorbis @ 0x7d23b40] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height. [af#0:0 @ 0x7d57140] Error sending frames to consumers: Invalid argument [af#0:0 @ 0x7d57140] Task finished with error code: -22 (Invalid argument) [af#0:0 @ 0x7d57140] Terminating thread with return code -22 (Invalid argument) [aost#0:0/libvorbis @ 0x7d23b40] Could not open encoder before EOF [aost#0:0/libvorbis @ 0x7d23b40] Task finished with error code: -22 (Invalid argument) [aost#0:0/libvorbis @ 0x7d23b40] Terminating thread with return code -22 (Invalid argument) [out#0/ogg @ 0x7d27580] Nothing was written into output file, because at least one of its streams received no packets. size= 0KiB time=N/A bitrate=N/A speed=N/A Conversion failed!

该问题的原因是wav是12声道,而ops最多8,所以希望转换的时候添加一个声道选项,或者默认参数