Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: manit123 on March 25, 2013, 01:45:03 AM

Title: looking for a gui audio player
Post by: manit123 on March 25, 2013, 01:45:03 AM
I have tried xmms but there is no way to change volume & navigate in time stream using keyboard .
I am fond of mplayer which has right & left arrow for 10 seconds ,up & down arrow for a minute increase/decrease in time axis.
I am using gmplayer which is fine except it shows a video window not needed while playing audio files.
Title: Re: looking for a gui audio player
Post by: aus9 on March 25, 2013, 01:53:21 AM
Hi

you asked for a gui audio player

vlc

but me thinks you mean cli audio player

try
Code: [Select]
vlc -h
Title: Re: looking for a gui audio player
Post by: tinypoodle on March 25, 2013, 06:10:24 AM
By my understanding, that window of gmplayer is present to serve as an XDND GUI interface, which of course needs to be visible before one could use it.
Using pure mplayer, windows are only created upon need and automatically torn down when no longer required.

xine-ui has an option
Code: [Select]
-H, --hide-video             hide video windowand besides from that features a key binding editor.
I couldn't exclude such features might also be available in some mplayer GUI frontends.

If you are interested in a console GUI audio player, I could suggest looking into mp3blaster which is fully keyboard controlled.
Title: Re: looking for a gui audio player
Post by: hiro on March 25, 2013, 06:36:28 AM
from the confused text you wrote I can only assume you want everything at once.

you can use mpd with multiple clients
mpc to control stuff from cli, ncmpc as a comfortable ncurses client and gmpc or so as a graphical client for windows users.
Title: Re: looking for a gui audio player
Post by: manit123 on March 25, 2013, 08:37:54 AM
trying to make myself clearer
I will create a desktop entry whose exec will be 'application-name %f' so that when I double click on audiofiles in my file manager I should get a window looking like mp3player showing time & volume scale . It would be nice if I can navigate in time using keyboard as I am habitual in mplayer . gmplayer is nice except it shows the additional video window which is not needed .
Title: Re: looking for a gui audio player
Post by: tinypoodle on March 25, 2013, 09:14:01 AM
I should get a window looking like mp3player showing time & volume scale .

Any reference? Google doesn't seem to know this...
Title: Re: looking for a gui audio player
Post by: AmatCoder on March 25, 2013, 10:26:40 AM
I have tried xmms but there is no way to change volume & navigate in time stream using keyboard .
I am fond of mplayer which has right & left arrow for 10 seconds ,up & down arrow for a minute increase/decrease in time axis.
I am using gmplayer which is fine except it shows a video window not needed while playing audio files.

With gnome-mplayer you can use those keys (right & left arrow for 10 seconds, up & down arrow for a minute increase/decrease) and '9' & '0' keys for volume change. (like mplayer).
And it does not show video window when playing audio files.
Title: Re: looking for a gui audio player
Post by: manit123 on March 28, 2013, 10:55:48 AM
I tried 'gmplayer -nofs %f' in my desktop file & all went well . I guess fs=yes in ~/.mplayer/config was the culprit.
Thank You all.

There is a small problem though.
In mplayer you can cycle through subtitle tracks using j & J .
I thought that the fontsize is big causing '...something.srt' to be seen on screen instead of full subtitle path
So I added in ~/.mplayer/config
subfont-autoscale=0
subfont-osd-scale=10
subfont-text-scale=10
Now I still see ... though there is lot of space on screen to write text in that line.
Does anybody know a way in which whole filename appears on screen ?
Title: Re: looking for a gui audio player
Post by: tinypoodle on March 28, 2013, 12:28:38 PM
Did you try if "-subwidth 100" does what you want?
(not having any subtitles here to test)
Title: Re: looking for a gui audio player
Post by: manit123 on March 30, 2013, 10:08:44 AM
i wil try subwidth option & report here.

Another thing is - if I double click on multiple mp3 files then all of them start playing simultaneously in mulltiple windows . I want only one instance of mplayer so that recently clicked file only gets played.

I tried to write a script as follows
userapp-gmplayer.desktop in has in exec '/mnt/sdb1/one-instance-only.sh %f'
and /mnt/sdb1/one-instance-only.sh contains
!#/bin/sh
pkill gmplayer
gmplayer "$1"
Now on double clicking audio files nothing happens.
Where am I going wrong ?
Title: Re: looking for a gui audio player
Post by: manit123 on April 01, 2013, 02:58:20 AM
to tinypoodle
-subwidth=100 did not help.
ALso you can get subtitles of any arbitrary movie from www.opensubtitles.org to verify what i am talking about.


