Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

How do I cut out a section of audio from a larger one, with VLC?

+3
−0

How do I cut out/trim/split a section of audio (or video) from a larger one, with VLC?

I'm not trying to transcode, just extract a piece, ideally from the command-line.

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+3
−0

The answer is pretty straightforward, just a few arguments:

nvlc -I dummy input_file.mp3 --start-time 30 --stop-time 35 --sout file/mp3:output_file.mp3 vlc://quit

where input_file.mp3 and output_file.mp3 are the input and output files, as would be expected. The --start-time and --stop-time arguments are in seconds (can be sub-second if desired) since the beginning of the file. So in this example, the resulting file will be just 5 seconds long. The -I dummy disables the UI, while the trailing vlc://quit avoids needing to force-quit it after it finishes the conversion.

You can listen to the file first to figure out the start and stop times.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »