LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-11-2004, 12:21 AM   #1
PeaceTank
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 55

Rep: Reputation: 15
convert .wmv to .avi or .mpg


I need to convert some video from .wmv to either .avi or mpg so I can watch it in linux. Any ideas?
 
Old 12-11-2004, 04:27 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Mplayer can do that.

Here's a simple example:

mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi

This simple example will create an avi file from a wmv file. See man mencoder for details and other options.

Hope this helps.
 
Old 08-14-2006, 01:14 AM   #3
Budman21901
LQ Newbie
 
Registered: Jan 2005
Location: NorthEast Md.
Distribution: Ubuntu 6.10
Posts: 25

Rep: Reputation: 15
Thank you for this post. I just found it searching, and it worked perfectly.
 
Old 08-14-2006, 02:51 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by Budman21901
Thank you for this post. I just found it searching, and it worked perfectly.
There is another tool called transcode which may be helpful for merging video files. I use it in conjunction with mencoder.
 
Old 08-20-2006, 03:44 PM   #5
Damian.Star
LQ Newbie
 
Registered: Aug 2006
Location: Manchester, UK
Distribution: SuSE
Posts: 15

Rep: Reputation: 0
Are there any GUI programs to do this? Am an ex-windows user and really struggling with command line apps
 
Old 08-20-2006, 05:00 PM   #6
JARofHERB
Member
 
Registered: Apr 2004
Location: Pacific Northwest
Distribution: Debian unstable
Posts: 60

Rep: Reputation: 15
Damian, I like the gui program avidemux, it works as a great gui program for most all video formats..
 
Old 08-21-2006, 02:29 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
There is a gui frontend to mencoder and transcode called konverter (look for it at kde-apps.org or your distros software repo).
 
Old 11-04-2006, 01:45 PM   #8
linux waco
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
This worked.

mencoder stest.wmv -vf scale=720:480 -ofps 30000/1001 -ovc lavc -lavcopts vcodec=mpeg2video:aspect=4/3 -oac lavc -lavcopts acodec=mp2 -o stest.mpg

This is a script I use to convert things to DVD format. Unfortunately it messes up the frame rate for some wmv files. The video is twice as fast as the audio.

mkfifo stream.yuv
cat stream.yuv | yuvscaler -n n -O DVD | mpeg2enc -q 7 -f 8 -F 4 -n n -o temp.m2v &
mplayer $1 -nosound -vo yuv4mpeg
mplayer $1 -vc dummy -vo null -ao pcm:file=temp.wav
mp2enc -r 48000 -o t.mp2 < temp.wav
mplex -f 8 t.mp2 temp.m2v -o $2
 
Old 08-16-2009, 03:11 AM   #9
\\.\
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Rep: Reputation: 0
Having read this thread, tried looking for "Konvertor" but do not find it have tried the command line but it keeps on bitching about some crap and say I should try usong -help which I do and it bitches about it does not understand the command.

So... Does anyone have a URL to anything that is free that will convert wmv? H have no idea what the original specs for the file are which is something mencoder seems to bitch about.

And then this message is displayed in one of the outputs but none of the others

Quote:
DRM License URL: the_url_to_microsoft...
This file has been encumbered with DRM encryption, it will not play in MPlayer!
So what now?

