Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: [gentoo-user] convert wmv to mp4?
Date: Tue, 01 May 2012 15:54:05
Message-Id: CAK2H+edbxxLUsaky2-nmPPeMychQ8O83DkMkOkB5mnQkYPAP1w@mail.gmail.com
1 I'm looking around on the web for ways to convert wmv files to mp4. So
2 far the most common solution seems to be ffmpeg but when I try that it
3 doesn't seem to understand the video files. The most common type of
4 comment people give is that this should be straight forward if 32-bit
5 codecs are installed. I'm running 64-bit and don't see what flags I
6 might need to set to get that?
7
8 There is a library (libwmf) which advertises the ability to do this
9 but I don't seem to be using it in any application right now:
10
11 * media-libs/libwmf
12 Available versions: 0.2.8.4-r4 {{X debug doc expat xml}}
13 Homepage: http://wvware.sourceforge.net/
14 Description: library for converting WMF files
15
16 mark@c2stable ~/WMV-Test $ equery depends libwfm
17 * These packages depend on libwfm:
18 mark@c2stable ~/WMV-Test $
19
20
21 Anyone doing this successfully today or what to suggest how to do this?
22
23 Thanks,
24 Mark
25
26
27 mark@c2stable ~/WMV-Test $ ffmpeg -i Test1.wmv -f mp4 -acodec mp2
28 Test1.mp4
29 ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
30 built on Apr 27 2012 16:07:57 with gcc 4.5.3
31 configuration: --prefix=/usr --libdir=/usr/lib64
32 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared
33 --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++
34 --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -march=native -pipe'
35 --extra-cflags='-O2 -march=native -pipe' --extra-cxxflags='-O2
36 -march=native -pipe' --disable-static --enable-gpl --enable-version3
37 --enable-postproc --enable-avfilter --disable-stripping
38 --disable-debug --disable-doc --disable-network --disable-vaapi
39 --disable-vdpau --enable-libmp3lame --enable-libvo-aacenc
40 --enable-libvorbis --enable-libx264 --enable-libxvid
41 --disable-indev=v4l --disable-indev=v4l2 --disable-indev=oss
42 --disable-indev=jack --enable-x11grab --disable-outdev=oss
43 --enable-libfreetype --enable-libopenjpeg --disable-amd3dnow
44 --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmx2
45 --disable-vis --disable-neon --cpu=host --enable-hardcoded-tables
46 libavutil 51. 35.100 / 51. 35.100
47 libavcodec 53. 61.100 / 53. 61.100
48 libavformat 53. 32.100 / 53. 32.100
49 libavdevice 53. 4.100 / 53. 4.100
50 libavfilter 2. 61.100 / 2. 61.100
51 libswscale 2. 1.100 / 2. 1.100
52 libswresample 0. 6.100 / 0. 6.100
53 libpostproc 52. 0.100 / 52. 0.100
54 [asf @ 0x626320] max_analyze_duration 5000000 reached at 5200000
55 [asf @ 0x626320] decoding for stream 1 failed
56 [asf @ 0x626320] Could not find codec parameters (Video: none (MSS2 /
57 0x3253534D), 1366x740, 4971 kb/s)
58 Input #0, asf, from 'Test1.wmv':
59 Metadata:
60 WMFSDKVersion : 12.0.7601.17514
61 WMFSDKNeeded : 0.0.0.0000
62 IsVBR : 0
63 Duration: 02:32:10.26, start: 0.000000, bitrate: 42 kb/s
64 Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 1
65 channels, s16, 20 kb/s
66 Stream #0:1(eng): Video: none (MSS2 / 0x3253534D), 1366x740, 4971
67 kb/s, 1k tbr, 1k tbn, 1k tbc
68 File 'Test1.mp4' already exists. Overwrite ? [y/N] y
69 Video pixel format is unknown, stream cannot be encoded
70 mark@c2stable ~/WMV-Test $
71
72
73
74 [I] media-video/ffmpeg
75 Available versions: 0.7.8 0.10 0.10.2{tbz2} **9999 {{(+)3dnow
76 (+)3dnowext X aac aacplus alsa altivec amr ass avx bindist bluray
77 +bzip2 cdio celt cpudetection custom-cflags debug dirac doc +encode
78 faac +fftools_aviocat +fftools_cws2fws +fftools_ffeval
79 +fftools_graph2dot +fftools_ismindex +fftools_pktdumper
80 +fftools_qt-faststart +fftools_trasher fontconfig frei0r gnutls gsm
81 +hardcoded-tables ieee1394 iwmmxt jack jpeg2k libv4l (+)mmx (+)mmxext
82 modplug mp3 neon network openal openssl oss pic pulseaudio
83 +qt-faststart rtmp schroedinger sdl speex (+)ssse3 static-libs test
84 theora threads truetype v4l vaapi vdpau video_cards_nvidia vis vorbis
85 vpx x264 xvid +zlib}}
86 Installed versions: 0.10.2{tbz2}(04:08:05 PM 04/27/2012)(X aac
87 alsa bzip2 encode fftools_aviocat fftools_cws2fws fftools_ffeval
88 fftools_graph2dot fftools_ismindex fftools_pktdumper
89 fftools_qt-faststart fftools_trasher hardcoded-tables jpeg2k mmx mp3
90 sdl ssse3 truetype vorbis x264 xvid zlib -3dnow -3dnowext -aacplus
91 -altivec -amr -ass -avx -bindist -cdio -celt -cpudetection -debug
92 -dirac -doc -faac -frei0r -gnutls -gsm -ieee1394 -jack -libv4l -mmxext
93 -modplug -neon -network -openal -openssl -oss -pic -pulseaudio -rtmp
94 -schroedinger -speex -static-libs -test -theora -threads -v4l -vaapi
95 -vdpau -vis -vpx)
96 Homepage: http://ffmpeg.org/
97 Description: Complete solution to record, convert and
98 stream audio and video. Includes libavcodec.

Replies

Subject Author
Re: [gentoo-user] convert wmv to mp4? Michael Mol <mikemol@×××××.com>
Re: [gentoo-user] convert wmv to mp4? David W Noon <dwnoon@××××××××.com>
Re: [gentoo-user] convert wmv to mp4? Stroller <stroller@××××××××××××××××××.uk>
Re: [gentoo-user] convert wmv to mp4? Michael Orlitzky <michael@××××××××.com>