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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
12-11-2004, 12:21 AM
#1
Member
Registered: Mar 2004
Distribution: Gentoo
Posts: 55
Rep:
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?
12-11-2004, 04:27 AM
#2
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 7,510
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.
08-14-2006, 01:14 AM
#3
LQ Newbie
Registered: Jan 2005
Location: NorthEast Md.
Distribution: Ubuntu 6.10
Posts: 24
Rep:
Thank you for this post. I just found it searching, and it worked perfectly.
08-14-2006, 02:51 AM
#4
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
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.
08-20-2006, 03:44 PM
#5
LQ Newbie
Registered: Aug 2006
Location: Manchester, UK
Distribution: SuSE
Posts: 15
Rep:
Are there any GUI programs to do this? Am an ex-windows user and really struggling with command line apps
08-20-2006, 05:00 PM
#6
Member
Registered: Apr 2004
Location: Pacific Northwest
Distribution: Debian unstable
Posts: 60
Rep:
Damian, I like the gui program avidemux, it works as a great gui program for most all video formats..
08-21-2006, 02:29 AM
#7
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
There is a gui frontend to mencoder and transcode called konverter (look for it at kde-apps.org or your distros software repo).
11-04-2006, 01:45 PM
#8
LQ Newbie
Registered: Nov 2006
Posts: 1
Rep:
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
#9
LQ Newbie
Registered: Aug 2009
Posts: 10
Rep:
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 .
08-16-2009, 03:57 AM
#10
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 7,510
@\\.\: 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.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 05:58 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News