LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 09-27-2011, 03:32 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
Problem With Opening WMV File


Basically, I got a couple of videos on an iso image.
I used an open source program AcetoneISO (I have also tried Gmount-iso) to mount it.

However, I double click and it wouldnt play. It just goes to stop.
I have used the dragon-player as well as Kaffeine.

Is there any way to play the file using the command line?
Then at least I can diagonise what is wrong.

c@c-laptop:/media/cdrom0/files/videos/n700_822$ ./ccent01.wmv
bash: ./ccent01.wmv: cannot execute binary file

What is wrong?

KMplayer works with .mov but not .wmv

Last edited by hitmen; 09-27-2011 at 03:38 AM.
 
Old 09-27-2011, 03:55 AM   #2
linux2001
Member
 
Registered: Sep 2011
Posts: 32

Rep: Reputation: Disabled
With mplayer I can open .wmv.
Try to install plugins to open wmv files.
 
Old 09-27-2011, 03:15 PM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbang
Posts: 620
Blog Entries: 1

Rep: Reputation: 140Reputation: 140
Your action on the command line doesn't make sense to me as a media file is not an executable script or a binary.
I use vlc for all media files. try typing
Code:
totem /media/cdrom0/files/videos/n700_822/ccent01.wmv
instead. This should launch totem which afaik is the default media player in Ubuntu and, if all codecs are available, is capable of playing .wmv files. (I think)
 
Old 09-27-2011, 04:53 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,062

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
Quote:
What is wrong?
this is
Quote:
c@c-laptop:/media/cdrom0/files/videos/n700_822$ ./ccent01.wmv
a video is not an executable binary file
you NEED to use a media program to view it.

there are about 50 ( exageration ) different types of "wmv" including ASF

what codec packages did you install ?
mplayer with the 2011 ALL tar.bz2 is all that are required ( they are NOT free to use in most country's )
 
Old 09-27-2011, 08:03 PM   #5
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,939

Rep: Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495
Quote:
Originally Posted by qlue View Post
Your action on the command line doesn't make sense to me as a media file is not an executable script or a binary.
Mplayer can play a movie file directly from the command line even if X has not been started using the command

Code:
mplayer /[path to]/[filename].
You will see many more options in man mplayer.

I haven't tested it with a *.wmv because I don't have one handy, but I have launched *.mpg and *.avi files with it.

I have come to rely on VLC as my primary media player because, in my experience, if it doesn't play in VLC, it doesn't play in Linux. I've not yet had VLC fail to play a *.wm? file.

Last edited by frankbell; 09-27-2011 at 08:05 PM.
 
Old 09-28-2011, 03:49 AM   #6
linux2001
Member
 
Registered: Sep 2011
Posts: 32

Rep: Reputation: Disabled
I have tested it.It works.
Attached Images
File Type: jpg mplayer.jpg (192.1 KB, 20 views)
 
Old 09-28-2011, 04:22 AM   #7
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
Help!

This is my output using VLC video player;

No suitable decoder module:
VLC does not support the audio or video format "wmas". Unfortunately there is no way for you to fix this.
No suitable decoder module:
VLC does not support the audio or video format "MSS2". Unfortunately there is no way for you to fix this.

I have googled and they told me to install ubuntu-restricted-extras.
However, the package seems to be broken.

Help!!!!!!
 
Old 09-28-2011, 05:04 AM   #8
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
http://www.ubuntugeek.com/install-mp...html#more-5275

sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list --output-document=/etc/apt/sources.list.d/medibuntu.list

sudo apt-get -q update

sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring

sudo apt-get -q update

This doesnt work.
 
Old 09-28-2011, 05:09 AM   #9
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
This solves the sound but not video problem in mplayer. VLC still dont work.

opps must run it from the terminal .

Last edited by hitmen; 09-28-2011 at 05:10 AM.
 
Old 09-29-2011, 03:37 PM   #10
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbang
Posts: 620
Blog Entries: 1

Rep: Reputation: 140Reputation: 140
Some info about the wmas codec from this thread at Ubuntu forums.

Quote:
wmap,wmal and wmas are all decoded by dmo (win(w)32codecs if vlc is built with --enable-loader

No repo or ppa versions I've seen enable this option so your out of luck unless you build your own vlc

In 0.9.x the loader (dmo) works perfectly
In 1.x.x it's semi broken, but playback of wmap and wmal is possible with some limitations. (( wma3 is possible with no limitations if decoding is switched to avcodec and a wmapro enabled libavcodecxx is installed
(note, that thread is from 2009 so some of that may be out of date)
 
Old 04-03-2012, 02:44 PM   #11
WebWanderer
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
I wanted to play some .wmv files on linux. I was getting an error about MSS2 codec. I searched VLC first. They basically said "you can use a dmo to link to the windows drivers (with wine) to play in VLC, but this is an illegal format for us to play, so we don't support it and never will, so don't ask anymore".

Searching some more forums I found that mplayer will play the MSS2 format if you download w32codecs. I downloaded them and when I checked, it said w64codecs. It turns out that if you are on a 64-bit machine, you can't use the w32codecs, and the w64codecs is only a severely limited version and doesn't do the job.

I went to a 32-bit linux machine and installed w32codecs and played the videos fine with mplayer. There was some audio crackling, but that could have been the original quality, not the codec.

I went to the mplayer site about 64-bit support and they basically said "it's not worth it to build the 64-bit set".
 
Old 09-01-2012, 12:54 AM   #12
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 647

Rep: Reputation: 91
MPlayer now supports MMS2 codec via libavcodec:

Code:
------------------------------------------------------------------------
r35132 | cehoyos | 2012-09-01 00:28:32 +1000 (Sat, 01 Sep 2012) | 1 line

Support Alberto's / Kostya's MSS2 decoder.
Great news for MPLayer!

Code:
andrew@skamandros~$ mplayer -vc help | grep -i MSS2
ffmss2      ffmpeg    working   FFmpeg MS Screen 2  [mss2]
 
Old 09-01-2012, 06:53 PM   #13
WebWanderer
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
Does it work on 64-bit systems?
 
Old 09-01-2012, 10:03 PM   #14
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 647

Rep: Reputation: 91
Quote:
Originally Posted by WebWanderer View Post
Does it work on 64-bit systems?
Well, it works on my 64bit system .

Code:
andrew@skamandros~/media$ uname -a
Linux skamandros 3.2.28 #1 SMP Thu Aug 23 11:42:22 CDT 2012 x86_64 AMD FX(tm)-8150 Eight-Core Processor AuthenticAMD GNU/Linux
andrew@skamandros~/media$ mplayer intro_windows.wmv 
MPlayer SVN-r35135-4.7.1 (C) 2000-2012 MPlayer Team

Playing intro_windows.wmv.
libavformat version 54.25.104 (internal)
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO:  [MSS2]  800x548  24bpp  1000.000 fps  250.0 kbps (30.5 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.55.100 (internal)
Selected video codec: [ffmss2] vfm: ffmpeg (FFmpeg MS Screen 2)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, s16le, 32.0 kbit/4.54% (ratio: 4006->88200)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [oss] 44100Hz 1ch s16le (2 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x1072b20]BICUBIC scaler, from rgb24 to yuv420p using MMX2
VO: [vdpau] 800x548 => 800x548 Planar YV12 
A: 109.0 V: 109.1 A-V: -0.145 ct: -0.238 642/642  0%  1%  0.1% 1 0 


Exiting... (End of file)
 
Old 10-10-2012, 12:59 PM   #15
WebWanderer
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
glad to hear it, thanks
 
  


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
problem opening a file from inside program. avee137 Programming 2 09-23-2011 08:36 AM
Problem for Opening any file with VIM ? raviteja_s Linux - Newbie 1 10-02-2010 03:35 AM
Problem while plaing .wmv file on RHEL ES 4.0 nitin_sethi8 Linux - Software 1 04-12-2007 04:58 AM
problem with opening file function in c++ tinieprotonjam Programming 2 02-14-2007 09:48 PM


All times are GMT -5. The time now is 12:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration