How to Solve mplayer not responding while playing video file

Posted on

As mentioned in the title of this article, the main discussion of this article is about how to solve mplayer problem. An alternative tool for playing video file in generally Linux operating system distribution is mplayer. The manual page states mplayer as a movie player. Just consider that as what mplayer stands for. In this article, the problem is how to solve a certain condition when mplayer runs. Suddenly, mplayer is not responding while playing a video file. The video file stop at a certain position. The following is an output of the mplayer execution where suddenly it stop playing the video file :

user@hostname:~$ mplayer Episode\ 14.mp4 
MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing Episode 14.mp4.
libavformat version 57.83.100 (external)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f498556f2a0]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang jpn
VIDEO:  [H264]  1440x1080  24bpp  23.976 fps  1924.5 kbps (234.9 kbyte/s)
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.107.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: mp42
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 creation_time: 2017-11-19T01:50:08.000000Z
 encoder: HandBrake 1.0.3 2017022500
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 160.5 kbit/5.22% (ratio: 20059->384000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 1440x1080 => 1440x1080 Planar YV12 
A:   1.0 V:   0.1 A-V:  0.846 ct:  0.008   0/  0 ??% ??% ??,?% 0 0 
  =====  PAUSE  =====

Although the state of the mplayer is in pause condition, the solution for the above problem cannot be done only by pausing and resuming it. The solution is just relying on the pulseaudio tool. For more information, pulseaudio is actually a networked low-latency sound server for Linux, POSIX and Windows systems. It is done by executing the following command which is mainly stopping the pulseaudio tool. So, the following is the command for stopping the PulseAudio System :

user@hostname:~$ pulseaudio --kill
user@hostname:~$

After stopping the PulseAudio where it isstart it again by executing the following command :

user@hostname:~$ pulseaudio --start
user@hostname:~$

Last but not least, start the video file again using mplayer. There should be no problem again.

Leave a Reply