Hot answers tagged mplayer
19
If it's just for MPlayer you could use the -noborder argument.
mplayer -noborder my_video.ogg
As a more general option, if you're using Compiz (default), you can:
Install and launch the CompizConfig Settings Manager
Select the Window Decoration plugin and hit the "plus" sign next to "Decoration Windows".
Describe the type of window you do not want ...
5
First install smplayer
sudo apt-get install smplayer
Then open the video file in it.After that you can select audio > load external audio file... form the menu and load the audio file.
4
Why not just put a list of the video outputs and codecs you want to try in your ~/.mplayer/config file? As in:
##################
# video settings #
##################
# Specify default video driver (see -vo help for a list).
vo=vdpau
############
# Profiles #
############
# The options declared as part of profiles override global default settings,
# ...
4
This feature is currently broken in GNOME Commander.
Since GNOME has changed to follow the freedesktop.org standard of handling mimetypes, the editing of preferred programs in GNOME Commander is currently broken (v 1.1.7). We do have this in our TODO file, but until GCMD can handle edititing of preferred programs, there are two other ways of managing ...
4
There are 2 ways to control the aspect ratio of mplayer.
You can set the aspect ratio of the monitor, and the aspect ratio of the video.
To set the monitor aspect ratio
mplayer -monitoraspect <ratio> <file.avi>
To set the movie aspect ratio
mplayer -aspect <ratio> <file.avi>
In your case mplayer -aspect 4:3 <file.avi> ...
4
One can remove the border of all windows, it is however a little hacky. I described the process a bit at:
http://grumbel.blogspot.com/2011/06/forcing-fullscreen-in-linux-for-apps.html
And have some code floating around at:
https://github.com/Grumbel/fullscreen-tools
Using the code from the git repository you can do:
./windowtool.py --decorations 0 ...
4
According to the information posted on your question you have a hybrid GPU solution that uses Intel + Nvidia at the same time.
To enable your Nvidia card you need to install Bumblebee or disable the Intel card in your BIOS (if possible).
If disabling your Intel card in your computer's BIOS is not an option you have no choice other than use Bumblebee.
If ...
4
You may be seeing this bug in 12.04 - https://bugs.launchpad.net/ubuntu/+source/gst-plugins-bad0.10/+bug/973014
To test you can move a specific plugin to a .bak, then try totem on the file. If it then plays you're affected. The moving of the plugin is NOT a solution though many have used it as a temp workaround. I've posted a patch in the report taken from ...
3
I'm using the proprietary NVIDIA driver and I fixed this by creating a symlink to the VDPAU lib:
ln -s /usr/lib/vdpau/libvdpau_nvidia.so.1 /usr/lib/libvdpau_nvidia.so
This has the benefit of actually enabling VDPAU rather than falling back to XV or X11. Of course you need a video card that supports VDPAU acceleration.
3
lame is about the simplest without having to use a gui front end, as for cropping the resulting mp3 you can use mp3splt to split the mp3 into the part you want and the part you can discard without recoding:
lame file.wav file.mp3
The following chops file into 10 minute slices:
mp3splt -t 10.00 file.mp3
3
You are right about the problem that was Pulseaudio but that was solved in the 1.0 version of it which is the one that 11.10 is using. The other part of the problem is that you need the 1.1.12 version of VLC to make it work correctly with the new version of Pulseaudio. To do this add the following PPA (Which is the only one I have found so far with the ...
3
Install the xorg-edgers drivers: https://edge.launchpad.net/~xorg-edgers
I had problems with the default drivers in Ubuntu 10.10 on an 945GM Intel card when the total screen area was bigger than 2048x2048. I have installed the xorg-edgers drivers and it seems to be working fine now (albeit no 3D).
To try things without messing your setup, install Ubuntu on ...
3
You can suppress all dialogues like this in mplayer variants by editing ~/.mplayer/config in the editor of your choice and somewhere in the file including really-quiet="1". I use plain mplayer (no GUI at all) but that shouldn't change things, this worked for me in GMplayer too. Here's my config:
[default]
vo=vdpau,xv,
vc=ffh264vdpau,ffmpeg12vdpau,
ao=pulse
...
3
To find the audio track ID of the video that you want to play, use this:
mplayer -vo null -ao null -frames 0 -v <filename> | grep aid
To play the file using the audio track required, use the track ID that is found with the previous command and use it in the following one:
mplayer -aid <track_ID> <filename>
Source for this information ...
3
Someone already reported the bug to the ubuntu makers: Bug #857243: (oneiric) mplayer does not install .desktop file and does not have an icon.
To add an icon manually, create a file ~/.local/share/applications/mplayer.desktop and put the following in it:
[Desktop Entry]
Name=MPlayer
GenericName=Media player
Exec=mplayer %U
TryExec=mplayer
Icon=totem
...
3
For the record, you can also synchronize other folders in your home directory with Ubuntu One, rather than simply copying all the files you want synchronized into ~/Ubuntu One.
Also, you can use quotes in the Exec line (not sure about TryExec). So Exec="/home/allfox/Ubuntu One/fun_goods/thumbnailer/gnome_thumbnailer_with_mplayer" %u %o %s should work. You ...
3
What you experience is a known bug. Lubuntu has mplayer2 installed by default, which is a fork of mplayer. Try removing mplayer2 and installing 'mplayer` instead, in other words, something like the following.
sudo apt-get purge mplayer2 && sudo apt-get autoremove
sudo apt-get install mplayer gecko-mediaplayer gnome-mplayer
3
It turns out there is:
Playing Youtube playlists using a playlist parser script for VLC
Installation
Instructions as per the source:
download the script (or copy it and paste it in a new file with the
name playlist_youtube.lua)
move the file to ~/.local/share/vlc/lua/playlist/ (current user) or
/usr/share/vlc/lua/playlist/ (all users)
Usage
Open ...
2
Open SMPlayer, go to Options > Preferences. Under General, click the tab Audio.
There should be an option Use software volume control and next to it the maximum amplification. See this screenshot (my SMPlayer version is 0.8.3):
2
For the reference, I found that mimeopen helps to set via command line.
To set the file type to open with particular program use mimeopen as follows.
mimeopen .<file-extension>
Upon asking, choose the program if present in the menu. As mplayer was not available, I chose #2.
Please choose a default application for files of type video/x-matroska
...
2
One (drastic) change which can help is to disable Compositing completely via xorg.conf:
Open the file /etc/X11/xorg.conf with an editor using sudo, for example by executing this command in a terminal:
gksudo gedit /etc/X11/xorg.conf
Note: If the file does not exist yet, you need to create it by following these instructions.
Add these lines to the end of ...
2
Create a named pipe like this:
mkfifo ~/.mplayer/pipe
Then, put the following line in ~/.mplayer/config:
input=file=/home/<username>/.mplayer/pipe
or you can run mplayer with input argument:
mplayer -input file=/home/<username>/.mplayer/pipe
Now use System Setting->Keyboard->Shortcut and add a shortcut with the command parameter as (see ...
2
Copy the original .desktop file to your home folder:
cp /usr/share/applications/umplayer.desktop ~/.local/share/applications/
Open that desktop file for editing :
gedit ~/.local/share/applications/umplayer.desktop
Add the following at the bottom of the file.
X-Ayatana-Desktop-Shortcuts=Play;Pause;Stop;Fullscreen;
[Play Shortcut Group]
Name=Play
...
2
Here is the solution to your problem:
Just try specifying a video output driver on the command line when you launch mplayer like this:
mplayer -vo xv video.wmv
You can get a list of "Available video output drivers" with the command "mplayer -vo help".
The problem is that the selected (or default) video output driver was vdpau, and no one working on the ...
2
Sounds as if you are interested in benchmarking, try the -benchmark option.
From the ubuntu man page
-benchmark
Prints some statistics on CPU usage and dropped frames at the
end of playback. Use in combination with -nosound and -vo null
for benchmarking only the video codec.
NOTE: With ...
1
The man page for mplayer reveals this little snippet:
Looking at the launchpad build logs - it is compiled with pthread - this is needed to make a multithreaded application.
Taken together - I would deduce that the version of mplayer in oneiric is multithreaded.... but you need to specify the number of threads to decode mpeg/h.264 because the default is ...
1
I had the same problem and I found the solution on web.
It is due to the installed PPA:
https://launchpad.net/~jon-severinsson/+archive/ffmpeg
Try to run the following:
sudo add-apt-repository ppa:jon-severinsson/ffmpeg
sudo ppa-purge ppa:jon-severinsson/ffmpeg
Then run totem and install the missing plugin
Are "PPA's" safe to add to ...
1
Mind you if you have an nVidia graphics card you should not only specify the -vo device but also give a -vc setting. On my own system I give the following on the commandline:
mplayer -vo vdpau filename
(replacing 'filename' with the actual name of your file of course) and place the following in ~/.mplayer/config:
[vo.vdpau]
...
1
I was having the same problem on 11.10 and here's what solved my problem.
I updated my version installed from the Ubuntu Software Center with the latest build found on the mplayer daily build site (I thought I'd take the risk since it wasn't working anyway).
I added the repository manually in a terminal like this:
sudo add-apt-repository ...
1
This is a plugin for ALSA.
Go to Sourceforge download page and download the LADSPA plug-in package.
cd folder_where_you_downloaded_the_package
tar xf ladspa-bs2b-VERSION.tar.X # the VERSION and X depend on the downloaded version and package type
cd ladspa-bs2b-VERSION
./configure --prefix=/usr # Prefix may be different depending on your distribution but ...
Only top voted, non community-wiki answers of a minimum length are eligible


