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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need gnonlin. See http://www.jonobacon.org/2006/12/27/using-gnonlin-with-gstreamer-and-python/
You won’t need a
gnlcompositionbecause you only want one segment. Use agnlfilesourcewith 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.mp3starting at 10 seconds, write todestination.ogg: