2017-01-20 89 views
0

我想將非常長的.ts視頻文件 - 轉換成更短的mp4文件。ffmpeg - 按時間將TS文件分割成更短的文件

我使用的命令是:

ffmpeg.exe -i "C:\Users\Rob\Desktop\230316.ts" -ss 00:05:08 -t 00:00:50 -c copy "C:\Users\Rob\Desktop\VideoSplitter\16.18.mp4" 

但是,運行這個時候,ffmpeg的被「卡住」,並在終端一遍又一遍地重複同樣的路線:

frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 
frame= 0 fps=0.0 q=-1.0 size=  469kB time=00:00:50.01 bitrate= 76.8kbits/ 

當我按CTRL + C退出,我注意到新文件已經創建...但是,只有音頻和沒有視頻。

任何想法如何解決這個請嗎?我正在使用最新的ffmpeg.exe。

回答

0

您正在使用緩慢查找(ss,放在-i filename之後)。在這種情況下,ffmpeg解碼所有幀直到到達入點。假設你的文件至少和內點值一樣長,你必須等到它達到那個點。或者,您可以在-i之前放置ss並快速尋找。這應該開始更快。

+0

不幸的是,這並沒有解決問題。它仍然達到某個幀並被「卡住」: frame = 0 fps = 0.0 q = -1.0 size = 471kB time = 00:00:49.93 bitrate = 77.2kbits/ frame = 0 fps = 0.0 q = 1.0 size = 471kB time = 00:00:49.93 bitrate = 77.2kbits/ frame = 0 fps = 0.0 q = -1.0 size = 471kB time = 00:00:49.93 bitrate = 77.2kbits/ frame = 0 fps = 0.0 q = -1.0大小= 471kB時間= 00:00:49.93 bitrate = 77.2kbits/ frame = 0 fps = 0.0 q = -1.0 size = 471kB time = 00:00:49.93 bitrate = 77.2kbits/ –

+0

用'報告「,並鏈接至* full *報告。 – Mulvya