本帖最后由 lasser5586 于 2021-1-31 21:15 编辑
大神们, 问下为什么我在使用subtitles命令的时候指定文件, 但出现错误呢. 如下文记录的蓝色部分
如果在同一个文件夹内, 即只有文件名, 不需要带地址的话, 命令是没问题的.
请大神指点, 谢谢
C:\Users\lvyin>ffmpeg -i "C:\Users\lvyin\Desktop\B\1.avi" -vf subtitles="C:\Users\lvyin\Desktop\B\1.srt" -y"C:\Users\lvyin\Desktop\B\1.2021-01-31-20-49-50.mp4" ffmpeg version 4.2.2 Copyright (c) 2000-2019 theFFmpeg developers built withgcc 9.2.1 (GCC) 20200122 configuration: --enable-gpl --enable-version3 --enable-sdl2--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass--enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab--enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex--enable-libxvid --enable-libaom --enable-libmfx --enable-amf--enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc--enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt libavutil 56. 31.100 / 56.31.100 libavcodec 58. 54.100 / 58.54.100 libavformat 58. 29.100 / 58.29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 [wmv3 @ 000002b5b400b5c0] Extra data: 16 bits left,value: 401F Input #0, avi, from 'C:\Users\lvyin\Desktop\B\1.avi': Metadata: encoder : Nandub v1.0rc2 Duration:00:28:03.69, start: 0.000000, bitrate: 948 kb/s Stream#0:0: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 640x480, 766 kb/s,119.88 fps, 23.98 tbr, 119.88 tbn, 119.88 tbc Stream#0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 150 kb/s [wmv3 @ 000002b5b44a4f80] Extra data: 16 bits left,value: 401F Stream mapping: Stream #0:0-> #0:0 (wmv3 (native) -> h264 (libx264)) Stream #0:1-> #0:1 (mp3 (mp3float) -> aac (native)) Press [q] to stop, [?] for help [subtitles @ 000002b5b40a3dc0] Unable to parse option value"UserslvyinDesktopB1.srt" as image size Lastmessage repeated 1 times [subtitles @ 000002b5b40a3dc0] Error setting option original_size to valueUserslvyinDesktopB1.srt. [Parsed_subtitles_0 @ 000002b5b43b2c80] Error applying options to the filter. [AVFilterGraph @ 000002b5b4292900] Error initializing filter 'subtitles' with args'C:UserslvyinDesktopB1.srt' Error reinitializing filters! Failed to inject frame into filter network: Invalidargument Error while processing the decoded data for stream#0:0 [aac @ 000002b5b4020500] Qavg: 9800.330 [aac @ 000002b5b4020500] 2 frames left in the queueon closing Conversion failed!
|