I can't seem to play mp3 streams I capture from online streams on FM radio
stations. It comes down to the demuxer added onto the mplayer command line.
I'm not really sure what the demuxer does and why it doesn't let me player
captured streams. Anyone have an insight into this?

Here is the code in mplayer.py:
   def get_demuxer(self, filename):
       DEMUXER_MP3 = 17
       DEMUXER_OGG = 18
       rest, extension     = os.path.splitext(filename)
       if extension.lower() == '.mp3':
           return "-demuxer " + str(DEMUXER_MP3)
       if extension.lower() == '.ogg':
           return "-demuxer " + str(DEMUXER_OGG)
       if extension.lower() == '.ac3':
           return "-ac hwac3 -rawaudio on:format=0x2000"
       else:
           return ''
Resulting in:
mplayer -slave -autosync 100 -nolirc -nojoystick -autoq 100 -screenw 800
-screenh 600 -fs -vo null -ao alsa -demuxer 17
/opt/media/podcasts/Rnf.Friday_05-18-07.mp3

if I remove the demuxer:
mplayer -slave -autosync 100 -nolirc -nojoystick -autoq 100 -screenw 800
-screenh 600 -fs -vo null -ao alsa /opt/media/podcasts/Rnf.Friday_05-
18-07.mp3
everything works fine.


For now, I'll just give them a non mp3/ogg/ac3 extension; seems to work.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to