[MEncoder-users] Converting wmv3 to flv
Scott
scott at hawkee.com
Fri Oct 21 22:14:52 CEST 2005
I'm trying to convert any number of random wmv3 files to flv. This
needs to work universally and quickly, so I'm being extra careful
to do this properly. I've figured out how to convert a single audio
channel wmv3 to flv with this command:
mencoder movie.wmv -o movie.flv -of lavf -ovc lavc -oac lavc
-lavcopts vcodec=flv:vbitrate=250:autoaspect:acodec=mp3:
abitrate=56 -vf scale=320:240 -srate 22050
-af lavcresample=22050 -ofps 15
This works pretty well, but the audio is slightly out of sync with
the video.
Another problem is I get a Segmentation Fault when the wmv3 file
has a 2 channel audio track. I can convert the wmv3 *video* to flv
by using -nosound, but I need the sound to be included. If you
have any insight into this, I'd be grateful.
I got around this by doing mplayer -ao pcm to create a dump and
then I used lame to convert it to mp3. Now my challenge is to
remux this new audio track with the flv that was created with
-nosound. I read in another post here that I need to use
-ovc copy -oac copy and -audiofile, but I can't seem to figure out
how it's done. mencoder went through the entire process but the
mp3 wasn't added. I used this command:
mencoder movie.flv -ovc copy -oac copy -audiofile audiodump.mp3
-o movie2.flv
Something must be wrong with it.
So I've got three problems:
1. Audio is out of sync when I convert a 1ch wmv3 to flv
2. Segmentation Fault when I try to convert a 2ch wmv3 to flv
3. I can't remux the separate audio mp3 into a -nosound flv file.
Ideally I'd like to avoid using mplayer and lame as that adds too
much time to the entire process. I'd like this process to happen in
a matter of a couple minutes at the most. I think with mplayer I
have to wait out the entire duration of the video to get the
audiodump which is too long.
I'm using the wmv9dmod.dll file from the mplayer website to
decode my wmv3 files.
Thank you,
- Scott
More information about the MEncoder-users
mailing list