我在 Windows 10 中有一个具有此确切文件路径的文件夹:
D:\martinradio\rips\vinyl-wip\7.10.23\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band – Is We Is! (The Prison Rap) All We Want'sa Prison
如您所见,文件夹名称中有一个单引号:All We Want'sa Prison
我的 ffmpeg 命令有文件输入和文件输出文件路径用双引号引起来,但是当我运行命令时,文件夹名称中的单引号引起了问题:
.\ffmpeg.exe
-r 2 -i "D:\martinradio\rips\vinyl-wip\7.10.23\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band - Is We Is! (The Prison Rap) All We Want'sa Prison\A - Is We Is! (The Prison Rap).flac"
-r 2 -i "D:\martinradio\rips\vinyl-wip\7.10.23\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band - Is We Is! (The Prison Rap) All We Want'sa Prison\B - All We Want'sa Prison.flac"
-r 2 -i "D:\martinradio\rips\vinyl-wip\7.10.23\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band - Is We Is! (The Prison Rap) All We Want'sa Prison\front.png"
-r 2 -i "D:\martinradio\rips\vinyl-wip\7.10.23\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band - Is We Is! (The Prison Rap) All We Want'sa Prison\back.png"
-r 2 -i "D:\martinradio\rips\vinyl-wip\7.10.23\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band - Is We Is! (The Prison Rap) All We Want'sa Prison\side_1.png"
-r 2 -i "D:\martinradio\rips\vinyl-wip\7.10.23\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band - Is We Is! (The Prison Rap) All We Want'sa Prison\side_2.png"
-filter_complex "[0:a][1:a]concat=n=2:v=0:a=1[a];[2:v]scale=w=2000:h=2000:force_original_aspect_ratio=decrease,setsar=1,loop=152.57:152.57[v2];[3:v]scale=w=2000:h=2000:force_original_aspect_ratio=decrease,setsar=1,loop=152.57:152.57[v3];[4:v]scale=w=2000:h=2000:force_original_aspect_ratio=decrease,setsar=1,loop=152.57:152.57[v4];[5:v]scale=w=2000:h=2000:force_original_aspect_ratio=decrease,setsar=1,loop=152.57:152.57[v5];[v2][v3][v4][v5]concat=n=4:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]"
-map [v] -map [a] -c:a pcm_s32le -c:v libx264 -bufsize 3M -crf 18 -pix_fmt yuv420p -tune stillimage -t 305.15
"D:\martinradio\rips\vinyl-wip\7.10.23\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band - Is We Is! (The Prison Rap) All We Want'sa Prison\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band - Is We Is! (The Prison Rap) All We Want'sa Prison_427.mkv"
我收到此错误:
D:\martinradio\rips\vinyl-wip\7.10.23\The Barbed Wire Choir Of Flora, Illinois Chief Ed Guyott And The Long Arm Of The Law Band - Is We Is! (The Prison Rap) All We Want'sa Prison\A - Is We Is! (The Prison Rap).flac: No such file or directory
我认为此错误是由单引号字符引起的,我该如何转义它以便我的命令运行?我尝试遵循此处接受的答案:ffmpeg concat 中的文件名引用
但命令仍然失败。我在 powershell 中运行此命令