SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#51 2012-07-15 21:27:31

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Mplayer for beginners

el_koraco wrote:
arclance wrote:

I use the Fluxbox apps file to run smplayer2 without window decorations and with all but 1 pixel of the gui elements hidden out the top of the screen.

Why not just regular mplayer, and run the few thing you need a GUI for with the mplayer GUI?
You can make custom Thunar options for file types and stuff. That's what I do, I haven't run a movie from the command line in a year.

Because I need smplayer2 to get now playing information for my conky progress bar and the mplayer GUI was removed from mplayer2.

I just found "Compact Mode" which turns the gui on and off in smplayer2 so I only have it on when I need it now.

I often need to change a setting specifically for one file (deiterlacing and demuxer changes mostly) and it is faster to do that in a gui than to change a script and open the file again.

Offline

Help fund CrunchBang, donate to the project!

#52 2012-07-15 21:28:45

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: Mplayer for beginners

I made a custom action in Thunar to open video files in mplayer2 like this:

Name: Open in mplayer2
Command: urxvt -e mplayer %n (change this depending on which terminal emulator you use)
Appearance conditions:
File pattern: *
Appears if selection contains: Check 'Video Files'


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

#53 2012-07-15 23:21:15

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Mplayer for beginners

You can also apply mplayer to be the default app to open your files. Right click on file in Thunar, open with another program, choose your custom command:

usr/bin/mplayer

Now a double click or enter will open the movie in mplayer without an extra terminal window.

Offline

#54 2012-07-16 00:24:02

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: Mplayer for beginners

^ Yes, but why use a simple solution when a complicated one exists? big_smile


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

#55 2012-07-16 00:31:33

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Mplayer for beginners

William of Ockham is rolling over in his grave. lol

Offline

#56 2012-07-16 02:38:54

thevdude
#! Junkie
From: Pittsburgh, PA
Registered: 2011-09-01
Posts: 469

Re: Mplayer for beginners

I haven't opened thunar in a LONG TIME. I don't think I have a file manager installed on my arch install. hmm

Offline

#57 2012-07-16 02:54:53

safetycopy
urban legend
From: The Chatsubo
Registered: 2010-04-03
Posts: 1,311

Re: Mplayer for beginners

pvsage wrote:

William of Ockham is rolling over in his grave. lol

I am working on formulating my own anti-razor big_smile


i wonder if i missed the warning
Skinny Puppy, Love in Vein

Offline

#58 2012-10-29 23:58:34

saneks
#! Die Hard
Registered: 2009-10-01
Posts: 1,020

Re: Mplayer for beginners

not sure if I am right here. I have an issue with gnome mplayer in latest waldorf.

as I am used to, I do ctrl+a and hit enter inside a music folder or just drag and drop a folder and dump it on my playlist.

so I have a playlist, but gnome mplayer stops after each song. have to press forward for each track. how weird is that?
I searched all the menus and references, but cant find a way to archieve "normal" music playback. am I the only one with this issue? havent found a thread on the forum yet.

edit: can't really reproduce why this keeps happening. but to me it seems it has something to do with that playlist window opening or closing. when it just starts and i keep it minimised, it seems to work ok.

Last edited by saneks (2012-10-30 01:36:15)


eee701 user & other lap/desktops

Offline

#59 2012-10-31 01:11:36

dgz
#! Junkie
Registered: 2011-11-22
Posts: 380

Re: Mplayer for beginners

excellent. i have been looking for a good reason to get rid of vlc once and for a long time.

Offline

#60 2012-10-31 01:57:41

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Mplayer for beginners

^ You really ought to give UMPlayer a look too


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#61 2012-11-07 15:19:45

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Mplayer for beginners

@saneks: Can you try stock mplayer from the CLI with the songs you want to play, post the output here? Or even try Gnome Mplayer from CLI.

Offline

#62 2012-11-07 17:43:07

saneks
#! Die Hard
Registered: 2009-10-01
Posts: 1,020

Re: Mplayer for beginners

$ gnome-mplayer *.mp3
in media state change with state = 1
in media state change with state = 0
in media state change with state = 1

first line comes after first song starts, then hangs in the last seconds. next 2 lines appear after I click next song, goes on like this.. not much output really.

mplayer from commandline works ok.

Last edited by saneks (2012-11-07 17:55:43)