Another problem remains about allowing only one instance of mplayer as mentioned above .
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 01, 2013, 03:12:50 PM
!#/bin/sh

#!/bin/sh
Title: Re: looking for a gui audio player
Post by: manit123 on April 02, 2013, 02:34:22 AM
Sorry , that was my typo .
I am looking for way in which only one instance of an audio-video player runs.
It would be a better if I am additionally able to queue another file in current player.
Title: Re: looking for a gui audio player
Post by: AmatCoder on April 02, 2013, 05:24:12 AM
I am looking for way in which only one instance of an audio-video player runs.
It would be a better if I am additionally able to queue another file in current player.

I do not want to be insistent but gnome-mplayer has an option for that...( Edit->Preferences->Interface->Only allow one instance of Gnome Mplayer )
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 02, 2013, 07:07:57 AM
Sorry , that was my typo .
I am looking for way in which only one instance of an audio-video player runs.
It would be a better if I am additionally able to queue another file in current player.

FWIW, I find using mplayer from console most simple for such purpose:

Code: [Select]
mplayer 1.mp3 2.mp3 3.mp3
or even

Code: [Select]
mplayer *.mp3
Jumping between tracks is easily achieved with < > keys.
Title: Re: looking for a gui audio player
Post by: hiro on April 02, 2013, 09:23:41 AM
I also often use mpg123 and ogg123, or even ossplay (for raw wave streams that get transfered to other pcs via nc)
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 02, 2013, 09:50:31 AM
I also often use mpg123

I've stopped using mpg123 - and same with vlc, for that matter - ever since I found their cpu usage to be a multiple in comparison to mplayer and mp3blaster for playing mp3's.
Title: Re: looking for a gui audio player
Post by: hiro on April 02, 2013, 02:27:14 PM
10024  9795 tc       S    27284  0.6   1  0.9 mplayer eladamri-we_could_kill_everyone.mp3
10535 10223 tc       S     2240  0.0   0  0.7 mpg123 eladamri-we_could_kill_everyone.mp3

stays mostle the same here
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 02, 2013, 06:21:15 PM
Hmm, this made me look deeper into it again, and I found some clues which I never had before:

I have the habit to run apps which access sound device under aoss wrapper to prevent them from being blocked by another app accessing sound device.

Running under aoss wrapper:

Code: [Select]
32228 31277 tc       R     3928  0.7   0 29.2 mpg123 /mnt/sda1/sound/rumble.mp3
32191 20893 tc       S    21644  4.1   0  7.5 mplayer /mnt/sda1/sound/rumble.mp3

Running each one exclusively without aoss wrapper indeed there seems to be no significant difference:

Code: [Select]
2207 31277 tc       R     2400  0.4   0  5.2 mpg123 /mnt/sda1/sda3/sound/rumble.mp3
 2310 20893 tc       S    20404  3.9   0  4.9 mplayer /mnt/sda1/sda3/sound/rumble.mp3

The plot thickens when running mpg123 with "-o alsa":

Code: [Select]
2542 31277 tc       R     3856  0.7   0 13.7 mpg123 -o alsa /mnt/sda1/sda3/sound/rumble.mp3
using much more cpu than without "-o alsa", but much less than under aoss wrapper.

When running mpg123 with "-o oss" then it stays in same range as without any parameter:

Code: [Select]
4563 31277 tc       R     2400  0.4   0  5.2 mpg123 -o oss /mnt/sda1/sda3/sound/rumble.mp3
I am a bit puzzled now, does that mean that without parameter mpg123 would use alsa module oss emulation and use much less cpu than with native alsa??

 :o
Title: Re: looking for a gui audio player
Post by: coreplayer2 on April 02, 2013, 06:43:09 PM
What about " deadbeef "?   or " GNOMEMPlayer " ?
Title: Re: looking for a gui audio player
Post by: hiro on April 02, 2013, 07:41:23 PM
@tinypoodle: i don't know anything about alsa emulation, everything is purely OSS here and that works just right. Perhaps there's a bug in one of the libraries you're using.
Title: Re: looking for a gui audio player
Post by: aus9 on April 02, 2013, 08:16:30 PM
FWIW, the reason why vlc is more cpu intensive is because it performs (or can perform) post-sound-file processing. Yes, that is not the correct term but explains that you may have a sound file (or video) and if it needs an enhancement. vlc can do it.

