I would like to use gstreamer to save an arbitrary clip from one audio file to a new file. For example, a segment from 1 minute to 2 minutes in the original. How do I do it?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- Can we recover audio from MFCC coefficients?
- How to get the background from multiple images by
- Evil ctypes hack in python
You need gnonlin. See http://www.jonobacon.org/2006/12/27/using-gnonlin-with-gstreamer-and-python/
You won't need a
gnlcomposition
because you only want one segment. Use agnlfilesource
with its start and duration set to 0, 1 minute, and media-start and media-duration set to 1 minute, 1 minute. All times and durations are in nanoseconds.Take 5 seconds from
source.mp3
starting at 10 seconds, write todestination.ogg
: