A következő címkéjű bejegyzések mutatása: mplayer. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: mplayer. Összes bejegyzés megjelenítése

2014. május 26.

Mplayer for music

I would like to have something like this:

1.) nautilus script
right click on file/dir to copy full path of file/dir
2.) text file
to paste the full paths of to be played items or dirs
3.) utility to handle the text file as a playlist

Description of the utility:
- uses mplayer to play audio/video files
- reads the first line of the text file, starts to play it, than deletes it so the second line becomes the new first line (alternately it moves the line to another text file's end, so the user can go backward in the playlist)
- user can edit the text file on-the-fly between tracks (edit playlist while playing)
- utility should be fool-proof (in case of wrong input it should pause and wait for user to correct error in playlist)


2014. május 21.

Mplayer music playback with playlist

the command to use:
$ mplayer -playlist playlist.txt 

to make a playlist:
1. go to the directory that contains the files you want to make a playlist of.
2.
$ find . -type f -name "*.mp3" | sort > directory_playlist.txt
3. edit txt file so it has the full path (not necessary)

to do the same with a one-line command (if you do not need to edit the playlist):
$ mplayer -playlist <(find /directory/of/your/music/ -name "*.mp3" -type f | sort)

hit enter for the next track
cit crtl+c to break playback

A couple of useful commands with or within mplayer:
-shuffle : shuffle playlist
-loop : play the playlist repeatedly (can be combined with -loop)

2013. december 30.

DVD playback

I bought an external DVD RW today. (Samsung SE-208DB/TSBS Black)

I had to install libdvdcss to be able to playback a regular DVD Video.

And still have to use -vo gl2 to get the picture right.

Get libdvdcss
Last version of libdvdcss is 1.2.13.
Our Debian/Ubuntu repository can be accessed by adding the following content to /etc/apt/sources.list
deb http://download.videolan.org/pub/debian/stable/ /
deb-src http://download.videolan.org/pub/debian/stable/ /
And by running
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc|sudo apt-key add -
libdvdcss is available through Git or by browsing the releases.
Go to Synaptic and browse libraries (without "verse") for libdvdcss.
Source: http://www.videolan.org/developers/libdvdcss.html

To play it with Mplayer:
For the complete list of available options, please read the man page. The syntax to play a standard DVD is as follows:
mplayer dvd:// [-dvd-device ]
Example:
mplayer dvd://1 -dvd-device /dev/hdc

my command line looked like this:
 ~$ mplayer dvd://1 -dvd-device /media/DVDMEDIA/ -vo gl2

2013. november 8.

Video playback is lagging

Tips I've read some places:

What solved it:

using -vo gl2 option in mplayer
lie:
$mplayer myvideo.avi -vo gl2


Does not help:
  • changing the refresh rate of the laptop display and the vga monitor to the same amount (75 or 60 Hz)
  • installing mga_vid, or at least trying to install it.

2011. április 22.

Mplayer is too quiet

Actually my problem was only, that MPlayer's own volume wasn't turned up.
Key 9 and 0 are used for volume - and + on your keyboard.

However, here's the manual on MPlayer volume adjustment.

MPlayer error messages

I get this when I open anything in MPlayer:
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
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 Movie.mp4.
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [avc1] 800x440 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.


To get rid of all of this, do the following:
1.)Turn bluetooth on.
2.) Disable LIRC support.: ~$ sudo gedit /etc/mplayer/mplayer.conf and add the line: nolirc=yes
3.) Define X11 as default video output: in ~$ sudo gedit /etc/mplayer/mplayer.conf search for the line: # vo=xv,x11 -> uncomment (remove # from the beginning of the line), change to vo=x11, or whatever is the best.