LINE-IN als MP3 direkt aufzeichnen?

Heute ist Stammtischzeit:
Jeden Donnerstag 20:30 Uhr hier im Chat.
Wer Lust hat, kann sich gerne beteiligen. ;)
  • Und die nächste Idee, welche mich Wahnsinnig macht.

    Ich habe mir vom "Chinamann" eine USB Soundkarte schicken lassen.

    Der Raspberry findet die Karte, und ich kann auch direkt von LINE IN aufnehmen. Das ganze als WAV Datei.

    Wenn ich jetzt aber versuche, das ganze als MP3 direkt laufen zu lassen, fängt er an zu maulen.

    Lame ist installiert:

    Code
    arecord -v -f cd -t raw | lame -r -m s -a -b 64 - output.mp3

    [/quote]

    und viele weitere Codeschnippsel wurden bereits getestet.

    Als Fehler kommt dann

    Zitat

    arecord: main:682: audio open error: No such file or directory

    Auch das ganze mit SUDO (wegen evtl. fehlender Berechtigungen) brachte keine Änderung.

    Von mir gewünscht wäre die Option eine Audioquelle von LINE IN z.B. 30Sekunden als MP3 aufzunehmen, oder als WAV zu speichern und dann in MP3 danach umzuwandeln. Das ganze sollte dann nämlich per Mail verschickt werden, oder als Stream immer wieder ausgegeben werden.

    Zitat

    pi@raspberrypi ~ $ arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    :helpnew::helpnew::helpnew::helpnew::helpnew::danke_ATDE:

  • Schon man die gute alte Tante Google gefragt? Mir hat sie z.B. dies erzählt:

    Hooked them all together, installed avahi-daemon on the Pi so I can ssh into it easily from any lan (ssh raspberrypi.local, although I should change its name to something more unique). Tested arecord locally first. It took me a while to figure out how to use arecord, it’s old stuff that I’m not very used to. You need to specify the hardware device. If you get this sort of error:

    arecord: main:682: audio open error: No such file or directory

    probably you haven’t specified that you want to record from the card that actually has an input device

    pi@raspberrypi ~ $ arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 1: Audio [2 Channel USB Audio], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    I hooked my phone’s audio player to the mic input of the USB card so that there would be constantly audio coming in the Pi, then started recording

    pi@raspberrypi ~ $ arecord -D hw:1,0 -f s16_le -c 2 > test.wav

    I have specified the hardware device I want to use, the format and the number of channels. Playing back that file worked.

    --
    man ist das System-Anzeigeprogramm für die Handbuchseiten von Linux.

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!