eee701 user & other lap/desktops

Offline

#63 2012-11-07 17:48:05

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Mplayer for beginners

Can you post your version of mplayer:

apt-cache policy mplayer

Offline

#64 2012-11-07 17:56:39

saneks
#! Die Hard
Registered: 2009-10-01
Posts: 1,020

Re: Mplayer for beginners

crunchbang@crunchbang:~$ apt-cache policy mplayer
mplayer:
  Installed: (none)
  Candidate: 2:1.0~rc4.dfsg1+svn34540-1+b2
  Version table:
     2:1.0~rc4.dfsg1+svn34540-1+b2 0
        500 [url]http://http.debian.net/debian/[/url] wheezy/main i386 Packages
crunchbang@crunchbang:~$ apt-cache policy gnome-mplayer
gnome-mplayer:
  Installed: 1.0.6-1
  Candidate: 1.0.6-1
  Version table:
 *** 1.0.6-1 0
        500 [url]http://http.debian.net/debian/[/url] wheezy/main i386 Packages
        100 /var/lib/dpkg/status

as said, mplayer from commandline works, but the gnome-player does not what it should.
posting from a live system. but installed it is the same on another machine.

edit: commandline mplayer hangs, too..

Playing dada - 2007 - 02 - old Morning.mp3.
Detected file format: MPEG audio layer 2/3 (libavformat)
[mp3 @ 0xb5e75b40]max_analyze_duration reached
[lavf] stream 0: audio (mp3), -aid 0
Clip info:
 genre: Electronic, Hip-Hop
 date: 2007
 track: 02
 title: old Morning
 album: Bene
 artist: dada
Load subtitles in .
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   2.0 (01.9) of 144.2 (02:24.2)  0.0% 


Playing dada - 2007 - 03 - hum.mp3.
Detected file format: MPEG audio layer 2/3 (libavformat)
[mp3 @ 0xb5e75b40]max_analyze_duration reached
[lavf] stream 0: audio (mp3), -aid 0
Clip info:
 genre: Electronic, Hip-Hop
 date: 2007
 track: 03
 title: hum
 album: Bene
 artist: dada
Load subtitles in .
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video

A: 229.2 (03:49.2) of 229.5 (03:49.5)  0.0% 

Last edited by saneks (2012-11-07 18:18:45)


eee701 user & other lap/desktops

Offline

#65 2012-11-07 18:24:41

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Mplayer for beginners

First I wanted to say, maybe gnome-mplayer is the culprit. Now, does this happen with all your files or with some specific song/album etc.?

I use mplayer2 and have no issues but I also do not use any frontend. Additionally I use mplayer2 from the multimedia repo. Maybe you could try mplayer2 or to pull mplayer/mplayer2 from multimedia.

Edit: Have you played with the mplayer config file? But I do not think as you use a frontend?

Last edited by ivanovnegro (2012-11-07 18:27:15)

Offline

#66 2012-11-12 07:32:37

Loomx
Member
Registered: 2012-08-21
Posts: 41

Re: Mplayer for beginners

Inspired in part by KMandla's blog, I've started using mplayer as my main music player.

The following script is at /usr/local/music
It depends on dmenu and stest (which comes with recent versions of dmenu), but you could just use ls
My music is arranged as: ~/Music/$album/$tracks

#!/bin/sh
Album=`stest -d ~/Music/* | dmenu -i -l 40` || exit
if [ "$Album" = "/home/jonny/Music/@Jukebox" ]; then
    find ~/Music -type f | mplayer -playlist - -shuffle -identify >/tmp/mp_tracklist &
