[FFmpeg-user] replace several lines by one using the filter_complex
andrei ka
andrei.k.gml at gmail.com
Wed Jul 15 12:19:03 EEST 2020
guess it'll make jumps in pts, maybe genps on output would be useful
On Fri, Jul 10, 2020 at 1:46 PM Leonardo via ffmpeg-user <
ffmpeg-user at ffmpeg.org> wrote:
>
>
> On Friday, July 10, 2020, 1:37:39 AM GMT-3, Gyan Doshi <
> ffmpeg at gyani.pro> wrote:
>
>
> Yes, using the concat filter.
>
> ffmpeg -i video.mp4 -filter_complex
> "[0:v]trim=start=7:end=1173,setpts=PTS-STARTPTS[v1];[0:v]trim=start=1260:end=1430,setpts=PTS-STARTPTS[v2];[0:a]atrim=start=7:end=1173,asetpts=PTS-STARTPTS[a1];[0:a]atrim=start=1260:end=1430,asetpts=PTS-STARTPTS[a2];[v1][a1][v2][a2]concat=n=2:v=1:a=1"
> merged.mp4
>
> Gyan
>
>
> Thank you Gyan !!
> Kind regards,Leonardo
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list