I want to record an audio stream with Audio Recorder in .opus format or via the command line. I saw this post and tried the alias suggestion provided as the last answer but unfortunately it gave me an error: Failed to parse the argument for --monitor-stream and Xen2050's question relating to the same problem was never answered. I then tried to see if I could get Audio Recorder to record in .opus with opusenc --raw - $(xdg-user-dir MUSIC)/recording-$(date +"%F_%H-%M-%S").opus and audio/x-raw,rate=44100,channels=2 !libopus name=enc quality=0.5 ! oggmux but it gives me an error that it needs the GStreamer opus plugin. Despite installing via apt gstreamer1.0-plugins-*, opus-tools, and libopus0 it still gives me an error.
Asked
Active
Viewed 679 times
2
bvargo
- 475
- 1
- 4
- 16
1 Answers
1
Under AudioRecorder I use:
- Title: Opus 48khz 32kbs
- File extension: opus
- Command:
audio/x-raw,rate=48000,channels=2 ! opusenc name=enc bitrate=32000 ! oggmux
These are working in Lubuntu 20.04, although there seems to be hard coded rate and not fully libopus working.
Artur Meinild
- 21,605
- 21
- 56
- 89
Osering
- 11
- 1
-
Despite https://wiki.xiph.org/Opus_Recommended_Settings, I've found that when I try to specify single-digit changes to e.g., "ffmpeg -i ... -b:a 17k -acode libopus ..." it only encodes at certain bit rates per mediainfo. – bvargo Jun 25 '21 at 10:34