Re: [Freevo-users] How to Play pls files
Hi To play pls files you have to modify lines 141-143 in freevo-1.8.3/lib/python2.5/site-packages/freevo/audio/plugins/mplayer.py: [original] if item.network_play: if str(ext) in ('.m3u', '.pls', '.asx'): is_playlist = True [modified] #if item.network_play: if str(ext) in ('.m3u', '.pls', '.asx'): is_playlist = True As you can see in the bug report, Duncan thinks that this modification may break something else. But I don't know enough freevo/python to write another audio plugin, as Duncan suggest. I'm used to modify manually this lines in every release since 1.7.x, and I have no problems with the plugins I use (not many, at least for audio, though) Thanks for all the hints, his one is the one I like most :) I'll implement it into my distri :) -- Helmut Auer, hel...@helmutauer.de -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] How to Play pls files
To play pls files you have to modify lines 141-143 in freevo-1.8.3/lib/python2.5/site-packages/freevo/audio/plugins/mplayer.py: [original] if item.network_play: if str(ext) in ('.m3u', '.pls', '.asx'): is_playlist = True [modified] #if item.network_play: if str(ext) in ('.m3u', '.pls', '.asx'): is_playlist = True As you can see in the bug report, Duncan thinks that this modification may break something else. But I don't know enough freevo/python to write another audio plugin, as Duncan suggest. I'm used to modify manually this lines in every release since 1.7.x, and I have no problems with the plugins I use (not many, at least for audio, though) Regards, Eduardo 2008/12/14 Manfred Schmitt fre...@slashproc.org OK, there__s a bug entry: http://sourceforge.net/tracker/index.php?func=detailaid=2186340group_id=46652atid=446895 Hm, if I understand it right Duncan means it should work because freevo parses the playlist (or only m3u?) and then plays the mentioned files seperately? I will try to figure out if my settings in local_conf.py are breaking something. I Did a quick test with an m3u but that also also doesn__t work. Bye, Manne -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] How to Play pls files
Francisco Eduardo Álvarez Solano wrote: As you can see in the bug report, Duncan thinks that this modification may break something else. But I don't know enough freevo/python to write another audio plugin, as Duncan suggest. I'm used to modify manually this lines in every release since 1.7.x, and I have no problems with the plugins I use (not many, at least for audio, though) Hm, the last answer from Duncan is works for me? I can clearly state that it's not working for me if I let freevo decide what to do. And I must admit that local playlists also aren't working if added in MPLAYER_ARGS with version 1.8.1 as I first said: I forget that there's an exception for playlist-files in my (really ugly, not error prone at all and highly adapted for my local environment) bash mplayer-wrapper (Yes, I should rewrite it to a freevo-plugin and maybe I will do it in the future, would be a good practice to learn python). But it definitely worked in an older version with m3u in MPLAYER_ARGS. Maybe it worked, despite the fact that you are saying that you are modifying freevo since then, in 1.7.x? So, as I'm normally using a wrapper around mplayer (but not after my upgrade to 1.8.3 yesterday, the backported deb from Debian Experimental overwrote my changes in /etc/freevo/freevo.conf), it works for me too ;) OK, I did some further testing (with plain freevo 1.8.1 and 1.8.3): If I add pls/m3u to VIDEO_MPLAYER_SUFFIX and to MPLAYER_ARGS (files are of course only visible in the directories mentioned in VIDEO_ITEMS): http-m3u: plays with black screen, no onscreen display file-m3u: plays with black screen, no onscreen display http-pls: plays with black screen, no onscreen display file-pls: plays with black screen, no onscreen display If I add pls/m3u to VIDEO_XINE_SUFFIX (also the files are only visible in VIDEO_ITEMS): http-m3u: plays with xine-oscilator display file-m3u: plays with xine-oscilator display http-pls: plays with xine-oscilator display file-pls: doesn't play and im stuck in xine-window and have to restart freevo, main.log says: 2008-12-15 19:10:57,182 ERRORevent callback Traceback (most recent call last): File /usr/lib/python2.4/site-packages/kaa/notifier/event.py, line 191, in handle handler(event) File /usr/lib/python2.4/site-packages/kaa/notifier/event.py, line 145, in __call__ super(EventHandler, self).__call__(event) File /usr/lib/python2.4/site-packages/kaa/notifier/nf_wrapper.py, line 97, in __call__ ret = super(NotifierCallback, self).__call__(*args, **kwargs) File /usr/lib/python2.4/site-packages/kaa/notifier/callback.py, line 168, in __call__ result = cb(*cb_args, **cb_kwargs) File /usr/lib/python2.4/site-packages/freevo/main.py, line 286, in eventhandler if not rc.app()(event): File /usr/share/pycentral/python-freevo/site-packages/freevo/video/plugins/xine.py, line 266 self.stop(event) File /usr/share/pycentral/python-freevo/site-packages/freevo/video/plugins/xine.py, line 241 cin.write('quit\n') IOError: [Errno 32] Broken pipe If I add pls/m3u to AUDIO_SUFFIX and to MPLAYER_ARGS (files are visible in the directories mentioned in AUDIO_ITEMS): http-m3u: doesn´t play file-m3u: doesn´t play http-pls: doesn´t play, sometimes freevo advances immediately to the next file, sometimes I'm stuck in the freevo-Audioplayer and I have to restart freevo. Then main.log says: rc.py (610): no event mapping for key 'STOP' in context 'menu') Huh, I'm in the Audio-Player? file-pls: same as http-pls All four variants in mplayer.log: AVS: failed to load avisynth.dll. which means that mplayer misses the -playlist parameter so the MPLAYER_ARGS aren't added. If I reference pls- or m3u-playlists which itself are referencing http:// or also file:// urls in an fxd with playlist/ m3u/pls are playing back fine with mplayer without specifying anything related to pls/m3u in local_conf.py. E.g: ?xml version=1.0 ? freevo container title=Audio playlists type=webradio audio title=local m3u-playlist, http:// stream playlist/ urlfile:///opt/http-m3u.m3u/url info descriptionm3u that references an http stream/description /info /audio /container /freevo The url has to be an absolute path but in the m3u/pls relative paths are working. I also did a quick-test with file id=f1 and it didn't work but maybe my syntax was wrong (just modified the url fxd). So to me it seems with an unmodified, actual freevo-version and without using a wrapper around mplayer, there are two methods to play local file:// or http:// m3u/pls-playlists: Play them from a Video-Dir or reference the playlists in an fxd. Both methods require VIDEO_PREFERED_PLAYER = 'mplayer' for pls. Hm, could anyone please now test the four playlist-variants with AUDIO_PREFERED_PLAYER = 'fxmms'? ;-) Bye, Manne
Re: [Freevo-users] How to Play pls files
Just one minor minor correction... Manfred Schmitt wrote: So to me it seems with an unmodified, actual freevo-version and without using a wrapper around mplayer, there are two methods to play local file:// or http:// m3u/pls-playlists: Play them from a Video-Dir or reference the playlists in an fxd. Both methods require VIDEO_PREFERED_PLAYER = 'mplayer' for pls. That's wrong because VIDEO_PREFERED_PLAYER obviously isn't relevant in Audio-Mode ;) And in Video-Mode it's a combination of where one puts pls/m3u into (VIDEO_XINE_SUFFIX and/or VIDEO_MPLAYER_SUFFIX) and what's the prefered player. Bye, Manne -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] How to Play pls files
Helmut Auer wrote: I've creates .pls files for shoutcast streams, just containing the URL of the satation. How can I play these with freevo ? Add pls to MPLAYER_ARGS with -playlist as parameter. Minimalistic example: MPLAYER_ARGS = { 'pls': '-user-agent xmms/1.2.7 -cache 192 -playlist', 'default': '-autosync 0 -cache 750' } Maybe you also have to add pls to AUDIO_SUFFIX, dunno excactly. Search Engine Filling: Of course this also works with m3u, ram, asx, wvx, wmx, wax, wpl or any other playlist format that mplayer understands (are there any more?). If I__m remembering right I read a few days ago that newer mplayer versions (cvs?) doesn__t need the -playlist parameter anymore. Bye, Manne -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] How to Play pls files
Hi Add pls to MPLAYER_ARGS with -playlist as parameter. Minimalistic example: MPLAYER_ARGS = { 'pls': '-user-agent xmms/1.2.7 -cache 192 -playlist', 'default': '-autosync 0 -cache 750' } Thats not working for audio files, mplayer_args are only used with video (or has this changed in the last few months ? ). The only solution I found til now is building a wrapper around mplayer. -- Helmut Auer, hel...@helmutauer.de -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] How to Play pls files
Helmut Auer schrieb: Add pls to MPLAYER_ARGS with -playlist as parameter. Minimalistic example: MPLAYER_ARGS = { 'pls': '-user-agent xmms/1.2.7 -cache 192 -playlist', 'default': '-autosync 0 -cache 750' } Thats not working for audio files, mplayer_args are only used with video (or has this changed in the last few months ? ). I think so, it worked with 1.81 but I just experience the same problem with 1.83 which I installed a few minutes ago, the -playlist parameter isn__t added at all anymore. The only solution I found til now is building a wrapper around mplayer. That__s what I do all the day mainly to detect a good cache size for streaming video. Bye, Manne -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] How to Play pls files
Manfred Schmitt wrote: That__s what I do all the day mainly to detect a good cache size for Argl, I think claws-mail is breaking my apostrophs :-( Already saw that in my mail to the list a few days ago but I thought I maybe really typed that shit. Bye, Manne -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] How to Play pls files
OK, there__s a bug entry: http://sourceforge.net/tracker/index.php?func=detailaid=2186340group_id=46652atid=446895 Hm, if I understand it right Duncan means it should work because freevo parses the playlist (or only m3u?) and then plays the mentioned files seperately? I will try to figure out if my settings in local_conf.py are breaking something. I Did a quick test with an m3u but that also also doesn__t work. Bye, Manne -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users