Jan. 15, 2009Steven
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
Jan. 15, 2009lefTy
This is what I use for converting WMV: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.txtChange the size and aspect ratio to suit your video.
Jan. 16, 2009Steven
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.
Jan. 16, 2009lefTy
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.
Jan. 16, 2009Steven
you can grab the one I tried to convert, which is CardTracks.flv, at this url:
www.oldevents.com/~silly/video/movie_6027.wmv
Jan. 16, 2009lefTy
I did a 2-pass transcode with ffmpeg SVN-r16043-Sherpya using:
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
FFmpeg version SVN-r16043-Sherpya, Copyright (c) 2000-2008 Fabrice Bellard, et al.
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 6. 1 / 52. 6. 1
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 1. 0 / 0. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Dec 10 2008 18:25:26, gcc: 4.2.5 20080919 (prerelease) [Sherpya]
Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.00 (29/1)
Input #0, asf, from 'movie_6027.wmv':
Duration: 00:03:30.32, start: 5.000000, bitrate: 211 kb/s
Stream #0.0: Audio: wmav2, 44100 Hz, stereo, s16, 48 kb/s
Stream #0.1: Video: wmv3, yuv420p, 320x240, 150 kb/s, 29.00 tb(r)
Output #0, flv, to 'movie_6027.flv':
Stream #0.0: Video: flv, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, pass 2, 270 kb/s, 20.00 tb(c)
Stream #0.1: Audio: libmp3lame, 22050 Hz, stereo, s16, 96 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 90 fps= 0 q=2.6 size= 136kB time=4.50 bitrate= 247.8kbits/s
...
frame= 4272 fps=173 q=5.6 Lsize= 9744kB time=213.60 bitrate= 373.7kbits/s
video:7044kB audio:2505kB global headers:0kB muxing overhead 2.040894%
Latest ffmpeg from sourceforge.
Jan. 16, 2009Steven
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
Jan. 21, 2009Corprew
Steven, is your server running ubuntu?
Jan. 21, 2009Torez
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.
Jan. 21, 2009Torez
Sorry, as per my previous post I need audio to along with the video if I wasn't clear in my pled for help.
Oct. 30, 2009Ken
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."
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.