在 ffmpeg 指令中轉義單引號

在 ffmpeg 指令中轉義單引號

我在視窗 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 中執行這個命令

相關內容