• [gentoo-user] how to record mp3 stream

    From John Covici@21:1/5 to All on Mon Jul 1 11:20:01 2024
    Hi. I am interested in recording an mp3 stream in the background and
    being able to specify start/stop time, etc.

    I looked at Google, but just found a package called audio-recorder,
    but I am not sure its currently maintained and its not in the gentoo
    packages.

    Thanks in advance for any suggestions.

    --
    Your life is like a penny. You're going to lose it. The question is:
    How do
    you spend it?

    John Covici wb2una
    covici@ccs.covici.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Mon Jul 1 14:14:48 2024
    On Monday, 1 July 2024 11:39:09 BST Jacques Montier wrote:
    Le lun. 1 juil. 2024 à 11:19, John Covici <covici@ccs.covici.com> a écrit :
    Hi. I am interested in recording an mp3 stream in the background and
    being able to specify start/stop time, etc.

    I looked at Google, but just found a package called audio-recorder,
    but I am not sure its currently maintained and its not in the gentoo packages.

    Thanks in advance for any suggestions.

    --
    Your life is like a penny. You're going to lose it. The question is:
    How do
    you spend it?

    John Covici wb2una
    covici@ccs.covici.com

    VLC ?
    https://linuxconfig.org/how-to-stream-video-from-vlc

    --
    Jacques

    There is arecord from the package media-sound/alsa-utils, there's ffmpeg and even cvlc if you want/prefer to use CLI tools, but as far as I know they will all require some scripting to control start/stop time if you're not doing it manually. Will probably require transcoding into MP3 from raw PCM audio capture (e.g. from pcm_s16le).

    You could always record over a longer duration and then chop the bits at the start/end you don't wish to retain.


    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmaCq8gACgkQseqq9sKV ZxkD9A/8C3C+rH0ldcjFOdn6vv1qaj6UpgFHsiREU0I083cOGIJ7l2SXhMxZFO3H JC1JuA1JLx45VQCftxagVVdkiZBPIaozlvfe6omNnwYHE/ZpaxGqGTFk5B70DiGy BK2YWND7sLcGTIW9o/jC7ZVnfFG3qHI8tQVLLTEFvek9y+xWueuwncQsq6w0jeag EdjxRlRftTvErdxx84wI5upvRygcSopRwCdQdbWBiAFlG207RrRkHWBW1mwa5dmw QpUADR/qcWWkJ7kwliiW/SJ77rtpo4viACzWyP/b6WxK7iWA3m2aDhrYMr1uPW9G rB9wPgXcRApM98ftD6KGL/pCakyq1nLAwGF7+dZT5kDg+Dj0kT8WlSfEVbxs6JbC 0PIcS/i0CLSREtRV3HCwnZTQSp7DlZC90roVVfCx88NQvDqhLrjcs1urJfeOHB+U 9v363IQWHvbNC5TE3jNnTFEDUpBaaha7c5yk3hCnU2QfQOOB1/D/GS7MVNds+LFB 2e4uGn33jckDp63+L76az0YjrM3GiDk4n+2zQflpE3+xq723lIkyuNOPX5elDib0 OCmWqWLP8OAMJbi2BfnB11EUcAZQJdORhiCWKwrRjxGJ4NWVLbM7qecOH7ORBfWL 6UsI+PYQrSPgvUDTPym8YyVJ6OBbqxA2YchrcR+OtbEJls8lxIA=
    =IclZ
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?H=C3=A5kon_Alstadheim?=@21:1/5 to All on Tue Jul 2 13:40:01 2024
    You can just dump the stream directly. Use an at-command or a cron-job
    to run wget or whatever, and then kill that job when you want the
    recording to stop. All players I've tried play such a dump just fine.

    Den 01.07.2024 15:14, skrev Michael:
    On Monday, 1 July 2024 11:39:09 BST Jacques Montier wrote:
    Le lun. 1 juil. 2024 à 11:19, John Covici <covici@ccs.covici.com> a écrit :
    Hi. I am interested in recording an mp3 stream in the background and
    being able to specify start/stop time, etc.

    I looked at Google, but just found a package called audio-recorder,
    but I am not sure its currently maintained and its not in the gentoo
    packages.

    Thanks in advance for any suggestions.

    --
    Your life is like a penny. You're going to lose it. The question is:
    How do
    you spend it?

    John Covici wb2una
    covici@ccs.covici.com
    VLC ?
    https://linuxconfig.org/how-to-stream-video-from-vlc

    --
    Jacques
    There is arecord from the package media-sound/alsa-utils, there's ffmpeg and even cvlc if you want/prefer to use CLI tools, but as far as I know they will all require some scripting to control start/stop time if you're not doing it manually. Will probably require transcoding into MP3 from raw PCM audio capture (e.g. from pcm_s16le).

    You could always record over a longer duration and then chop the bits at the start/end you don't wish to retain.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)