element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum A Jukebox project
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 675 subscribers
  • Views 406 views
  • Users 0 members are here
  • wifi
  • project
  • raspberry_pi
  • music
Related

A Jukebox project

Former Member
Former Member over 13 years ago

Hey

 

Just wanted to share my first R-Pi project: a standalone, wireless Jukebox

 

http://blog.ziade.org/2012/07/01/a-raspberry-pi-juke-box-how-to/

http://blog.ziade.org/2012/07/04/my-raspberry-pi-juke-box-follow-up/

 

I'd be curious to have some feedback if anyone here did a similar thing

 

Cheers

  • Sign in to reply
  • Cancel
  • morgaine
    morgaine over 13 years ago

    Nice jukebox and good writeup, Tarek.  And coincidentally your post came in at the exact time that I wanted to configure sound on my newly arrived Pi, so I used your first link as a handy reference --- thanks! image

     

    I have sound running on lots of other Linux machines and found the Broadcom module through a scan of /lib/modules, but the mixer output control was more obscure:

     

    sudo modprobe snd_bcm2835

    sudo amixer cset numid=3 1

     

    I'm not sure what this particular Pi is going to do yet (I don't want to endanger it with hardware interfacing until they're freely available from stock at Farnell), but I wanted to get sound working just to check that all systems are operational.

     

    mpg123 is a good stalwart, I agree, but I've become a big fan of MOC, which is as lightweight as mpg123 but has the better property of running in the background and allowing you to connect from any xterm anywhere, as many times in parallel as you want.

     

    moc - ncurses based console audio player - http://moc.daper.net

     

    An apt-get brought the moc package in, and "mocp" worked as soon as I found a file to play, an ogg in this case.

     

    I notice that you found your jukebox using 100% CPU.  Well I've noticed that mocp uses 36% CPU on the Pi, whereas on an Intel system its usage is under 4% for an ogg.  I wonder what's going on there, since the BCM2835 is a top-end media processor and should be doing all the decoding.  It seems unlikely that transferring data to the hardware at audio rates is going to require 36% CPU, or 100% in your case.

     

    This will need investigating. image

     

    Morgaine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to morgaine

    moc looks pretty cool, thanks for the hint, I'll look at it. The cool think about the Jukebox app is that people can connect to a web portal and vote for songs to be added in the Queue, but it could definitely use moc as a backend, and that'd make a kiss interface via curl.

     

    About the 100% CPU usage: that's the Django/Python Juke box web app eating all the CPU. mpg123 is not really eating any CPU in fact.

     

    I will trace it to see what's wrong with it. I suspect a bad piece of code somewhere.

     

    Keep us inforned of your tests

     

    Cheers

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Nate1616
    Nate1616 over 13 years ago

    Very nice Tarek.  thanks for the step-by-step instructions.  I will need to do this with my Pi.  Keep us posted with your future projects.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube