Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
while running some file (this is just an example) i am facing the problem:
Quote:
$ mplayer Thank\ You\ for\ Smoking.avi.part
MPlayer SVN-r31061-4.4.3 (C) 2000-2010 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 Thank You for Smoking.avi.part.
Seek failed
libavformat file format detected.
[mp3 @ 0x9fb8e40]Header missing
[mp3 @ 0x9fb7ca0]MAX_READ_SIZE:5000000 reached
[mp3 @ 0x9fb7ca0]Estimating duration from bitrate, this may be inaccurate
[lavf] Audio stream found, -aid 0
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
big_values too large!
AUDIO: 22050 Hz, 2 ch, s16le, 40.0 kbit/5.67% (ratio: 5000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [pulse] 22050Hz 2ch s16le (2 bytes per sample)
Video: no video
while totem can run the files.
So two question:
1. Is this a codec problem?(or something wrong in mplayer)
2. How to solve this type of problem?
Depending on the download method, it might be missing headers on the front or end of the file and otherwise wont play in mplayer until those parts are downloaded. With .AVI the front portion needs content before it can play. For .MP4 type content the back portion. At least that's my experience. Although normally if it can't be played in mplayer, most other apps also fail. You might try -cache 2048 or similar and see if that helps, to load more of the file before trying to figure the file out. You could also have an outdated version, or old .DLL's for codec stuff. VLC might play it, ffplay might play it, and other things depending on versioning.
Code:
mplayer -monitoraspect 1.6 -ao alsa -vo xv -alang en -geometry 0:0:0:0 -lavdopts skiploopfilter=all <media>
Tis what I currently use most of the time. +/- -cache # / -nocache or -vf scale,pp=al -zoom -x # -y # or -idx / -forceidx and other options depending on how hosed my media is, versus my video driver, versus whatever other limits (resolution / cpu / ???).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.