ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

Adds atrim filter.

Open jcordial opened this issue 5 years ago • 1 comments

I had been trying to trim audio files using the trim filter. After reading a bunch of ffmpeg documentation, it turns out you don't trim audio files with trim. I needed to use atrim, which hadn't been added to the api. Sooooo.... I added it.

I'm not 100% sure what the best testing strategy is for adding new filters, they don't seem to be tested directly. If you need me to add a test, let me know.

jcordial avatar Nov 18 '20 20:11 jcordial

Actually, I reread the documentation - I see there's the generic "filter" method for things like this. Feel free to close this PR if you don't want to support this particular filter directly.

jcordial avatar Nov 18 '20 23:11 jcordial