[MPlayer-users] help with raspberry pi 4, no sound and no fonts

Antonio Olivares olivares14031 at yahoo.com
Thu Dec 5 20:34:34 EET 2019


 

    On Wednesday, December 4, 2019, 12:18:39 PM CST, Antonio Olivares <olivares14031 at yahoo.com> wrote:  
 
 Dear fellow mplayer users,
I have successfully compiled mplayer on a raspberry pi 4 computer, I had to add some libraries/devel to get working video.  There is no sound through hdmi and the fonts do not show up.
pi at raspberrypi:~/Videos $ aplay -lL;
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
dmix:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample mixing device
dmix:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample snooping device
hw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Hardware device with all software conversions
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
pi at raspberrypi:~/Videos $ mplayer -ao help
MPlayer SVN-r38154-8 (C) 2000-2019 MPlayer Team
Available audio output drivers:
    oss    OSS/ioctl audio output
    mpegpes    DVB audio output
    v4l2    V4L2 MPEG Audio Decoder output
    null    Null audio output
    pcm    RAW PCM/WAVE file writer audio output

pi at raspberrypi:~/Videos $ 
pi at raspberrypi:~/Videos $ mplayer -ao alsa:device=hw=0.1 Nadie\ Es\ Eterno\ En\ El\ Mundo\ Antonio\ Águilar-Letra-U-JU7agiqU4.mkv 
MPlayer SVN-r38154-8 (C) 2000-2019 MPlayer Team

Playing Nadie Es Eterno En El Mundo Antonio Águilar-Letra-U-JU7agiqU4.mkv.
libavformat version 58.35.101 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (opus), -aid 0, -alang eng
VIDEO:  [H264]  640x480  0bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.64.101 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 COMPATIBLE_BRANDS: iso6avc1mp41
 MAJOR_BRAND: dash
 MINOR_VERSION: 0
 ENCODER: Lavf58.20.100
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[opus @ 0xd757d0]Could not update timestamps for skipped samples.
AUDIO: 48000 Hz, 2 ch, floatle, 0.0 kbit/0.00% (ratio: 0->384000)
Selected audio codec: [ffopus] afm: ffmpeg (FFmpeg opus)
==========================================================================
No such audio driver 'alsa'
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12 
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
V:   3.2   0/  0 26%  1%  0.0% 0 0                                              

Exiting... (Quit)




I want to play a video I can play it but no sound and no fonts please advise.
Dear fellow mplayer users, 

I have fixed the issues.  I ran$ sudo apt install libasound2-devand recompiled mplayer which now shows alsa as enabled .and I also copied a file from /usr/share/fonts/ to ~/.mplayer/ directory and voila it works!pi at raspberrypi:~/.mplayer $ cp /usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf subfont.ttf
I am new to raspberry pi usage.  I am used to not having to do little things.  I have run slackware, fedora, and freebsd and everything just worked beautifully.  Thanks for continuing work on mplayer!  
I was going to ask if I could compile mplayer on android from using termux, but mpv is available and have not had a chance to ask, but I do miss using it.  Not all things are the same.  

Best Regards,

Antonio 


  


More information about the MPlayer-users mailing list