9/20/2023 0 Comments Mplayer logo![]() ![]() Win XP, Lazarus 0.9.10beta, mplayer-mingw32-1.0pre7 ( www.mplayerhq. Process.CommandLine := 'c:\mplayer\mplayer.exe -slave some.avi', mean that it will listening stdin only for its own command (play, pause. After this program hang, and when I kill it, console window stay alive and difficult to close. Program raising console window with cursor line inside, with mplayer logo even, and. All hot key and console commands work corectly.īut, I want control it through my application. Process.CommandLine := 'c:\mplayer\mplayer.exe some.avi' Īll work correctly: program raising console window, mplayer write in this window its info data, raising video window and play video. But in Lazarus I have problem when working with it. Just for completeness, the python script no longer needs to prefix setting the 'env' option when running mplayer.I need some specific controlling features for playing video then working, so decided design own simle GUI for mplayer. 'lighty' now passes the env var 'MPLAYER_HOME' for any instruction to run scripts. Restart lighty to read additions to config. Obviously better to use 'MPLAYER_HOME' variable rather than 'HOME' which can be compromised via the web server.Īdd the following two entries to /etc/lighttpd/nf:Īdd the following module to the server.modules section: "mod_setenv"Īnd the following env var to the 'CGI' module: setenv.add-environment = ("MPLAYER_HOME" => "/var/www/.mplayer") will add all files in current and all subfolders to playlist.m3u. Easiest way to create playlists are by commandline, ie: on MSwindows. Keyboard controls like next / > are working now as well. 'env MPLAYER_HOME=/var/So, back to my case and lighty. This will result in mplayer playing all mp3 files in directory. If 'MPLAYER_HOME' is used, the full directory will be required, i.e. It also turns out, the environment variable 'MPLAYER_HOME' can be used instead. Playing_mplayer=subprocess.Popen(['env', 'HOME=/var/stderr=subprocess.STDOUT)Īfter discussions with the nice chaps over at MPlayer, I have revised my case and therefore have an additional answer but is related to lighttpd (lighty) - which is not in the title and therefore may get missed if anyone is looking for a solution to a similar issue.Īs mentioned, MPlayer requires the environment variable 'HOME' showing where 'home' directory is, which contains the sub dir '.mplayer' - this being the location of the users MPlayers 'config' file. Running MPlayer with 'env HOME=/var/This also fixes the need to run MPlayer with sudo:Īs an example, the following instruction works in a python script called from a remote browser connecting to lightpd web server on a raspberry pi: One could argue and say there is a limitation with MPlayer only looking for an environment value 'HOME' rather than a more robust mechanism to determine a users 'home' directory. MPlayer looks for the environment variable 'HOME' to determine where to look for the users mplayer config file.Īpps such as lighttpd used to run scripts that in turn run mplayer do not by default set the 'HOME' environment variable. "AO: Init failed: Connection refusedįailed to initialize audio driver 'pulse'ĪO: 44100Hz 1ch floatle (4 bytes per sample) Using the following line: 'ao=alsa,pulse,sdl:aalib' only works in the /etc/mplayer conf file and therefore don't appear to be overridden by the 'per-user' settings.Īlso, I would prefer not to start mplayer with the '-ao alsa' option either.Īny thoughts on if this is a 'bug' or 'feature request' or have I missed something?Įdit - adding that playing an mp3, the following warning is returned: Other resolutions: 240 × 240 pixels 480 × 480 pixels 768 × 768 pixels 1,024 × 1,024 pixels 2,048 × 2,048 pixels. Download scientific diagram A snapshot of MPlayer just after diagnosis (SFL) and local recovery of RU AUDIO. My preference is to leave the /etc/mplayer/nf file as is and make changes to the nf file in ~/.mplayer/config File:GNOME MPlayer logo.svg From Wikimedia Commons, the free media repository File File history File usage on Commons File usage on other wikis Size of this PNG preview of this SVG file: 48 × 48 pixels. However, changing the order of audio codec so that 'alsa' is first in user config file does not appear to work. System-wide settings, all of which are overrriden by the command line." " Configuration files are read system-wide from /etc/mplayer/nfĪnd per user from ~/.mplayer/config, where per-user settings override ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |