Is it possible to play audio though the /3.5mm jack/ without startx?

Seems like it would be a lot of trouble just to play some audio.

  • When you say 'auxiliary port', are you referring to the 3.5mm jack output, or the RCA connector output? – goobering Feb 10 '16 at 18:35
  • The 3.5mm jack. – desu Feb 10 '16 at 18:37
  • 'aplay' or 'omxplayer' will play audio from the command line... – Piotr Kula Feb 10 '16 at 18:45
  • Sorry desu, that was an either/or question. The pi has a 3.5mm jack output, which is used for audio, and it has an RCA output which is used for component video. RCA type connectors are commonly mis-named as 'auxiliary'. I suspect your question relates to trying to get audio out of the yellow RCA connector, which is not possible. Can you confirm which output socket you're referring to? – goobering Feb 10 '16 at 18:57
  • 1
    @goobering, it's a Pi2B, so there's no additional RCA connector, just the 3.5 mm jack with four rings for audio and video. – Ghanima Feb 10 '16 at 19:32

Yeah, it's possible. I even play movies without startx. I personally use omxplayer but any command-line based player would do it.

Edit as suggested by angussidney:

  • What package do you need to install?
    • You need the omxplayer package.
  • How do you install omxplayer?
    • sudo apt-get install omxplayer
  • How do you open media files? What command do you use?
    • omxplayer [media file name or path]
  • Do you need any special boot config?
    • No.
  • Could you expand on how you do this? What commands do you use? What packages do you need to install? Do you need to do any special boot config? – angussidney Feb 11 '16 at 8:14
  • @angussidney -1. Tsk. No, there's nothing special about it. – PNDA Feb 11 '16 at 9:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.