Mplayer logo9/3/2023 'env MPLAYER_HOME=/var/So, back to my case and lighty. 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: My preference is to leave the /etc/mplayer/nf file as is and make changes to the nf file in ~/.mplayer/config 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." Reading optional codecs config file /etc/mplayer/codecs." Configuration files are read system-wide from /etc/mplayer/nfĪnd per user from ~/.mplayer/config, where per-user settings override Reading optional codecs config file /home/juergen/.mplayer/nf: No such file or directory Get_path('nf') -> '/home/juergen/.mplayer/nf' Is this maybe related to the missing nf? mplayer -VĬPU vendor name: AuthenticAMD max cpuid level: 13ĬPU: AMD Ryzen 3 2200G with Radeon Vega Graphics (Family: 23, Model: 1, Stepping: 0)ĬPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1 The -ni option doesn't change anything btw. Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. Movie-Aspect is undefined - no prescaling applied. ![]() Try appending the scale filter to your filter list, The selected video_out device is incompatible with this codec. Selected video codec: vfm: ffmpeg (FFmpeg MPEG-2) This is not supported anymore, make your callback thread-safe. Requested frame threading with a custom get_buffer2() implementation which is not marked as thread safe. ![]() Opening video decoder: FFmpeg's libavcodec codec family Use -ni option if this causes playback issues and avoid or fix the program that created the file. You will not be able to use your remote control. MPlayer 1.4 (Debian), built with gcc-11 (C) 2000-2019 MPlayer Teamįailed to open LIRC support. It is not a general sound problem, because for downloaded movie files from the mediathek, it works, just for the dvb-c recorded files it doesn't and it outputs: /scratch/tv$ mplayer tagesschau24.Morning_Briefing_216_20220915_091801.mpeg Now mplayer does not play sound for files I recorded from DVB-C anymore. I just upgraded my system from 20.04 to 22.04.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |