MPlayer FAQ: Difference between revisions

From MultimediaWiki
Jump to navigation Jump to search
mNo edit summary
(remove nicknames to protect the innocent)
Line 8: Line 8:
http://johnvansickle.com/faq
http://johnvansickle.com/faq


====faq====
=Questions from #mplayer channel:=
[15:06] <Donvinzk> Hi,I amlooking for a way to automatically convert ogg to mp3
Hi,I amlooking for a way to automatically convert ogg to mp3 I must give a directory and have everything in converted is it possible to achievve such a thing with mplayer ?
[15:06] <Donvinzk> I must give a directory and have everything in converted
[15:06] <Donvinzk> is it possible to achievve such a thing with mplayer ?
*use aconvert found in mplayer source TOOLS/aconvert .
*use aconvert found in mplayer source TOOLS/aconvert .




[08:34] <foxhacker> anyone know how to play mp4 files with sound? i can only see video but no audio
anyone know how to play mp4 files with sound? i can only see video but no audio
*check mplayer output for helpful messages.
*check mplayer output for helpful messages.
*Requested audio codec family [faad] (afm=faad) not available. Enable it at compilation.
*Requested audio codec family [faad] (afm=faad) not available. Enable it at compilation.
Line 21: Line 19:




<pikko> Hi, im using a Mplayer windows gui. is there a way to make subtitles smaller?
Hi, im using a Mplayer windows gui. is there a way to make subtitles smaller? mpui its named
[08:37] <pikko> mpui its named
*answer: subfont-text-scale=3 in config
*answer: subfont-text-scale=3 in config




<GarySaved> What exactly is the name of the fonts mplayer wants?  It can not find that CID whatever here.
What exactly is the name of the fonts mplayer wants?  It can not find that CID whatever here. Or a package name I can request?
[06:59] <GarySaved> Or a package name I can request?
*symlink any ttf font to ~/.mplayer/subfont.ttf or use -font /dir/file.ttf
*symlink any ttf font to ~/.mplayer/subfont.ttf or use -font /dir/file.ttf




[13:18] <Enlight_uni> Hi folks, is there a way to "tell" mplayer (not gmplayer) not to exit when a file has been played and then wait for some new input?
Hi folks, is there a way to "tell" mplayer (not gmplayer) not to exit when a file has been played and then wait for some new input? via a fifo or whatever
[13:18] <Enlight_uni> via a fifo or whatever
*[http://www1.mplayerhq.hu/DOCS/tech/slave.txt http://www1.mplayerhq.hu/DOCS/tech/slave.txt]
*[http://www1.mplayerhq.hu/DOCS/tech/slave.txt http://www1.mplayerhq.hu/DOCS/tech/slave.txt]
* mplayer -input=/fifo
* mplayer -input=/fifo
Line 41: Line 36:




[05:26] <helloyo> i have a corrupt file that mplayer plays, how do i get a new "clean" version of the audio?
i have a corrupt file that mplayer plays, how do i get a new "clean" version of the audio?
*answer: mplayer file -ao pcm
*answer: mplayer file -ao pcm


Line 54: Line 49:




<hume2> how do I set the video window to double size when running mplayer from command line? cannot find it in man file...
how do I set the video window to double size when running mplayer from command line? cannot find it in man file...
*mplayer -xy 2
*mplayer -xy 2


Line 72: Line 67:
* mplayer -rootwin yourmovie (Only works with the x11, xv, xmga, xvidix, quartz, macosx and directx video output drivers.)
* mplayer -rootwin yourmovie (Only works with the x11, xv, xmga, xvidix, quartz, macosx and directx video output drivers.)
* Gnome : gconftool-2 -s /apps/nautilus/preferences/show_desktop -t bool false (to disable background)
* Gnome : gconftool-2 -s /apps/nautilus/preferences/show_desktop -t bool false (to disable background)
having adjusted the hue/contrast previously, what's an easy way to set them all back to neutral?
* use xvattr
* rpm packages at http://dag.wieers.com/packages/xvattr/

Revision as of 15:24, 4 December 2006

This page will attempt to answer all of the frequent questions we get in the #mplayer irc channel on irc.freenode.net.


Official MPlayer Frequently asked Questions: http://www.mplayerhq.hu/DOCS/HTML/en/faq.html


MPlayer FAQ by relaxed: http://johnvansickle.com/faq

Questions from #mplayer channel:

Hi,I amlooking for a way to automatically convert ogg to mp3 I must give a directory and have everything in converted is it possible to achievve such a thing with mplayer ?

  • use aconvert found in mplayer source TOOLS/aconvert .


anyone know how to play mp4 files with sound? i can only see video but no audio

  • check mplayer output for helpful messages.
  • Requested audio codec family [faad] (afm=faad) not available. Enable it at compilation.
  • your mplayer was not compiled with faad support. recompile it after installing libfaad package.


Hi, im using a Mplayer windows gui. is there a way to make subtitles smaller? mpui its named

  • answer: subfont-text-scale=3 in config


What exactly is the name of the fonts mplayer wants? It can not find that CID whatever here. Or a package name I can request?

  • symlink any ttf font to ~/.mplayer/subfont.ttf or use -font /dir/file.ttf


Hi folks, is there a way to "tell" mplayer (not gmplayer) not to exit when a file has been played and then wait for some new input? via a fifo or whatever


Anyway to dump a dvd audio stream really fast?

  • mplayer -dumpaudio dvd:// -speed 90 -vc null -vo null -benchmark


i have a corrupt file that mplayer plays, how do i get a new "clean" version of the audio?

  • answer: mplayer file -ao pcm


X11 error: BadAlloc (insufficient resources for operation)?,?% 0 0 MPlayer interrupted by signal 6 in module: vo_check_events

  • <LunarCrisis> ah, looks like Option "LinearAlloc" "8192" in my xorg.conf is what I need


i have a widescreen lcd monitor and everything is stretched, help!

  • use -monitoraspect 16:10 or -monitorpixelaspect 1.125


how do I set the video window to double size when running mplayer from command line? cannot find it in man file...

  • mplayer -xy 2


How to setup XvMC ?

  • Get xmvc dev lib (libxvmc-dev) and compile MPlayer with --enable-xvmc
  • Point /etc/X11/XvMCConfig to your /lib/libXvMCNVIDIA.so.* , for example : echo "libXvMCNVIDIA.so.1.0.9742" > /etc/X11/XvMCConfig
  • mplayer -vc ffmpeg12mc yourmovie.mpeg2
  • NB : works only with mpeg2 and mpeg.


How to include mplayer in a java application or program or library?


How to set video as wallpaper ?

  • mplayer -rootwin yourmovie (Only works with the x11, xv, xmga, xvidix, quartz, macosx and directx video output drivers.)
  • Gnome : gconftool-2 -s /apps/nautilus/preferences/show_desktop -t bool false (to disable background)


having adjusted the hue/contrast previously, what's an easy way to set them all back to neutral?