How can I write the audio recording in a format other than WAV?

219 views
Skip to first unread message

Sciurus Niger

unread,
Jul 13, 2020, 3:17:29 PM7/13/20
to Gqrx SDR
I am wondering how I can make it write the audio recording in a format other than WAV; for example MP3. The WAV files just take up too much space and I did some searching around on it but didn't find anything useful.

Mike Bott

unread,
Jul 13, 2020, 3:28:15 PM7/13/20
to gq...@googlegroups.com
On 7/13/20 3:17 PM, 'Sciurus Niger' via Gqrx SDR wrote:
I am wondering how I can make it write the audio recording in a format other than WAV; for example MP3. The WAV files just take up too much space and I did some searching around on it but didn't find anything useful.
--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gqrx+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gqrx/c35cfe72-d06e-490c-b7bb-3620b3384741o%40googlegroups.com.
You could always post-process the audio with something like Sound Converter or Audacity.

--
Mike

Justin Gruwell

unread,
Jul 13, 2020, 3:34:31 PM7/13/20
to gq...@googlegroups.com

I thought about using another application to convert it but was hoping there was some way I could just change to output format in GQRX. Also being able to stream over the network in a more efficient format like MP3 would save a lot of bandwidth.

Tate Belden

unread,
Jul 13, 2020, 3:41:53 PM7/13/20
to gq...@googlegroups.com

On Mon, Jul 13, 2020 at 1:17 PM 'Sciurus Niger' via Gqrx SDR <gq...@googlegroups.com> wrote:
I am wondering how I can make it write the audio recording in a format other than WAV; for example MP3. The WAV files just take up too much space and I did some searching around on it but didn't find anything useful.

--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gqrx+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gqrx/c35cfe72-d06e-490c-b7bb-3620b3384741o%40googlegroups.com.


--
Tate Belden

We are dreamers, shapers, singers and makers. We study the mysteries of laser and circuit, crystal and scanner, holographic demons and invocations of equations. These are the tools we employ, and we know many things.  --Elric

Alexander Fasching

unread,
Jul 13, 2020, 4:05:59 PM7/13/20
to gq...@googlegroups.com
External programs like sox can convert a stream on-the-fly.
For MP3:
nc -l -u 7355 | sox -t raw -esigned-integer -b16 -r 48000 - -t mp3
output.mp3

You have to enable UDP streaming to port 7355 (default) and use this
command in a separate terminal.
nc takes the UDP stream and pipes it to sox, which converts it.
You might have to install nc or netcat.
On my system, this results in a 64kbps file and I don't know how to
select a higher bitrate.

I took this from these two links:
https://gqrx.dk/doc/streaming-audio-over-udp
https://stackoverflow.com/questions/26715383/sox-how-to-create-mp3-file-with-bit-rate-16kbps

Greg Mc

unread,
Jul 22, 2020, 9:02:49 AM7/22/20
to Gqrx SDR

On Monday, July 13, 2020 at 2:17:29 PM UTC-5, Sciurus Niger wrote:
I am wondering how I can make it write the audio recording in a format other than WAV; for example MP3. The WAV files just take up too much space and I did some searching around on it but didn't find anything useful.

With ffmpeg you can capture the UDP output like this:

ffmpeg -f s16le -ar 48000 -i udp://localhost:7355 -c:a libmp3lame -b:a 96k -ar 48000 output.mp3
Reply all
Reply to author
Forward
0 new messages