Well I was playing with it more in the terminal and was trying to be clever and managed to get this output, if it means anything...
Quote:
mencoder FunnyPeople.wmv -ofps 23.976 -ovc copy -oac copy -o funnyp.avi
MEncoder 2:1.0~rc2-0ubuntu17 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz (Family: 15, Model: 2, Stepping: 7)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x2add8ff9
ASF file format detected.
DRM License URL: http://www.microsoft.com/isapi/redir...&sbp=newclient
This file has been encumbered with DRM encryption, it will not play in MPlayer!
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV3] 640x480 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6 fourcc:0x33564D57 size:640x480 fps:1000.00 ftime:=0.0010
videocodec: framecopy (640x480 24bpp fourcc=33564d57)
audiocodec: framecopy (format=161 chans=2 rate=44100 bits=16 B/s=8005 sample-1487)
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos: 0.2s 4f (14%) 0.00fps Trem: 0min 0mb A-V:-0.004 [0:0]
Skipping frame!
Pos: 0.3s 9f (28%) 0.00fps Trem: 0min 0mb A-V:-0.008 [0:64]
Skipping frame!
Pos: 0.5s 14f (28%) 0.00fps Trem: 0min 0mb A-V:-0.011 [0:64]
Skipping frame!
Pos: 0.7s 19f (28%) 0.00fps Trem: 0min 0mb A-V:-0.012 [0:64]
Skipping frame!
Pos: 0.8s 24f (28%) 0.00fps Trem: 0min 0mb A-V:-0.013 [0:64]
Skipping frame!
Pos: 1.0s 29f (28%) 0.00fps Trem: 0min 0mb A-V:-0.013 [26:64]
Skipping frame!
Pos: 1.2s 34f (42%) 0.00fps Trem: 0min 0mb A-V:-0.014 [22:64]
Skipping frame!
Pos: 1.3s 39f (42%) 0.00fps Trem: 0min 0mb A-V:-0.014 [19:64]
Skipping frame!
Pos: 1.5s 44f (42%) 0.00fps Trem: 0min 0mb A-V:-0.014 [17:64]
Skipping frame!
Pos: 1.7s 49f (42%) 0.00fps Trem: 0min 0mb A-V:-0.014 [16:64]
Skipping frame!
Pos: 1.8s 54f (57%) 0.00fps Trem: 0min 0mb A-V:-0.014 [14:64]
Skipping frame!
Pos: 2.0s 59f (57%) 0.00fps Trem: 0min 0mb A-V:-0.014 [13:64]
Skipping frame!
Pos: 2.2s 64f (57%) 0.00fps Trem: 0min 0mb A-V:-0.014 [12:64]
Skipping frame!
Pos: 2.3s 69f (57%) 0.00fps Trem: 0min 0mb A-V:-0.014 [11:64]
Skipping frame!
Pos: 2.5s 74f (57%) 0.00fps Trem: 0min 0mb A-V:-0.014 [11:64]
Skipping frame!
Pos: 2.7s 79f (71%) 0.00fps Trem: 0min 0mb A-V:-0.014 [10:64]
Skipping frame!
Pos: 2.8s 84f (71%) 0.00fps Trem: 0min 0mb A-V:-0.014 [10:64]
Skipping frame!
Pos: 3.0s 89f (71%) 0.00fps Trem: 0min 0mb A-V:-0.014 [9:64]]
Skipping frame!
Pos: 3.2s 94f (71%) 0.00fps Trem: 0min 0mb A-V:-0.014 [9:64]
Skipping frame!
Pos: 3.3s 99f (71%) 0.00fps Trem: 0min 0mb A-V:-0.014 [8:64]
Skipping frame!
Pos: 3.5s 104f (71%) 0.00fps Trem: 0min 0mb A-V:-0.014 [8:64]
Skipping frame!
Pos: 3.7s 109f (85%) 0.00fps Trem: 0min 0mb A-V:-0.014 [8:64]
Skipping frame!
Pos: 3.8s 114f (85%) 0.00fps Trem: 0min 0mb A-V:-0.014 [7:64]
Skipping frame!
Pos: 4.0s 119f (85%) 0.00fps Trem: 0min 0mb A-V:-0.014 [7:64]
Skipping frame!
Pos: 4.2s 124f (85%) 0.00fps Trem: 0min 0mb A-V:-0.014 [7:64]
Skipping frame!
Pos: 4.3s 129f (85%) 0.00fps Trem: 0min 0mb A-V:-0.014 [7:64]
Skipping frame!
Pos: 4.5s 134f (100%) 0.00fps Trem: 0min 0mb A-V:-0.014 [6:64]
Skipping frame!
Pos: 4.7s 139f (100%) 0.00fps Trem: 0min 0mb A-V:-0.014 [6:64]
Skipping frame!
Pos: 4.8s 144f (100%) 0.00fps Trem: 0min 0mb A-V:-0.014 [6:64]
Skipping frame!
Writing index...49f (100%) 0.00fps Trem: 0min 0mb A-V:-0.014 [6:64]
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 6.275 kbit/s (784 B/s) size: 3926 bytes 5.005 secs 149 frames

Audio stream: 64.040 kbit/s (8005 B/s) size: 40149 bytes 5.015 secs
Any suggestions?

Last edited by \\.\; 08-16-2009 at 04:23 AM.
 
Old 08-16-2009, 03:57 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@\\.\: You added your question to a really old thread (started in 2004) which was not drm specific.

I think it would be a better idea to start a new thread, it will give you the exposure you want/need.
 
  


Reply

Tags
convert, mencoder, wmv



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
cannot play .avi .wmv, mpg files WRXHokie Linux - Software 22 12-05-2005 08:57 PM
Convert .WMV to another Format (.avi) mikedeatworld Linux - Software 1 08-13-2005 11:34 AM
Convert mpg to avi (xvid) ? bomix Linux - Software 4 03-10-2005 03:53 PM
RealPlayer wont open mpg or avi or wmv files madmax04 Linux - Newbie 2 09-28-2004 02:19 PM
convert avi to mpg jbogins Linux - Software 1 12-28-2003 09:30 AM

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

All times are GMT -5. The time now is 11:13 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