How to use the Trim filter with PyAV #1645
Unanswered
LettsDoSomeCoding
asked this question in
1. Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Great project!
I am trying to create a script that automatically cuts videos into 60 second segments, as well as remove the silence at the start of the video (although this is stretch goal). I've been looking at some examples of using filters that others have provided (e.g. #742 (comment)) and thought I could apply similar logic to use the Trim filter.
I've gotten this far with my code
But the
graph.configure()
function is giving the following error:I've taken a look at the
configure
function and it seems like the arguments that haven't been filled should have defaults that seem reasonable, to my untrained eye.I'm probably completely misunderstanding how to use the
Graph
Class as I'm fairly new to ffmpeg and PyAV, so I'm very happy for people to tell me what to do or what docs I need to read.Beta Was this translation helpful? Give feedback.
All reactions