View previous topic :: View next topic |
Author |
Message |
killasmurf86 n00b
Joined: 27 Nov 2010 Posts: 6
|
Posted: Sat Nov 27, 2010 2:37 pm Post subject: playd.sh mplayer sh wrapper |
|
|
Hello gentoo users.
For quite some time I've been developing mplayer wrapper script in sh (ye /bin/sh, not bash)
It should work on Linux quite well (Was tested on Ubuntu about week ago)
I was wondering if anyone would be interested in this.
The basic idea is to control mplayer via pipe.
playd itself can be invoked from console or window manager such as Fvwm etc...
Playd can make playlists, it recently learned how to get position in playlists (works well if playlist doesn't have double entries) and many other things you expect from audio player.
Playd doesn't use IDv[23] metadata. It only works with filenames.
Creating new playlists with playd is very fast (will probably outperform many complex players), because playd won't test mime data (unless totally necessary), but rely on file extension.
It can also play streams common, import common playlist formats, play video and much more. Read manual for more.
Playd is very light (less than 600 lines of code)
http://hg.bsdroot.lv/pub/aldis/playd.sh/
It depens on:
* mplayer
* sed
* awk
* jot
* lsof or porcstat
* /bin/sh
It is developed on FreeBSD, but should work on any Linux.
On NetBSD, OpenBSD playd is not tested yet
Perhaps someone would like to make ebuild for Gentoo.
Feedback welcomed: playd [at] bsdroot [dot] lv
P.S.
Sorry if this was supposed to be in Unsupported Software section _________________ FreeBSD, FreeBSD and only FreeBSD |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Mon Nov 29, 2010 11:06 am Post subject: |
|
|
Moved from Multimedia to Unsupported Software. _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
|
Satoshi Apprentice
Joined: 06 Nov 2006 Posts: 180 Location: Brazil
|
Posted: Mon Nov 29, 2010 9:21 pm Post subject: |
|
|
Looks interesting, but I don't know how to read the manpage I downloaded from git, so I haven't used it yet.
EDIT: Used it, read the manpage and didn't quite get what it is for. What does it do that mplayer can't do just as easily? The arguments to playd seem just a renaming of mplayer options.
Sorry, didn't really get it.
I don't use playlists, so if you could exemplify with some use cases that show how playd would be useful, I'd like that very much. |
|
Back to top |
|
|
killasmurf86 n00b
Joined: 27 Nov 2010 Posts: 6
|
Posted: Mon Nov 29, 2010 11:14 pm Post subject: |
|
|
Hello! well One thing it does that mplayer doesn't is, it creates playlists recursively
It starts mplayer is background, and then you control it with playd.... with commands that are easier to remember....
It is designed to be used from console, or from menu (like Fvwm menu)..
The idea is that you don't need mplayer gui to control it
To read man page either place it to ~/man/man1/ or use
I use 100% customized Fvwm environment... and I have some key bind to control playd.
I never have any multimedia controls on my desktop
The only time I really see mplayer is when I watch videos.
With playd you don't need to keep terminal opened for mplayer (if you don't use gui)
When you wouldn't want to use playd?
If you need IDv[23] tag info, as playd doesn't use it. It use only file names.
All in all, it's simple console controller for mplayer daemon. There is nothing that it can offer that other playrs can't offer.
To play directory:
Code: | $ playd /path/to/dir |
To play other dir
Code: | $ playd /path/to/other/dir |
append files to playlist
Code: | $ playd append /path/to/file1.mp3 /path/to/some/dir |
Wanna see short playlist (few songs before and few after current song
wanna jump to some particular song in playlist
Wanna play previous song (pervious in playlist)
Wanna listen internet radio, no problem
Code: | $ playd http://some.example.com/radio/station.pls |
And many many other cases....
You can play music, video, internet streams etc....
Ehere's example, I just typed playd ls (this exact output, if I'd show screenshot, the only difference would be that background was black. lol)
Code: | 515| Outlawz-Hold On
516| Outlawz-Stay Awake
517| Outlawz-Family Picture
518| Outlawz-In God s Eyes
519| Outlawz-The Hunger feat.Wack Duece
520| Outlawz-Mr.Makaveli
521|* Outlawz-Still Mourning Black Jesus Part 2
522| Outlawz-Thug Nation
523| Heavy Weights-Keak Da Sneak
524| Live My Life
525| Mind State
526| I B U
527| Garanted
528| All My Ho Say-The Jacka
529| Im A Soldier
530| Max 2 1000000 Bad Azz
531| One Night Stand-Mil
532| Live It Up
533| Get up
534| Dream
535| Enemy Close
536| Pump Yo Brake
537| 2 Gangsta
desktop.pc $ |
_________________ FreeBSD, FreeBSD and only FreeBSD |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|