else
    Mode=`printf 'Play\nShuffle' | dmenu -i` || exit
    if [ "$Mode" = "Shuffle" ]; then
        mplayer "$Album"/* -shuffle -identify >/tmp/mp_tracklist &
    else
        mplayer "$Album"/* -identify >/tmp/mp_tracklist &
    fi
fi
sleep 1
while test `pgrep mplayer`
    do
        awk -F "/" '/FILENAME/ { print $NF }' /tmp/mp_tracklist | tail -1 > ~/.mp_track
        sleep 1
    done
rm ~/.mp_track

When you call the script, dmenu asks for which album. If you select "@Jukebox" (this always appears first in the list) you get a random playlist of all your songs.
If you pick an album, you then choose "Play" or "Shuffle", then it plays.
No terminal needed, but no keyboard controls either. Instead it is controlled by a fifo ( e.g. mkfifo ~/.mplayer/mp_pipe )

My window manager (dwm in this case) sends the appropriate commands from the XF86 Media keys to the fifo like so:
XF86AudioPlay --> "test `pgrep mplayer` && echo pause > ~/.mplayer/mp_pipe || exec music"
XF86AudioStop --> "test `pgrep mplayer` && echo stop > ~/.mplayer/mp_pipe"
XF86AudioPrevious --> "test `pgrep mplayer` && echo pt_step -1 > ~/.mplayer/mp_pipe"
XF86AudioNext --> "test `pgrep mplayer` && echo pt_step 1 > ~/.mplayer/mp_pipe"

The "test" in each line is to make sure the commands aren't sent if mplayer is not running, otherwise they just queue up and wait until it is smile
The first command also starts the music script if it's not going already, and toggles play/pause if it is.

The "while..." loop at the end of the script ensures that the file ~/.mp_track contains the name of the current track (and nothing else) so my statusbar script can read it. I couldn't find an easier way to do this; ideas welcome..

I find on all of my systems, this is about the lightest way to listen to music.
e.g. compared to moc, mplayer uses slightly more memory but less CPU effort.


Oh, and another script for dvds, but a bit shorter:

#!/bin/sh
exec mplayer dvd://1

I could use a bash function or alias, but this way I can run it from a launcher or a terminal.
Put in a dvd; type "dvd"; done smile

Offline

#67 2013-03-13 12:23:06

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

Hello,

I freshly switched to crunchbang earlier this week and succefully made my first steps learning real linux usage. I was also searching for an alternative for VLC which I found here. My problem is, I am using crunchbang on a netbook (Lenovo S205). Before that I used it with Win 7 and 8. I used MP HC as a movieplayer. Because my cpu isn't very strong, I could only watch 1080p videos after I installed DXVA support for MP HC. So now I would like to know if there are alternatives available for mplayer, to use GPU power? I heard something of VAPI, but no clue how to install it etc.

Thanks in advance.

Offline

#68 2013-03-13 17:24:10

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,432

Re: Mplayer for beginners

Welcome to this corner of the world.

VAAPI is available as a package in Debian but I am not the right guy for this.

Offline

#69 2013-03-13 17:43:52

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

You will have to rebuild mplayer and enable VAAPI support. You would also need to install another package, but this differs per video driver. Which driver are you using?


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#70 2013-03-13 18:45:39

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

I am using the fxglr thing. Installed it using a guide from this forum.

Offline

#71 2013-03-13 20:04:56

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

Ah, that's precisely the one I am familiar with wink

For mplayer-vaapi to work with fglrx, you will need the xvba-video package. I don't know if it's available on Debian, so you might have to compile it yourself.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#72 2013-03-14 14:07:11

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

Iam fairly new, can you point  me in any direction regarding compiling it myself?

Offline

#73 2013-03-14 14:47:19

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

Hmm, a quick Google search came up with this package: http://packages.debian.org/source/testing/xvba-video

If you're on Waldorf, I guess it's in the repositories meaning you don't have to install it yourself. Just do a search for it (apt-cache search xvba if I recall correctly) and if it's found, install it (apt-get install xvba-video)

If you get that going, we'll focus on getting mplayer-vaapi.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#74 2013-03-15 10:42:16

samurro
Member
Registered: 2013-03-11
Posts: 47

Re: Mplayer for beginners

apt-cache search xvba doesn't give any output nor an error. When I try to sudo apt-get install xvba-video it tells me that the specified package can't be found. neutral

Edit:
Yes I am on Waldorf.

Last edited by samurro (2013-03-15 10:45:14)

Offline

Be excellent to each other!

#75 2013-03-15 12:26:52

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,634
Website

Re: Mplayer for beginners

On my Virtual install of Crunchbang Waldorf I do have it:

apt-cache search xvba
xvba-va-driver

So, you either have to update your sources first (apt-get update && apt-get upgrade, as root) and then try again, or you are not on Waldorf.

EDIT: Otherwise, download it manually from here: http://packages.debian.org/wheezy/xvba-va-driver

Last edited by Unia (2013-03-15 12:27:10)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo