lerner
Posts: 436
Joined: Sun Mar 29, 2015 12:12 am

Using a RPI as an AUDIO player. - from a while back.

Thu Aug 03, 2017 7:33 am

A "long time ago" I started asking about using a PI as an audio player and what board/s to use to get the audio.

Some people said the easiest way was to extract the audio from the HDMI port with a "splitter". (Ok, maybe not EXACTLY the words used, but please....)

I basically want to play back CD's (MP3 files) and have good quality - which I have been told is not available from the existing 3.5mm jack on the Pi. That is more for game quality sounds, rather than CD.


This project has again become interesting to me and I started looking.

I found this:
http://www.msy.com.au/nsw/auburn/home/1 ... tereo.html
But think it is not exactly what I want.
It doesn't "fake" a monitor - does it.

I am wanting to run the PI headless.

Would this be better to get it working?
http://www.msy.com.au/adapter-converter ... erter.html

I didn't want to post to that thread as I think it is too old to dig up again, and rather post this new one with the new data I have.

Thanks in advance.

lerner
Posts: 436
Joined: Sun Mar 29, 2015 12:12 am

Re: Using a RPI as an AUDIO player. - from a while back.

Thu Aug 03, 2017 8:52 am

Was wondering:

Is there a way to FORCE the PI to output the "video" to the HDMI even if there is nothing connected?

That may work.

User avatar
RaTTuS
Posts: 9634
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Using a RPI as an AUDIO player. - from a while back.

Thu Aug 03, 2017 9:06 am

lerner wrote:
Thu Aug 03, 2017 8:52 am
Was wondering:

Is there a way to FORCE the PI to output the "video" to the HDMI even if there is nothing connected?

That may work.
hdmi_force_hotplug=1
in /boot/config.txt
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

lerner
Posts: 436
Joined: Sun Mar 29, 2015 12:12 am

Re: Using a RPI as an AUDIO player. - from a while back.

Thu Aug 03, 2017 9:24 am

Thanks.

I think though, that I am not doing my self any favours. :(

This is my /boot/config.txt file:
HDMI cable
hdmi_drive=2
#hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=16
#overscan_left=24
#overscan_right=24
#overscan_top=16
#overscan_bottom=16

hdmi_force_edid_audio=1
start_x=1
gpu_mem=64
***OOPS!
Ok, just saw the # in the line.

Shall try without and post back shortly.

tboplayer 01_S_Wonderful.mp3
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Traceback (most recent call last):
File "/opt/tboplayer/tboplayer.py", line 3121, in <module>
bplayer = TBOPlayer()
File "/opt/tboplayer/tboplayer.py", line 1094, in __init__
self.root = tk.Tk()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1813, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
So I think that although what was said "works" it sends the stuff out as "HDMI" rather than analogue audio.
I am not exactly sure what "smarts" are in the box..... Maybe it just breaks out the lines....

Though on the box it implies/says you connect it to analogue....... I'm confused.

But I hope it is resolvable with this one (the first one) and not needing to go back to the store (tail between legs) and swap it.

lerner
Posts: 436
Joined: Sun Mar 29, 2015 12:12 am

Re: Using a RPI as an AUDIO player. - from a while back.

Thu Aug 03, 2017 9:30 am

Ok, here is the result.

Sorry not good news.

(is it the "extra stuff" causing a problem?)

################################
# New stuff here
################################
HDMI cable
hdmi_drive=2
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=16
#overscan_left=24
#overscan_right=24
#overscan_top=16
#overscan_bottom=16

hdmi_force_edid_audio=1
start_x=1
gpu_mem=64


pi@MusicPi:~/Music $ tboplayer 01_S_Wonderful.mp3
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Traceback (most recent call last):
File "/opt/tboplayer/tboplayer.py", line 3121, in <module>
bplayer = TBOPlayer()
File "/opt/tboplayer/tboplayer.py", line 1094, in __init__
self.root = tk.Tk()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1813, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
pi@MusicPi:~/Music $

User avatar
Paul Webster
Posts: 708
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK

Re: Using a RPI as an AUDIO player. - from a while back.

Thu Aug 03, 2017 12:08 pm

The audio quality from the analogue socket has greatly wimproved over the years ... so if you have not tried it yet then you should give it a listen (assuming you are running relatively recent firmware / OS).
Last edited by Paul Webster on Fri Aug 04, 2017 12:45 pm, edited 1 time in total.

W. H. Heydt
Posts: 7803
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Using a RPI as an AUDIO player. - from a while back.

Thu Aug 03, 2017 4:13 pm

I am not an audiophile...and I find that the analogue audio output is okay. That would probably not be true for someone with very high quality speakers and a proper acoustical set up, but that isn't my case.

That said, my "alarm clock" has a HiFiBerry DAC+ attached to it and I use that for the audio output device. (My "travel alarm" uses just the builtin 3.5mm analogue audio output.)

lerner
Posts: 436
Joined: Sun Mar 29, 2015 12:12 am

Re: Using a RPI as an AUDIO player. - from a while back.

Fri Aug 04, 2017 7:26 am

Good news!

I swapped it for the other one (composite out) .

Works like a "bought one"! :D

I have it set up as a "stand alone unit" and controlled over the network.

THAT is going to be a lot of fun getting it better working with controls.

I'm using VLC and see it has WEB, TELNET, and a heap of other control options. Including MQTT - though that would be from a different level.

Anyway, fun.


Thanks though for the replies.

Return to “Beginners”

Who is online

Users browsing this forum: Tejass and 45 guests