Title: Re: looking for a gui audio player
Post by: curaga on April 03, 2013, 04:34:11 AM
@aus9

mplayer has quite an array of audio and video filters, too.
Title: Re: looking for a gui audio player
Post by: aus9 on April 03, 2013, 05:03:11 AM
I do not speak that emm  that player name.

(a rip off from Harry Potter movies)  Its a sound joke.
Title: Re: looking for a gui audio player
Post by: manit123 on April 03, 2013, 09:49:30 AM
I will try gnome-mplayer .
Title: Re: looking for a gui audio player
Post by: vinnie on April 03, 2013, 05:41:06 PM
Today in freshmeat: http://freecode.com/projects/psymp3
But gnome-mplayer is a good choice
Title: Re: looking for a gui audio player
Post by: Rich on April 03, 2013, 08:03:15 PM
Hi vinnie
Quote
Today in freshmeat: http://freecode.com/projects/psymp3
I found this statement in the release notes somewhat amusing:
Quote
It's now written in C++ and contains many bugs.
Title: Re: looking for a gui audio player
Post by: vinnie on April 04, 2013, 04:18:39 AM
yep, i think it is first release, but due to the coincidence I wanted to report it
Title: Re: looking for a gui audio player
Post by: manit123 on April 05, 2013, 12:16:10 PM
Gnome-player is okay except
it does not play the video full screen maintaining aspect ratio on startup (remember window location & size , resize window when new video is loaded does not help) though i have in ~/.mplayer/config .
fs=yes
volume=5
zoom=yes
osdlevel=3
sub-fuzziness=2
Also -fs -zoom alongwith pointing to mplayer binary does not have any affect.
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 05, 2013, 01:18:32 PM
FWIW, options like "-fs" or "-zoom" behave video output driver specific (related to implementation of scaling).
Title: Re: looking for a gui audio player
Post by: AmatCoder on April 05, 2013, 05:28:39 PM
Does it work with
Code: [Select]
$ gnome-mplayer --fullscreen "/path/to/video.avi"?


Title: Re: looking for a gui audio player
Post by: manit123 on April 06, 2013, 11:23:14 AM
AmatCoder , Have you tried this option because on mine it shows time slider at bottom but video window remains small & even on maximising it the video is not scaled to occupy whole screen just original resolution surrounded by black bands .
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 06, 2013, 11:31:27 AM
even on maximising it the video is not scaled to occupy whole screen just original resolution surrounded by black bands .

Reply #29 applies to that.

You didn't mention which video output driver you are using.
Title: Re: looking for a gui audio player
Post by: manit123 on April 06, 2013, 11:36:08 AM
On adding the following in gnome mplayer configuration > mplayer
-fs -zoom
I get video resized suitably in  small video window on top right corner & time slider at the middle base of desktop .
Enlarging video window causes it to spread over whole desktop as desired.
The problem remains that even after setting 'remember window location & size' . On subsequent startups , I get same small video window though i had maximised it on previous run .

Also note that '--fullscreen' option has been used with gnome-mplayer everytime.
It has been observed that video window position is being remembered but not its size .
I think fullscreen just causes the time slider to appear at bottom center  of desktop.

BTW , x11 video driver is being used.
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 06, 2013, 11:44:04 AM
BTW , x11 video driver is being used.

Well, that explains it, x11 could only do software scaling and that at a very high CPU cost and therefore not recommended.
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 06, 2013, 11:50:13 AM
Code: [Select]
mplayer -vo x11 -fs -zoom
is doing full screen on my setup, while maintaining aspect ratio, i.e. adding horizontal black bars, while

Code: [Select]
mplayer -vo x11 -x 1024 -y 768 -zoom
would do real full screen.

In first case, full screen can be toggled with 'F', which will not do anything in second case.
Title: Re: looking for a gui audio player
Post by: vinnie on April 06, 2013, 02:25:37 PM
I have not tried this but for gnome-mplayer you should be able to put extra arguments in:
Edit -> Preferences -> Mplayer -> Extra Options to MPlayer
Title: Re: looking for a gui audio player
Post by: AmatCoder on April 06, 2013, 05:38:30 PM
AmatCoder , Have you tried this option because on mine it shows time slider at bottom but video window remains small & even on maximising it the video is not scaled to occupy whole screen just original resolution surrounded by black bands .

Yes, it is working fine here...  Which is your window manager? such problems are expected if you are using flwm_topside.
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 06, 2013, 08:49:36 PM
such problems are expected if you are using flwm_topside.


Best to keep things apart - window sizing could be window manager dependent, while video scaling is most probably not.

Title: Re: looking for a gui audio player
Post by: manit123 on April 08, 2013, 04:29:18 AM
to tinypoodle , I have used mplayer which works well .
 I am trying to have gnome-player play video files full screen maintaining aspect ratio (black bands will come if desktop is 4:3 while video is 16:9)

To amatcoder ,
I am using flwm_topside but I can switch to fluxbox . Will that help ?
Also now black bands is not a problem just that video window does not come up full size (by default) whatever setting I do in gnome-player.
Also my sound is OSS , still it plays audio files with maximum volume though I have default set to 2.
Title: Re: looking for a gui audio player
Post by: AmatCoder on April 10, 2013, 05:01:45 PM
I am using flwm_topside but I can switch to fluxbox . Will that help ?

Yes, any modern window manager should work fine. Note that you may need -zoom option in Preferences -> Mplayer -> Extra Options to MPlayer if you use Xvesa or x11 driver.

Also my sound is OSS , still it plays audio files with maximum volume though I have default set to 2.

Yes, I tried it and it is a bug... >:( I will report it.
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 10, 2013, 05:31:00 PM
Also my sound is OSS , still it plays audio files with maximum volume though I have default set to 2.

With OSS it is easy to adjust volume per app (with ossmix or ossxmix).
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 10, 2013, 05:42:30 PM
Note that you may need -zoom option in Preferences -> Mplayer -> Extra Options to MPlayer if you use Xvesa or x11 driver.

"-zoom" is required for software scaling (not recommended!), e.g. with x11 driver.
Hardware scaling under Xvesa does not require "-zoom".
Title: Re: looking for a gui audio player
Post by: manit123 on April 12, 2013, 12:59:04 PM
tinypoodle , did you mean
Code: [Select]
  ossmix mplayer +2
Raise mplayer volume by 2. This would only work  if  mplayer  is
              using the virtual mixer.
 
taken from http://manpages.ubuntu.com/manpages/natty/man1/ossmix.1.html
by
Quote
With OSS it is easy to adjust volume per app (with ossmix or ossxmix).

Still , I do not understand . I mean currently 'gnome-player %f' gets executed on double clicking . What changes I have to do ?
Title: Re: looking for a gui audio player
Post by: tinypoodle on April 13, 2013, 10:10:56 AM
tinypoodle , did you mean
Code: [Select]
  ossmix mplayer +2
Raise mplayer volume by 2. This would only work  if  mplayer  is
              using the virtual mixer.
 
taken from http://manpages.ubuntu.com/manpages/natty/man1/ossmix.1.html

Yes exactly what I meant.

Quote
Still , I do not understand . I mean currently 'gnome-player %f' gets executed on double clicking . What changes I have to do ?

Well, neither do I understand what you really want to achieve and why; guessing by filling in the blanks you might want to control volume of mplayer independently of global volume control settings, in which case under OSS using ossmix is a valid approach, if you prefer you can use ossxmix, where each app should be represented by distinct sliders.
Title: Re: looking for a gui audio player
Post by: manit123 on April 16, 2013, 12:14:38 AM
actually I have added '-volume 5' extra option which works when you start the gnome-player .
But , then increasing or decreasing volume using 0 & 9 blares the speaker because the application increments/decrements from 100%.

Title: Re: looking for a gui audio player
Post by: AmatCoder on April 21, 2013, 05:32:58 AM
That has been fixed in svn...if you still interested I can send you the last svn version.
Title: Re: looking for a gui audio player
Post by: manit123 on April 26, 2013, 09:54:14 AM
yeah , i would like to try svn  . Can you post its link ?
Title: Re: looking for a gui audio player
Post by: manit123 on May 13, 2013, 11:00:50 AM
AmatCoder , will you respond ?
I don't mean to bother .
Can anybody else tell me way to get svn version as told above ?