Vidéo de coupe Ffmpeg Python

vid = (
    input_vid
    .trim(start = 100, end = 160)
    .setpts('PTS-STARTPTS')
)
aud = (
    input_vid
    .filter_('atrim', start = 100, end = 160)
    .filter_('asetpts', 'PTS-STARTPTS')
)

joined = ffmpeg.concat(vid, aud, v=1, a=1)
output = ffmpeg.output(joined[0], joined[1], 'out.mp4')
output.run()
Hernan Garat