Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How record sound in Debian 11 ?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

How record sound in Debian 11 ?

#1 Post by MakeTopSite »

What is please the most easy way to record part of sound track from mp4 video file and store it to a new sound file ?

PipeWire is used.

User avatar
canci
Global Moderator
Global Moderator
Posts: 2502
Joined: 2006-09-24 11:28
Has thanked: 136 times
Been thanked: 136 times

Re: How record sound in Debian 11 ?

#2 Post by canci »

Do you consider command line easy? Then ffmpeg.

Do you prefer GUI? Import the video to Audacity, cut the range you want and export it as a sound file.
Image Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe

READ THIS:

* How to Post a Thread Here
* Other Tips and Great Resources

GPWR
Posts: 92
Joined: 2021-11-26 14:57
Has thanked: 12 times
Been thanked: 3 times

Re: How record sound in Debian 11 ?

#3 Post by GPWR »

MakeTopSite wrote: 2022-01-16 16:16 What is please the most easy way to record part of sound track from mp4 video file and store it to a new sound file ?

PipeWire is used.
Install ffmpeg:

Code: Select all

sudo apt-get update && sudo apt-get install ffmpeg
Use the following command to do what you ask for:

Code: Select all

ffmpeg -i video.mp4 -vn -ss 00:05:00 -to 00:10:00 extract.mp3
This command takes the audio from the input file "video.mp4", from time 00:05:00 to time 00:10:00, and renders it to MP3. You can change the export format to whatever you want as long as you have the proper codecs installed. The "-vn" argument lets ffmpeg ignore the video and treat the input as audio only, which speeds up everything a lot. I can think of no reason for not putting it in, since you're exporting to audio. Here's how to check what codecs you have:

Code: Select all

ffmpeg -encoders && ffmpeg -decoders
Cheers, and good luck. God bless.

MakeTopSite
Posts: 111
Joined: 2021-01-20 08:44
Has thanked: 8 times

[SOLVED] Re: How record sound in Debian 11 ?

#4 Post by MakeTopSite »

GPWR wrote: 2022-01-17 00:04
MakeTopSite wrote: 2022-01-16 16:16 What is please the most easy way to record part of sound track from mp4 video file and store it to a new sound file ?

PipeWire is used.
Install ffmpeg:

Code: Select all

sudo apt-get update && sudo apt-get install ffmpeg
Use the following command to do what you ask for:

Code: Select all

ffmpeg -i video.mp4 -vn -ss 00:05:00 -to 00:10:00 extract.mp3
This command takes the audio from the input file "video.mp4", from time 00:05:00 to time 00:10:00, and renders it to MP3. You can change the export format to whatever you want as long as you have the proper codecs installed. The "-vn" argument lets ffmpeg ignore the video and treat the input as audio only, which speeds up everything a lot. I can think of no reason for not putting it in, since you're exporting to audio. Here's how to check what codecs you have:

Code: Select all

ffmpeg -encoders && ffmpeg -decoders
Cheers, and good luck. God bless.
done, many thanks :D

Post Reply