Command line player – Linux

Please share it on

There are some players available which allows you to play the video and audio files through commands. For example mplayer, vlc, ffplay etc.,

MPlayer

Here I’m using ubuntu linux os and you can install mplayer in it by using the following command

apt-get install mplayer

now to play the video and audio files, use the following command

mplayer videooraudiofilename.mp4

sathishkumar@chillax:~/Music$ mplayer nilave.mp4
Creating config file: /home/sathishkumar/.mplayer/config
MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing nilave.mp4.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 492×360 24bpp 25.000 fps 309.5 kbps (37.8 kbyte/s)
Clip info:
major_brand: mp42
minor_version: 0
compatible_brands: isommp42
creation_time: 2012-06-04 01:38:33
Load subtitles in ./
Failed to open VDPAU backend libvdpau_nvidia.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 53.35.0 (external)
Mismatching header version 53.32.2
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==============================

Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 95.7 kbit/6.78% (ratio: 11957->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
===============================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback…
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is undefined – no prescaling applied.
VO: [xv] 492×360 => 492×360 Planar YV12
A: 344.0 V: 344.0 A-V: -0.025 ct: 0.017 0/ 0 3% 0% 0.2% 0 0

Please share it on

Leave a Reply

Your email address will not be published. Required fields are marked *