Using ffmpeg to cut video into pieces

时间:2016-02-12 20:44:05

标签: ffmpeg

If using ffmpeg to precisely cut up a video into pieces, for instance using something like:

select DISTINCT 
  x.ReceiveMail as [Receive Mail], 
  x.ParticipantID as [Participant ID], 
  x.LastName as [Last Name], 
  x.FirstName as [First Name], 
  x.AliasName as [Alias Name], ......  
where x.LastName like '%Greenwood%' 
AND (x.FirstName like '%Jonny%' OR x.AliasName like '%Jonny%')

Would the resulting clip include the last frame? (e.g., frame 1800 for a 60FPS video)

Also, should the audio also be re-encoded to ensure that no audio de-sync happens if I were to concatenated it together with other clips?

1 个答案:

答案 0 :(得分:0)

如果视频是恒定帧速率,那么它应该包括1800帧。到达位置时to停止,即30.000因此,CFR视频中的第1800帧的PTS为29.983秒

对于音频,如果音频比视频短,那么即使在编码之后也是如此,除非你明确地应用填充。由于您似乎是从较大的视频中提取出来的,因此您不应该遇到这个问题。

相关问题