Linux Streaming radio on embedded linux box?

Discussion in 'Software' started by veryevil, 9 Oct 2008.

  1. veryevil

    veryevil Minimodder

    Joined:
    14 Aug 2005
    Posts:
    1,228
    Likes Received:
    34
    Hey, im trying to set up streaming radio on my Thecus N2100 which has a 600Mhz processor and is running debian.

    Im trying to play http://earth.radica.com/kerrang-70 which is the kerrang radio asf. unfortunately Mplayer 100%s the CPU and so does XMMS2.

    so im looking for a console based media player that would play an asf without killing my CPU.

    Im using the snd_usb_audio driver with a cheap usb audio stick.

    Any ideas?
     
  2. steveo_mcg

    steveo_mcg What's a Dremel?

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    mplayer has a no gui version. You might need to tell it what type of cpu your using,
     
  3. veryevil

    veryevil Minimodder

    Joined:
    14 Aug 2005
    Posts:
    1,228
    Likes Received:
    34
    ive tried mplayer in the console but it uses too much cpu. how would i go about telling it what cpu it has.
     
  4. steveo_mcg

    steveo_mcg What's a Dremel?

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    from the looks of it you'd need to recompile mplayer not ideal, i thought there was an option you could pass it. It seems odd, my thin client jukebox can play radio via mplayer and its a 400mhz geode which is about a 100mhz p1 although i believe its x86 compatible whilst your thing uses an arm cpu.

    Other thing to try is from the options selecting a different audio driver, are you using alsa?

    Edit: Can it play mp3?

    Edit2: It might be a driver issue with the usb sound device off loading to the cpu can you play any sound at all?

    Edit3: Had a look around and mplayer looks to be your best bet unless you can get vlc.... i gave up however since it wouldn't read the codec!
     
    Last edited: 9 Oct 2008
  5. veryevil

    veryevil Minimodder

    Joined:
    14 Aug 2005
    Posts:
    1,228
    Likes Received:
    34
    Hey, im using ALSA as far as im aware. Mplayer won't play MP3s either but madplay will play mp3s very well.

    Gonna see if there is a newer / better version of mplayer for ARM. any other suggestions?

    Although i do have another problem. the usb sound stick is getting very very hot???
     
  6. steveo_mcg

    steveo_mcg What's a Dremel?

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    I had a similar problem with the sound stick, with my monitor speakers but not with my hifi or headphones i'm not sure if its an impedance issue or to do with the power draw. When I used the speakers the stick over heated and shut down after half an hour but still worked after it cooled down.

    As for mplayer there is an options menu to pick the sound driver, i'm not infront of my pc just now so i can't direct you to it but from there check you are using alsa if not select it, if you are try some of the other options.

    Edit: Arrghhh i've been relix rolled...
     
  7. veryevil

    veryevil Minimodder

    Joined:
    14 Aug 2005
    Posts:
    1,228
    Likes Received:
    34
    I tried compiling the newest version last night. make took about 4 hours! then make install throws out an error! that really upset me to put it politely. so ill have to go back to the apt version and ill try the driver thing.

    I was originally using headphones but it was massively too loud and i didnt want to damage my headphones. il try again if i can find some volume options.
     
  8. steveo_mcg

    steveo_mcg What's a Dremel?

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    Use alsa mixer to reduce the volume.
     
  9. veryevil

    veryevil Minimodder

    Joined:
    14 Aug 2005
    Posts:
    1,228
    Likes Received:
    34
    looks like the problem is to do with Floating point calculations as the ARm proc doesnt have a FPU. im compiling from subversion now with a patch (hopefully) to remove the floating point calcs.
     
Tags:

Share This Page