看板 AVEncode 關於我們 聯絡資訊
想請教,想要不re-encode的方式合併數個(十個)mp4,語法要怎麼作。我先創了一個txt 內容如下: https://i.imgur.com/LP7HgSS.jpg
txt及10個影片檔都在同一個地方:Macbook Pro>Macintosh HD>Users>我的名稱>downloads 我在terminal輸入以下語法: ffmpeg -f concat -i mylist.txt -c copy output 卻都失 敗,說找不到file directory. 我是哪一步驟作錯了嗚嗚!希望能幫我指正一下,非常感謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.11.48.23 ※ 文章網址: https://www.ptt.cc/bbs/AVEncode/M.1536239650.A.47F.html
tntchn: 檔案沒副檔名? 09/06 22:13
goldie: ffmpeg會由你指定的副檔名來決定要用什麼format 09/06 23:24
我發現到副檔名問題,我加上去了,他還是說no such file or directory https://i.imgur.com/IJ9yQPf.png 跪求兩位大大幫忙了!
※ 編輯: tenorio5 (101.11.48.23), 09/07/2018 10:34:36
andrew43: 該不會是沒先 cd ~/downloads 09/07 12:54
我試試看 還是不行@@說什麼unknown keyword https://i.imgur.com/HCFVwyD.png
※ 編輯: tenorio5 (1.167.48.68), 09/07/2018 16:09:01
andrew43: 檔名用全英文數字就好 09/07 16:23
我改了檔名,也改了txt裡面的內容如下,還是一樣什麼unknown keyword @@ https://i.imgur.com/V3IvKtS.png
※ 編輯: tenorio5 (1.167.48.68), 09/07/2018 17:26:43
andrew43: 因為檔名有空白鍵。我說只用英文和數字。要用空白鍵,檔 09/07 17:53
andrew43: 名路徑要用單引號包起來。 09/07 17:54
andrew43: https://ffmpeg.org/ffmpeg-formats.html#concat 仔細看 09/07 17:54
有點不懂意思,檔名要改像是 1 a.mp4 2 a.mp4 有數字有英文以空白鍵?txt裡面路徑改 成file '1 a.mp4' file '2 a.mp4' 這樣嗎?不好意思,這我真的不是很擅長 ※ 編輯: tenorio5 (1.167.48.68), 09/07/2018 18:08:36
andrew43: 簡單說檔名把空白鍵刪掉 09/07 18:11
我現在檔名就是 1.mp4,2.mp4完全沒有空白鍵的 https://i.imgur.com/PoNPPDp.png
※ 編輯: tenorio5 (1.167.48.68), 09/07/2018 18:38:07 ※ 編輯: tenorio5 (1.167.48.68), 09/07/2018 18:40:42
andrew43: 你輸入 cat mylist.txt 檢查該檔是不是真的plain text 09/07 19:24
andrew43: 我懷疑這個檔案不是真的純文字檔 09/07 19:25
好像不是ㄟ 他說no such file or directory 他本來是rtf我改檔名成txt而已那我該怎 麼作把他變成plain text?感謝指正! 改成plain text 沒問題了!感謝幫忙! ※ 編輯: tenorio5 (1.167.48.68), 09/07/2018 19:46:35