Score:1

Convert MKV to audio only in Linux

cn flag

I am trying to convert a video (recorded with OBS) from MKV to audio only (e.g. MP3 or OGG)

in k(Ubuntu).

I tried this command first :

ffmpeg -i myVideo.mkv -acodec libvorbis output.ogg

the result was a video again.

i was searching stackoverlow for converting MKV to audio. I found many converting answers to other video-formats but not to audio.

Operating System:

Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Score:4
hu flag

Try the following:

ffmpeg -i myVideo.mkv -vn -c:a libvorbis output.ogg

-vn tells FFmpeg to ignore all video streams.

To transcode all audio streams from your input media, and also add some libvorbis options try the following:

ffmpeg -i myVideo.mkv -map 0:a -c:a libvorbis -b:a 96k output.ogg

Another sound option for libvorbis could be something like: -c:a libvorbis -qscale:a 5.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.