LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   convert .wmv to .avi or .mpg (https://www.linuxquestions.org/questions/linux-software-2/convert-wmv-to-avi-or-mpg-265103/)

PeaceTank 12-11-2004 12:21 AM

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?

druuna 12-11-2004 04:27 AM

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.

Budman21901 08-14-2006 01:14 AM

Thank you for this post. I just found it searching, and it worked perfectly.

reddazz 08-14-2006 02:51 AM

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.

Damian.Star 08-20-2006 03:44 PM

Are there any GUI programs to do this? Am an ex-windows user and really struggling with command line apps

JARofHERB 08-20-2006 05:00 PM

Damian, I like the gui program avidemux, it works as a great gui program for most all video formats..

reddazz 08-21-2006 02:29 AM

There is a gui frontend to mencoder and transcode called konverter (look for it at kde-apps.org or your distros software repo).

linux waco 11-04-2006 01:45 PM

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

\\.\ 08-16-2009 03:11 AM

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?

druuna 08-16-2009 03:57 AM

@\\.\: 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.


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