EzDevInfo.com

mplayer interview questions

Top mplayer frequently asked interview questions

Watching DVDs in Linux

I run Ubuntu 8.10 and many DVDs won't play for me and I don't know why. Is there more software that I need to install outside the default install? Neither Totem or Mplayer will play the DVDs.


Source: (StackOverflow)

How to get length of video file from console?

Suppose we have video file some_video.

How to get length of it from a shell script (with mplayer/transcode/gstreamer/vlc/ffmpeg/whatever)?

VIDEO_LENGTH_IN_SECONDS=`ffmpeg .... -i some_video ... | grep -o .....`

Source: (StackOverflow)

Advertisements

linux: How to sync two video players on two computers?

Two GNU/Linux computers are playing the same video with mplayer (or vlc or whatever).

How to sync the pause/seeking/FFw between them. Like when I press pause on master computer, the other one is also paused on the same frame.

Ideas? (Expecting both player-specific and universal approaches)


Source: (StackOverflow)

get mplayer to start with a default volume other than 25%

I want to configure mplayer conf so that the player's default volume is not 25%. I have to increase the volume via the keyboard with every song/flick. I can only find solutions that simply over-pushing the soundcard...


Source: (StackOverflow)

How to disable subtitles?

When I play videos in mplayer it sometimes shows subtitles. How can I turn them off?

And can I change mplayer.conf so they are off by default?


Source: (StackOverflow)

Install mplayer on Mac OS X Snow Leopard

Have anyone experienced installing mplayer on Mac OS X Snow Leopard (10.6.3)? I have stuck for a whole day trying everything from install using source code, download the dmg and extract the binary inside. But none works.

Edited: Sorry for not clarifying this question from beginning Randolph Potter has shown me that OSX Extended MPlayer works. In fact, what I want is the command line version of mplayer. I can install it on Mac OS X 10.5.8, but not on 10.6.3


Source: (StackOverflow)

Is it possible to completly remove Ubuntu's video player "totem"?

To watch videos, I use Mplayer, which works great. But Ubuntu insists on playing every video file it encounters with "Totem", which I guess is a video player.

Totem

I use linux primarily on my laptop, and often on travels, where I have no internet access. All Totem does is launch, and say "should I look for a codec ?", and I have to click no before I can close it.

I know that I can choose "Open with mplayer" for various video formats, but every so often I'll have a file with a different extension, and there comes totem.

I do not seem to be able to remove it from my system, which really infuriates me. I left Windows to avoid programs that you cannot remove. :(

EDIT: If I can't remove it, I'd be happy with a solution to make all video files play with mplayer. I don't want to configure "play with mplayer" for every single file extension there is.


Source: (StackOverflow)

How to save mplayer's output when watching in ASCII mode (with aalib)

I was helping out a friend working on a presentation where he wants to show some videos he has taken but converted to ASCII art. I can do that quite easily with mplayer on a Linux box using aalib (-vo aa). But that only plays the movie, transcoding it live. What I would like to do is to convert those videos to ASCII art and save them in files so that they can be played in a loop on some regular video players (be that vlc, wmediaplayer, whatever).

I have played around with mplayer / mencoder trying to dump streams, videos, piping it to fifos, standard output and so on but I just can not seem to find any way of doing this.

Has any of you done this before and if yes, how?

Thanks a lot!


Source: (StackOverflow)

Keep mplayer open after video playback

Is it possible to make mplayer freeze in the last frame of the video instead of closing?

I am using CLI version of mplayer in linux.


Source: (StackOverflow)

Is there a better mplayer command line interface, or another good CLI music player?

I generally prefer to do things on the command line when I can. Mplayer is a great tool for playing all sorts of media, but the command line interface sucks. Some things I'd like to see in a CLI media player would include:

  • Clean output - easy to understand, not cluttered by a bunch of stuff that's irrelevant in day-to-day use
  • ID3 information
  • Progress bar & play time info (total time, current time, time left)
  • Play queue - list of songs with lengths and an indication of where you are currently

Source: (StackOverflow)

How to convert video to images?

How can I convert a video file to a sequence of images, for example one frame every N seconds. Can mplayer or ffmpeg do this? I have used MPlayer to grab screenshots manually but I would like to automate this for a long video.


Source: (StackOverflow)

How to change pitch of music in mplayer?

How to change the pitch of the sound file mplayer? I want to make my music sound lower, but not change the speed.


Source: (StackOverflow)

Why does MPlayer OSX Extended generate fontconfig on my desktop?

I use MPlayer OSX Extended as my primary video player. However, every time I play a video, a fontconfig folder appears on my desktop containing a few random .cache-3 files. Deleting this folder will cause it to be regenerated and disabling fontconfig entirely prevents text in videos from being displayed.

I somehow managed to fix this on my old computer several years ago, but I can't remember what I did.

How can I get MPlayer to stop dumping it's fontconfig cache on my desktop?


Source: (StackOverflow)

Watching video with mplayer without extra terminal window?

I'm trying to watch a video in mplayer, however when I run the command:

mplayer video.flv

the terminal window remains open and another window for the video opens.

Is there a way I can run the video from the terminal but watch without the terminal window remaining open?

I've tried:

mplayer video.flv < /dev/null &

as suggested in their FAQ, however I get the process ID then a second or so later the output returns to the terminal before the video window opens. If I do then close the terminal window when the video window is open, the video window closes as well.

MPlayer version:

MPlayer svn r34540 (Ubuntu), built with gcc-4.7 (C) 2000-2012 MPlayer Team

Using gnome-terminal with i3.


Source: (StackOverflow)

How do I stop KDE from dimming the screen while mplayer is fullscreen?

Whenever KDE (I think) detects no mouse or keyboard activity for a while, it dims my laptop screen, then turns it off. I don't want that when I'm watching a movie.

Is there a setting somewhere to disable this behaviour based on running applications?


Source: (StackOverflow)