Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

FFMPEG and WMV to FLV


I've tried converting some videos from WMV format to FLV, via FFMPEG, but all the videos that get converted have messed up audio, and the video is not correct as well (they're all like this sample: http://www.oldevents.com/~silly/out.flv )

If anyone knows whats causing this, and how it can be fixed, I'd appreciate it.
Thanks

11 Community Answers

JW Player

User  
0 rated :

This is what I use for converting WMV:bc.. ffmpeg -i "CardTricks.wmv" -sameq -acodec libmp3lame -ar 22050 -ab 96000 -deinterlace -nr 500 -s 320x240 -aspect 4:3 -r 20 -g 500 -me_range 20 -b 270k -deinterlace -f flv -y "CardTricks.flv" 2>CardTricks.txt
Change the size and aspect ratio to suit your video.

JW Player

User  
0 rated :

I just ran your same command but changed the input file, and I still have the same issue.
You can see the video it made for me at
http://www.oldevents.com/~silly/CardTricks.flv

And the output (the txt file as well)
at http://www.oldevents.com/~silly/CardTricks.flv

If it helps, this is on one of my dedicated servers, which also has cpanel setup.

JW Player

User  
0 rated :

Well, that certainly didn't work.

How about posting a link to a couple of your WMV files and I'll try to figure out how to convert them.

JW Player

User  
0 rated :

you can grab the one I tried to convert, which is CardTracks.flv, at this url:
www.oldevents.com/~silly/video/movie_6027.wmv

JW Player

User  
0 rated :

I did a 2-pass transcode with ffmpeg SVN-r16043-Sherpya using:bc.. ffmpeg -pass 1 -i "movie_6027.wmv" -acodec libmp3lame -ar 22050 -ab 96000 -deinterlace -nr 500 -s 320x240 -aspect 4:3 -r 20 -g 500 -me_range 20 -b 270k -f flv -y "movie_6027.flv" 2>movie_6027-1.txt

ffmpeg -pass 2 -i "movie_6027.wmv" -acodec libmp3lame -ar 22050 -ab 96000 -deinterlace -nr 500 -s 320x240 -aspect 4:3 -r 20 -g 500 -me_range 20 -b 270k -f flv -y "movie_6027.flv" 2>movie_6027-2.txt



The quality seems about the same as the original WMV (lousy).

DL from: http://willswonders.myip.org:8081/Movies/movie_6027.flv

bc.. FFmpegversionSVN-r16043-Sherpya,Copyright(c)2000-2008FabriceBellard,etal.
libavutil49.12.0/49.12.0
libavcodec52.6.1/52.6.1
libavformat52.23.1/52.23.1
libavdevice52.1.0/52.1.0
libavfilter0.1.0/0.1.0
libswscale0.6.1/0.6.1
libpostproc51.2.0/51.2.0
builtonDec10200818:25:26,gcc:4.2.520080919(prerelease)[Sherpya]

Seemsstream1codecframeratediffersfromcontainerframerate:1000.00(1000/1)->29.00(29/1)
Input#0,asf,from'movie_6027.wmv':
Duration:00:03:30.32,start:5.000000,bitrate:211kb/s
Stream#0.0:Audio:wmav2,44100Hz,stereo,s16,48kb/s
Stream#0.1:Video:wmv3,yuv420p,320x240,150kb/s,29.00tb(r)
Output#0,flv,to'movie_6027.flv':
Stream#0.0:Video:flv,yuv420p,320x240[PAR1:1DAR4:3],q=2-31,pass2,270kb/s,20.00tb(c)
Stream#0.1:Audio:libmp3lame,22050Hz,stereo,s16,96kb/s
Streammapping:
Stream#0.1->#0.0
Stream#0.0->#0.1
Press[q]tostopencoding

frame=90fps=0q=2.6size=136kBtime=4.50bitrate=247.8kbits/s
...
frame=4272fps=173q=5.6Lsize=9744kBtime=213.60bitrate=373.7kbits/s

video:7044kBaudio:2505kBglobalheaders:0kBmuxingoverhead2.040894%



Latest ffmpeg from sourceforge.

JW Player

User  
0 rated :

there seems to be an issue with my installation of ffmpeg. All things I try (even with yours) result in a video like the one I posted (the converted one).
These are things I tried on ffmpeg on my server.

Yet when I installed ffmpeg myself from source on my laptop, I was able to get the conversion working... so I'm not sure what's wrong with server ;)

JW Player

User  
0 rated :

Steven, is your server running ubuntu?

JW Player

User  
0 rated :

I seem to have solved one issue with FFMPEG and been man handled with another. I solved a codec issue and now when trying to encode 720p HD video with 5.1 audio I get the sudden urge to cut off my left pinky and go on work leave. All jokes aside here is my working script but I forced no audio:

script: ffmpeg -i _temp/Robotica_720.wmv -an -y videos/hd_test1.flv

Here is where I got the video:

site: http://www.microsoft.com/windows/windowsmedia/musicandvideo/hdvideo/contentshowcase.aspx
video: Robotica_720.wmv

Essentially, I just want it to work, so if anyone could please help I thank you in advance for helping someone in need.

Let me know if you need more information.

JW Player

User  
0 rated :

Sorry, as per my previous post I need audio to along with the video if I wasn't clear in my pled for help.

JW Player

User  
0 rated :

SOLVED!
I just read this at http://ffmpeg.org/:
"One of the last entrenchments of proprietary multimedia has fallen: Windows Media Audio Pro support is finally available in FFmpeg. It decodes all known samples flawlessly and is considerably faster than the binary decoder from Microsoft."

JW Player

User  
0 rated :

Thanks!

This question has received the maximum number of answers.