Extract audio from video

Since avidemux is not supported, what should I use?

I would use avidemux3 from Packman.

And if it’s not supported why does zypper install it?

# zypper in avidemux3
Loading repository data...
Reading installed packages...
Resolving package dependencies...


The following 2 NEW packages are going to be installed:
  avidemux3 avidemux3-cli


2 new packages to install.
Overall download size: 5.6 MiB. Already cached: 0 B. After the operation, additional 17.9 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving package avidemux3-2.8.0-pm154.1.4.x86_64                                                (1/2),   4.3 MiB ( 15.1 MiB unpacked)
Retrieving: avidemux3-2.8.0-pm154.1.4.x86_64.rpm ...................................................................[done (278.2 KiB/s)]
Retrieving package avidemux3-cli-2.8.0-pm154.1.4.x86_64                                            (2/2),   1.3 MiB (  2.8 MiB unpacked)
Retrieving: avidemux3-cli-2.8.0-pm154.1.4.x86_64.rpm .............................................................................[done]


Checking for file conflicts: .....................................................................................................[done]
(1/2) Installing: avidemux3-2.8.0-pm154.1.4.x86_64 ...............................................................................[done]
(2/2) Installing: avidemux3-cli-2.8.0-pm154.1.4.x86_64 ...........................................................................[done]


localhost:/home/ion # avidemux3
If 'avidemux3' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf avidemux3


localhost:/home/ion # cnf avidemux3
 avidemux3: command not found
                          
localhost:/home/ion # avidemux3-cli
If 'avidemux3-cli' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf avidemux3-cli
localhost:/home/ion # 









First: Not as root
Second: use zypper/rpm to show, what packages are avaible:

zypper se -s avidemux
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

S  | Name                    | Type       | Version         | Arch   | Repository
---+-------------------------+------------+-----------------+--------+-----------
i  | avidemux3               | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman1
i  | avidemux3               | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman
   | avidemux3               | Quellpaket | 2.8.0-pm153.1.2 | noarch | Packman1
   | avidemux3               | Quellpaket | 2.8.0-pm153.1.2 | noarch | Packman
i+ | avidemux3-cli           | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman1
i+ | avidemux3-cli           | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman
   | avidemux3-cli-debuginfo | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman1
   | avidemux3-cli-debuginfo | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman
   | avidemux3-debuginfo     | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman1
   | avidemux3-debuginfo     | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman
   | avidemux3-debugsource   | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman1
   | avidemux3-debugsource   | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman
i+ | avidemux3-qt5           | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman1
i+ | avidemux3-qt5           | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman
   | avidemux3-qt5-debuginfo | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman1
   | avidemux3-qt5-debuginfo | Paket      | 2.8.0-pm153.1.2 | x86_64 | Packman
i+ | avidemux3-qt5-lang      | Paket      | 2.8.0-pm153.1.2 | noarch | Packman1
i+ | avidemux3-qt5-lang      | Paket      | 2.8.0-pm153.1.2 | noarch | Packman

Packman only shows a 15.3 version. Might that be compatible with 15.4?

This from Leap 15.4:

S | Name                    | Type       | Version         | Arch   | Repository
--+-------------------------+------------+-----------------+--------+-------------------
  | avidemux3               | Paket      | 2.8.0-pm154.1.4 | x86_64 | Packman Repository
  | avidemux3               | Quellpaket | 2.8.0-pm154.1.4 | noarch | Packman Repository
  | avidemux3-cli           | Paket      | 2.8.0-pm154.1.4 | x86_64 | Packman Repository
  | avidemux3-cli-debuginfo | Paket      | 2.8.0-pm154.1.4 | x86_64 | Packman Repository
  | avidemux3-debuginfo     | Paket      | 2.8.0-pm154.1.4 | x86_64 | Packman Repository
  | avidemux3-debugsource   | Paket      | 2.8.0-pm154.1.4 | x86_64 | Packman Repository
  | avidemux3-qt5           | Paket      | 2.8.0-pm154.1.4 | x86_64 | Packman Repository
  | avidemux3-qt5-debuginfo | Paket      | 2.8.0-pm154.1.4 | x86_64 | Packman Repository
  | avidemux3-qt5-lang      | Paket      | 2.8.0-pm154.1.4 | noarch | Packman Repository

Install avidemux3-qt5 and avidemux-qt5-lang and you can open it in Plasma from menu…

Thank you. Yes, I had to specifically install

zypper in avidemux3-qt5

ffmpeg -i VIDEO.V_EXT -acodec copy AUDIO.A_EXT

Regards

susejunky

For an easy GUI approach, start VLC, click Media, click Convert/Save. In he new window, click Add and navigate to the file you want to extract. Click Open. Click Convert/Save. For me, the default profile is Audio / MP3. Browse to or type the name of the destination folder. Click Start. Done.

Yes
I have used this too

I typically use ffmpeg from the command line. I copied and pasted the below from my notes:

**TO Extract AUDIO
**

ffmpeg -i sample.avi -q:a 0 -map a sample.mp3

TO Extract AUDIO at specific portion

If you want to extract a portion of audio from a video use the -ss option to specify the starting timestamp, and the -t option to specify the encoding duration, eg from 3 minutes and 5 seconds in for 45 seconds:

Example of an extraction:

ffmpeg -i sample.avi -ss 00:03:05 -t 00:00:45.0 -q:a 0 -map a sample.mp3   
The timestamps need to be in HH:MM:SS.xxx format or in seconds.

If you don't specify the -t option it will go to the end.

I used .avi in my example, but it could have been a different format (such as .mp4). I also used .mp3 as my output format, but that could have been a different format (such as .wav).