MPlayer/MEncoder Tips and Tricks

Share your own howto's etc. Not for support questions!

Postby corra » 2009-02-03 12:54

Hi,
congratulations for this nice how-to...I'd like to know if it's possible to jump from a track to another (by keyboard) when you listen to an audio cd with mplayer. I read the manual but ->, -<, Pg up and pg down are what I'm looking for...
Thank you,
Corra
corra
 
Posts: 43
Joined: 2008-04-20 22:10
Location: Catania, Italy

Postby garrincha » 2009-02-03 13:26

corra wrote:Hi,
congratulations for this nice how-to...I'd like to know if it's possible to jump from a track to another (by keyboard) when you listen to an audio cd with mplayer. I read the manual but ->, -<, Pg up and pg down are what I'm looking for...
Thank you,
Corra

If you play audio cd like this:
Code: Select all
 $ mplayer -identify cdda://

it will list numbers of track and spew out information about each track (though not the title). From man mplayer:
Code: Select all
! and @
                   Seek to the beginning of the previous/next chapter

So holding down the SHIFT key and pressing @ will make mplayer jump to next track, while holding SHIFT and pressing ! will make it jump to previous.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby corra » 2009-02-03 14:23

It doesn't work...here is what happens when I press @:
Code: Select all
corrado@corrado:~$ mplayer -identify -cache 512 cdda://
MPlayer 1.0rc1-4.1.2-DFSG-free (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.86GHz (Family: 6, Model: 13, Stepping: 8)CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing cdda://.
ID_CDDA_TRACKS=17
ID_CDDA_TRACK_1_MSF=03:07:27
ID_CDDA_TRACK_2_MSF=03:06:34
ID_CDDA_TRACK_3_MSF=03:34:68
ID_CDDA_TRACK_4_MSF=04:08:04
ID_CDDA_TRACK_5_MSF=02:58:53
ID_CDDA_TRACK_6_MSF=04:29:33
ID_CDDA_TRACK_7_MSF=03:54:30
ID_CDDA_TRACK_8_MSF=03:53:02
ID_CDDA_TRACK_9_MSF=04:55:34
ID_CDDA_TRACK_10_MSF=04:35:10
ID_CDDA_TRACK_11_MSF=03:21:03
ID_CDDA_TRACK_12_MSF=03:05:07
ID_CDDA_TRACK_13_MSF=03:50:67
ID_CDDA_TRACK_14_MSF=04:59:08
ID_CDDA_TRACK_15_MSF=03:18:03
ID_CDDA_TRACK_16_MSF=04:02:46
ID_CDDA_TRACK_17_MSF=08:37:44
Found audio CD with 17 tracks.
Cache fill:  0.00% (0 bytes)
Track 1
ID_CDDA_TRACK=1

rawaudio file format detected.
ID_AUDIO_ID=0
ID_FILENAME=cdda://
ID_DEMUXER=rawaudio
ID_AUDIO_FORMAT=1
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_LENGTH=0.00
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
ID_AUDIO_BITRATE=1411200
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=pcm
Video: no video
Position: 0 %
A:   0.0 (unknown) of 4197.3 ( 1:09:57.2) ??,?% 0%

Exiting... (End of file)
corra
 
Posts: 43
Joined: 2008-04-20 22:10
Location: Catania, Italy

Postby garrincha » 2009-02-03 20:01

It worked fine with my svn mplayer however the debian-multimedia's mplayer seems to be struck. I'm not sure what's the difference in the mplayer I compiled and the one from debian repository.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby RoyFokker » 2009-02-04 01:41

Unfortunately due to the inflexible linux sound implementation if you want to use mplayer to watch a video only and listen to audio only in another program, the audio will mix together from both apps. If you mute the PCM level on mplayer it will mute on every other running program as well.

I have found the commandline option:
mplayer -ao 0
is useful so you can listen to mp3 or flash audio with other programs while watching a muted video in mplayer.
RoyFokker
 
Posts: 209
Joined: 2008-07-05 10:56

Postby garrincha » 2009-02-17 17:38

Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby garrincha » 2009-03-26 14:58

Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby glore2002 » 2009-04-12 16:33

TonyT wrote:Good post!
re the debian-multimedia key, this is the key, the preceding characters are unnecessary:
# gpg --keyserver pgp.mit.edu --recv-keys 07DC563D1F41B907
# gpg --armor --export 1F41B907 | apt-key add -

You can also use this pgp url:
gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 1F41B907
gpg --armor --export 1F41B907 | apt-key add


Sorry for waking up this old thread but it fits what I need to know:
When adding a repository, it asks for a key How do you know what that key is? Besides that What does that key mean?

Thanks in advance,
Glore2002

Athlon X2 4200. HD: 320Gb. Video: nVidia 9500GT. RAM: 4Gb. Samsung 732nPlus. Brother 2130 Printer. LiteOn DVD R/W. System: Trying to get back to Debian.
User avatar
glore2002
 
Posts: 101
Joined: 2008-07-19 16:33

Re: MPlayer/MEncoder Tips and Tricks

Postby garrincha » 2009-05-04 16:04

Speed up the playback of 1080 H.264 files in MPlayer - see Addendum in the Troubleshooting Section in the 1st post.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Re: MPlayer/MEncoder Tips and Tricks

Postby garrincha » 2009-05-23 11:40

Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Re: MPlayer/MEncoder Tips and Tricks

Postby Bulkley » 2009-05-24 03:12

Great thread. Is it worth converting from Totem to Mplayer?
Bulkley
 
Posts: 5848
Joined: 2006-02-11 18:35

Re: MPlayer/MEncoder Tips and Tricks

Postby garrincha » 2009-05-25 15:39

Bulkley wrote:Great thread. Is it worth converting from Totem to Mplayer?

I don't know - it's up to you. You could always keep Totem, but it could get conflicting especially when playing the plugins in Iceweasel/Firefox. In one of my installation that also included full Gnome desktop that has Totem by default, I simply make sym linksof mplayer plugins in /usr/lib/mozilla/plugins/ to /usr/lib/iceweasel/plugins/ for example:
Code: Select all
ln -s /usr/lib/mozilla/plugins/mplayerplug-in-dvx.so /usr/lib/iceweasel/plugins/

Make sym links for all mplayer plugins *.so files. So when I start up iceweasel, it'll be mplayer plugin that it's using not totem.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Re: MPlayer/MEncoder Tips and Tricks

Postby Bulkley » 2009-05-25 18:50

When I first tried mplayer, several years ago, I just couldn't get it working well. I tried several different systems then and settled on Totem. Now, however, I'm wondering if mplayer has caught up with or passed Totem. Is there any sign that Debian might switch from default Totem?
Bulkley
 
Posts: 5848
Joined: 2006-02-11 18:35

Re: MPlayer/MEncoder Tips and Tricks

Postby garrincha » 2009-05-29 10:09

Bulkley wrote:When I first tried mplayer, several years ago, I just couldn't get it working well. I tried several different systems then and settled on Totem. Now, however, I'm wondering if mplayer has caught up with or passed Totem. Is there any sign that Debian might switch from default Totem?

Not in standard Debian installation, at least there is no media player installed by default. If you install desktop like Gnome, Totem will be installed as one of dependencies. I install just barebone system with multimedia stuffs from Debian-multimedia repository. So far MPlayer (and Mencoder) never gave me any problem. It is highly versatile, stable and does about everything for me.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Re: MPlayer/MEncoder Tips and Tricks

Postby L4m3b0yz » 2009-06-26 11:36

I found a couple of interesting tips about mplayer here:
http://xt7-player.sourceforge.net/xt7fo ... p?f=5&t=81
http://xt7-player.sourceforge.net/xt7fo ... p?f=5&t=10

In particular about audio options tuning, channel mapping, and realtime audio normalization using ladspa, impressive!
L4m3b0yz
 
Posts: 3
Joined: 2009-06-26 10:20

PreviousNext

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable