LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-04-2014, 05:42 PM   #1
waddles
Member
 
Registered: Sep 2012
Posts: 372

Rep: Reputation: 1
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.
 
Old 01-04-2014, 06:39 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
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.
 
Old 01-04-2014, 06:58 PM   #3
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,294
Blog Entries: 21

Rep: Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503
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/
 
Old 01-04-2014, 09:04 PM   #4
jamison20000e
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
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Hi. Could try VLC:
Code:
vlc file.avi
best wishes and have fun.
 
Old 01-04-2014, 09:20 PM   #5
frankbell
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
Blog Entries: 28

Rep: Reputation: 6350Reputation: 6350Reputation: 6350Reputation: 6350Reputation: 6350Reputation: 6350Reputation: 6350Reputation: 6350Reputation: 6350Reputation: 6350Reputation: 6350
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.
 
Old 01-05-2014, 01:35 AM   #6
waddles
Member
 
Registered: Sep 2012
Posts: 372

Original Poster
Rep: Reputation: 1
@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.
 
Old 01-05-2014, 02:38 AM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
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.
 
Old 01-06-2014, 01:48 PM   #8
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,294
Blog Entries: 21

Rep: Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503
Quote:
Originally Posted by waddles View Post
@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
 
Old 01-14-2014, 02:56 AM   #9
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,387

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Smile

Quote:
Originally Posted by frankbell View Post
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.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to play avi and wmv files in either totem or mplayer..! crash_override_me Linux - Software 5 05-17-2008 04:56 PM
RealPlayer/Helix Player will not play Mov and AVI files. Can I make it play them. Chargh Fedora 4 03-25-2008 02:37 PM
play audio mp3 files from command line? runlevel <5 carl0ski Linux - Software 3 12-02-2004 04:58 AM
mplayer Can't play AVI file breathless Linux - Newbie 7 04-05-2004 11:05 PM
can't get .AVI files to play in mplayer (using SUSE) Agathos Linux - Newbie 17 02-27-2004 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration