LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem With Opening WMV File (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-opening-wmv-file-905195/)

hitmen 09-27-2011 03:32 AM

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

linux2001 09-27-2011 03:55 AM

With mplayer I can open .wmv.
Try to install plugins to open wmv files.

qlue 09-27-2011 03:15 PM

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)

John VV 09-27-2011 04:53 PM

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 )

frankbell 09-27-2011 08:03 PM

Quote:

Originally Posted by qlue (Post 4483763)
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.

linux2001 09-28-2011 03:49 AM

1 Attachment(s)
I have tested it.It works.

hitmen 09-28-2011 04:22 AM

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!!!!!!

hitmen 09-28-2011 05:04 AM

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.

hitmen 09-28-2011 05:09 AM

This solves the sound but not video problem in mplayer. VLC still dont work.

opps must run it from the terminal .

qlue 09-29-2011 03:37 PM

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)

WebWanderer 04-03-2012 02:44 PM

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".

andrew.46 09-01-2012 12:54 AM

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]


WebWanderer 09-01-2012 06:53 PM

Does it work on 64-bit systems?

andrew.46 09-01-2012 10:03 PM

Quote:

Originally Posted by WebWanderer (Post 4770270)
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)


WebWanderer 10-10-2012 12:59 PM

glad to hear it, thanks


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