WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mplayer vs mplayer-cli issue  (Read 1631 times)

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
mplayer vs mplayer-cli issue
« on: September 15, 2023, 01:58:02 PM »
Running TC-14 and have installed mplayer-cli from the apps center in ondemand mode.  Shortly after a boot mplayer command works to play my mp3 files, sometimes however mplayer command on the terminal states "mplayer is not installed".  I can get around this by entering mplayer-cli on the terminal.  This causes my PC to beep once and now able to recognize mplayer command again and to play a mp3 file.

Anyone know why this occur and any easy fix so I don't have to run mplayer-cli again?


« Last Edit: September 15, 2023, 02:23:04 PM by puppybyte! »

aus9

  • Guest
Re: mplayer vs mplayer-cli issue
« Reply #1 on: September 15, 2023, 09:17:23 PM »
Hi

forgive me for questioning you but you have posted in CorePlus which means x86 and not TC64 (64 bit)
There is no mplayer in my Apps for TC32.

mplayer is mainly designed as a movie player, not sure if you knew this.

Either on TC32 or TC64 I suggest you run mpg123
1) The size of mpg123 vs mplayer-cli (32 bit) (rounded up to next Mb) 1M v 36M  (64bit) 1M vs 30M
plus add on alsa or pulseaudio
2) I suggest you have less issues run it naturally (not on demand) and is safe to do so ....because mpg123 is so small.

If interested, here is my way of running it for a specific file and then for a specific dir.

1) Set up alsa
2) load mpg123
3) enter your mp3 directory  maybe
Code: [Select]
cd ~/Music4) play specific file 
Code: [Select]
mpg123 sample.mp3
To play a dir....instead of (4) I do this.....
4) play all tracks
Code: [Select]
mpg123 *----- If you do not like current track press h (for button help) and skip to next track is f  as per output for h
Code: [Select]
-= terminal control keys =-

s ' ' (un)pause playback  f     next track          d     previous track   
]     next directory      [     previous directory  b     back to beginning
p     loop (--pauseloop)  .     forward             ,     rewind           
:     fast forward        ;     fast rewind         >     fine forward     
<     fine rewind         +     volume up           -     volume down       
u     (un)mute volume     r     cycle RVA modes     v     cycle verbosity   
l     show playlist       t     tag info            m     MPEG header info 
c  C  pitch up + ++       x  X  pitch down - --     w     zero pitch       
k     print bookmark      h     this help           q     quit             
e     flat equalizer      E     show equalizer      A     more bass         
a     less bass           J     more mids           j     less mids         
N     more treble         n     less treble       

Number row jumps in 10% steps.

Note that the keys are case sensitive so e is not the same as capital E

Bonus info.....if you have a Window Manager that supports workspaces....pressing f on a work space where mpg123 is NOT running will not cause your player to skip to next track while trying to do something else on your other workspace.

Thanks for reading
« Last Edit: September 15, 2023, 09:26:11 PM by aus9 »

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Re: mplayer vs mplayer-cli issue
« Reply #2 on: September 15, 2023, 09:38:19 PM »
Hi

mplayer is mainly designed as a movie player, not sure if you knew this.

Either on TC32 or TC64 I suggest you run mpg123
1) The size of mpg123 vs mplayer-cli (32 bit) (rounded up to next Mb) 1M v 36M  (64bit) 1M vs 30M
plus add on alsa or pulseaudio
2) I suggest you have less issues run it naturally (not on demand) and is safe to do so ....because mpg123 is so small.

If interested, here is my way of running it for a specific file and then for a specific dir.

1) Set up alsa
2) load mpg123
3) enter your mp3 directory  maybe
Code: [Select]
cd ~/Music4) play specific file 
Code: [Select]
mpg123 sample.mp3
To play a dir....instead of (4) I do this.....
4) play all tracks
Code: [Select]
mpg123 *----- If you do not like current track press h (for button help) and skip to next track is f  as per output for h
Bonus info.....if you have a Window Manager that supports workspaces....pressing f on a work space where mpg123 is NOT running will not cause your player to skip to next track while trying to do something else on your other workspace.


thank you aus9 for helpful comments.  I didn't realize mplayer was mainly video so I will certainly take your advice.  Although I am running 64bit PC with 8G of RAM, I am running TC32.  Normally I am puppylinux guy but tinycore has made lots of progress and enjoying learning this.  Thanks again.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: mplayer vs mplayer-cli issue
« Reply #3 on: September 16, 2023, 04:09:23 AM »
The ondemand script is named after the extension name. Change it to onboot if you're using it often.
The only barriers that can stop you are the ones you create yourself.

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Re: mplayer vs mplayer-cli issue (SOLVED)
« Reply #4 on: September 16, 2023, 10:31:26 AM »
Hi

s ' ' (un)pause playback  f     next track          d     previous track   
]     next directory      [     previous directory  b     back to beginning
p     loop (--pauseloop)  .     forward             ,     rewind           
:     fast forward        ;     fast rewind         >     fine forward     
<     fine rewind         +     volume up           -     volume down       
u     (un)mute volume     r     cycle RVA modes     v     cycle verbosity   
l     show playlist       t     tag info            m     MPEG header info 
c  C  pitch up + ++       x  X  pitch down - --     w     zero pitch       
k     print bookmark      h     this help           q     quit             
e     flat equalizer      E     show equalizer      A     more bass         
a     less bass           J     more mids           j     less mids         
N     more treble         n     less treble       


I got the mpg123 working and solved my problem.  Key q while playing mp3 changes to another mp3 folder rather than quitting.  I just use Ctrl-c to quit.
For those interested, the following script (~/.local/bin/mpg123.sh) finds all the mp3 files, even under sub-folders in ~/Music and plays it.

-
#!/bin/sh
 #-z  random within an album folder.  q switches to another album
 aterm -e find ~/Music -type d -exec bash -c 'cd "$1";  mpg123 -z *.mp3' -- {} \;
-