2017-03-09 5 views
0

ffmpeg를 사용하여 동영상 파일에 여러 개의 일시 중지를 추가 할 수 있습니까? 예 : 5 초에서 3 초의 일시 중지를 추가하고 17 초에서 8 초의 일시 중지를 추가하고 싶습니다. 오디오 파일 동기화는 문제가 아니며 지정된 간격으로 일시 중지해야합니다. 감사합니다. .FFMPEG- 동영상에 일시 중지 추가

+0

내 [답변] 참조 (https://superuser.com/q/1071369/114058) 당신에게 줄 것이다. – Mulvya

답변

0

'enable'매개 변수를 편집하는 타임 라인과 함께 루프 필터를 사용합니다. 은 3 초 동안 단일 프레임을 반복하는 필터를 만들도록 허용해야하지만 출력 타임 스탬프가 3 ~ 5 초 사이 인 경우에만 활성화됩니다.

https://ffmpeg.org/ffmpeg-filters.html#Timeline-editing

+0

실제로 사용할 수있는 예제 명령은 더 나은 대답을 만드는 데 매우 도움이됩니다. – LordNeckbeard

0

내 이전 대답은 원본 비디오를 절단 한 후 빈 캔버스에 오버레이 할 수도 작동하지 않으면

https://ffmpeg.org/ffmpeg-filters.html#loop

. 구성하는 필터 그래프를 전달하려면 -filter_complex 매개 변수를 사용하십시오.

the 'color' filter will give you a blank canvas with a 5 second duration 
the 'trim' filter will allow you to get a stream containing only the first 3 seconds 
the 'overlay' filter will allow you to overlay the first 3 seconds of footage onto the blank canvas repeating the last frame 

https://ffmpeg.org/ffmpeg-filters.html

기본 방법 여기를 첫 번째 장면

the 'concat' filter will allow you to join the scenes together 

you can also use 'select' (see ffmpeg timeline editing) 
to exclude the first 3 seconds of the source video for the second scene. 
(You may need to import the same source video file twice 
so you can reference it as [0:v] to make the first scene 
and [1:v] to make the second scene in the filtergraph if you run into problems.) 
관련 문제