View Full Version : how to convert wmv to mp4?
jqzw
10th December 2005, 16:27
hi,who can tell me how to conver wmv to mp4? I think, first decoder wmv file to get the yuv or rgb data and the audio data,and then encode the data decoded by wmv decoder .my problem is how i can get wmv decoder? or could you tell me another solution to the problem? thanks.
bond
10th December 2005, 16:38
create an avisynth script with
directshowsource("c:\path to\input.wmv",fps=23.976) use whatever framerate the wmv has of course
if you can see the video when opening that .avs in virtualdub everything worked ok and you can feed x264 with it (eg via megui)
if you dont see the video you propably also cant see it in a directshow player (like media player classic), which means you need to install the dshow filters from m$
jqzw
10th December 2005, 17:04
create an avisynth script with
Code:
directshowsource("c:\path to\input.wmv",fps=23.976)
use above method,can i get the decoded data? I prefer to get the decoded data first ,then encode the data to the file format I want. so how can I get the decoded wmv data? thanks a lot!
bond
10th December 2005, 17:10
why do you need the data in a file? avisynth is a frameserver, which means the decoder decodes the data and it gets right away passed to the encoder, without the need to create a raw video file inbetween
if you still want the raw .yuv file you can use the avs2yuv tool (google) with the -raw switch
jqzw
10th December 2005, 17:21
thank bond!
i will try it.
thanks
jqzw
10th December 2005, 17:54
i tried it,but i can only get the raw video data and the video data is not correct :(
bond
10th December 2005, 20:20
i tried it,but i can only get the raw video data and the video data is not correct :(why do you think so?
SenorKaffee
11th December 2005, 01:05
I donīt think there is a way to just remux a WMV file in the MP4 container.
So use AVISynth and then open it in MEGui. Both tools are heavily used in the forums.
DirectShowSource("D:\Downloads\kh2prom.WMV")
ConvertToYV12
SeeMoreDigital
11th December 2005, 12:33
The newest version of VirtualDub-MPEG2 will open WMV files now.
Once there and with the correct filters, you should be able to re-encode WMV to MPEG-4 in AVI. The WMA audio stream would have to be re-encoded to AAC separately.
Both new streams could then be muxed into the .MP4 container using YAMB
bond
11th December 2005, 12:56
jqzw, read the rules again, no double post
striked and merged
jqzw
11th December 2005, 14:40
is there someone familar with directshow? can I use directshow get the decoded wmv data ?
bond
11th December 2005, 14:41
doesnt this answer your question:
create an avisynth script with
directshowsource("c:\path to\input.wmv",fps=23.976) use whatever framerate the wmv has of course
if you can see the video when opening that .avs in virtualdub everything worked ok and you can feed x264 with it (eg via megui)
if you dont see the video you propably also cant see it in a directshow player (like media player classic), which means you need to install the dshow filters from m$
dyssident
22nd December 2005, 00:36
doesnt this answer your question:
man i love this forum. answered my question before i even had a chance to start mumbling to myself about how much i hate microsoft.
now i just have to figure out the audio encoding. since besweet cant use wma as a source, maybe ill just dump to pcm then encode that.
or i could do something crazy like search this forum for the answer.
LoRd_MuldeR
22nd December 2005, 01:46
I have experienced that most WMV files get unsynchron in VirtualDub-MPEG2. So I usually use that tool called "ASF Tools", which can directly convert WMV files to AVI (synchron!). So far this seems to work fine and it doesn't need to re-encode the video. AVI is not MP4, but I think this could be the first step. Converting the AVI to MP4 should not be so hard...
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.