Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-04-2014, 05:42 PM
|
#1
|
Member
Registered: Sep 2012
Posts: 372
Rep: 
|
Looking for good MPLAYER command line to play avi files
I am trying to play avi files from my dvr.
I get no video (get a blue frame with gray picture looks like corduroy) but sound is OK via alsamixer setup when I use:
mplayer <filename>.avi
and nothing when I use:
mplayer -cache 65535 -cache-mem 20 -delay 0.0 <filename>.avi
Does someone have an mplayer command line that works with .avi files.
Just needing a quicky so I can validate that I can transfer files from the camera. Thanks.
|
|
|
01-04-2014, 06:39 PM
|
#2
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688
|
so
do you HAVE to use the terminal to play the video ?
if not , then why not use gnome-mplayer or smplayer or mplayer2 GUI's
als what codecs did you install ?
the " all-20110131.tar.bz2 " codec package from mplayer.hq ?
http://www.mplayerhq.hu/design7/dload.html
the " codecs directory" link
or something else ?
or
are you using xine or gstreamer ?
Quote:
Does someone have an mplayer command line that works with .avi files.
|
if you did not install the codecs then there is no command you can use
Code:
mplayer TheVideoName.avi
but using a GUI front end is a LOT easier
have a look at the QT4 SMPlayer
Last edited by John VV; 01-04-2014 at 06:41 PM.
|
|
|
01-04-2014, 06:58 PM
|
#3
|
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,294
|
http://forums.solydxk.com/viewtopic.php?p=22542#p22542
There is a screen shot of the mplayer command I used in that thread to solve a dvd
issue/
|
|
|
01-04-2014, 09:04 PM
|
#4
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
Hi. Could try VLC: best wishes and have fun. 
|
|
|
01-04-2014, 09:20 PM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,902
|
I can play *.avi files from the CLI in Slackware --Current (just tested) with mplayer [filename].
Does the output to the terminal give you any hints as to why mplayer doesn't like your *.avi files? You might also look in your logs, particularly /var/log/messages.
VLC works from the command line also, but it opens the graphical interface.
|
|
|
01-05-2014, 01:35 AM
|
#6
|
Member
Registered: Sep 2012
Posts: 372
Original Poster
Rep: 
|
@rokytnji: tried:
mplayer -abs 65536 -delay -0.4 -nobps <filename>.avi and got the same result I got with just mplayer <filename>.avi.
Yes, need command line not a gui so I can debug.
Tried gmplayer and got same result too.
Not interested in alternate software.
I viewed the file on the camera and it was OK.
Last edited by waddles; 01-05-2014 at 01:40 AM.
|
|
|
01-05-2014, 02:38 AM
|
#7
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688
|
well do you have the " all-20110131.tar.bz2 " codec package from mplayer.hq installed ?
mind you they are from 2011
you might need to use gstreamer-( good,bad,ugly,and ffmpeg) with xine
and are you 100% SURE that it is in fact a avi
and not a renamed wmv
Quote:
get a blue frame with gray picture looks like corduroy)
|
that sounds a bit like the drm that a bunch of "naughty" vids use sometimes
-- they need a proprietary player ( on a windows OS ) and use there own codec
open it with "hexedit" or "okteta" or emacs in hex mode and read the header and info section ( it will be the first 100k or so of the video )
the first few lines should look ?? something like this ???
Code:
0000:0000 | 52 49 46 46 E4 F9 D3 00 41 56 49 20 4C 49 53 54 | RIFFäùÓ.AVI LIST
0000:0010 | 7E 22 00 00 68 64 72 6C 61 76 69 68 38 00 00 00 | ~"..hdrlavih8...
0000:0020 | 35 82 00 00 00 00 00 00 00 00 00 00 10 01 00 00 | 5...............
0000:0030 | 09 06 00 00 00 00 00 00 02 00 00 00 00 00 00 00 | ................
0000:0040 | 80 02 00 00 E0 01 00 00 00 00 00 00 00 00 00 00 | ....à...........
0000:0050 | 00 00 00 00 00 00 00 00 4C 49 53 54 94 10 00 00 | ........LIST....
0000:0060 | 73 74 72 6C 73 74 72 68 38 00 00 00 76 69 64 73 | strlstrh8...vids
0000:0070 | 64 69 76 78 00 00 00 00 00 00 00 00 00 00 00 00 | divx............
0000:0080 | 15 16 05 00 80 96 98 00 00 00 00 00 09 06 00 00 | ................
0000:0090 | D6 95 00 00 10 27 00 00 00 00 00 00 00 00 00 00 | Ö....'..........
0000:00A0 | 80 02 E0 01 73 74 72 66 28 00 00 00 28 00 00 00 | ..à.strf(...(...
0000:00B0 | 80 02 00 00 E0 01 00 00 01 00 18 00 44 58 35 30 | ....à.......DX50
0000:00C0 | 00 10 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0000:00D0 | 00 00 00 00 4A 55 4E 4B 18 10 00 00 00 00 00 00 | ....JUNK........
0000:00E0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0000:00F0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
Last edited by John VV; 01-05-2014 at 02:48 AM.
|
|
|
01-06-2014, 01:48 PM
|
#8
|
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,294
|
Quote:
Originally Posted by waddles
@rokytnji: tried:
mplayer -abs 65536 -delay -0.4 -nobps <filename>.avi and got the same result I got with just mplayer <filename>.avi.
Yes, need command line not a gui so I can debug.
Tried gmplayer and got same result too.
Not interested in alternate software.
I viewed the file on the camera and it was OK.
|
I guess you did not look at my screenshot or you would have saw
Code:
mplayer -vfs ffmpeg <name of file.avi goes here>
But like JohnVV said.
Quote:
that sounds a bit like the drm that a bunch of "naughty" vids use sometimes
-- they need a proprietary player ( on a windows OS ) and use there own codec
|
so maybe a codec issue since
Quote:
I viewed the file on the camera and it was OK.
|
http://docs.gstreamer.com/display/Gs...ebugging+tools
|
|
|
01-14-2014, 02:56 AM
|
#9
|
Senior Member
Registered: Oct 2007
Distribution: Slackware
Posts: 1,387
|
Quote:
Originally Posted by frankbell
VLC works from the command line also, but it opens the graphical interface.
|
cvlc should do the trick or nvlc if you want to get a little wacky 
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 05:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|