RM、RMVB、RV、WMV9等媒体格式转换为FLV

原文作者: http://ken.bokele.com/?CH=8408&ViewID=24738
大家都知道用FFMPEG可以转FLV,可以抓图,但是不支持RM,WMV9等格式,有人说可以实现支持RM,WMV9等,要自己开发,俺们不会编程,可怜,自己开发的事就别想了。那有什么方法可以支持所有格式在线转FLV呢,用一个软件转FLV的我不知道,但是我知道用Mencoder可以支持所有格式转AVI,再用FFMPEG来转FLV,并抓图等,虽然这个方法麻烦,但是也是一个可行的方案。也有人说可以用Mencoder直接转FLV,但是我还不知道怎么弄,等我知道时我一定告诉大家。现在下面贴出这个方案,是我实验成功的,如有不对的地方,请指教。

以下是需要的两个软件(google一下就能找到官方下载)
FFMPEG
Mencoder

先从Mencoder这个开始,将所有格式转AVI,

RMVB转AVI
mencoder 1.rmvb -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o rmvb.avi

RM转AVI
mencoder 1.rm -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o rm.avi

MPEG转AVI
mencoder mp4.mpeg -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o mp4.avi

MOV转AVI
mencoder qtime.mov -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o qtime.avi

WMV转AVI 包括WMV7到WMV9,只实验到WMV9
mencoder m7.wmv -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o m7.avi

RV转AVI
mencoder 1.rv -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o rv.avi

等等……格式,参数不变,改文件名就好了。这里参数是什么意思,我目前还不懂,学习中,你可以在网上找找,找到告诉我啊,谢谢。

接下来是FFMPEG上场。

AVI转FLV
ffmpeg -i test.avi -ab 56 -ar 22050 -b 500 -r 15 -s 320×240 test.flv

抓图JPG。
ffmpeg -i 2.wmv -y -f image2 -ss 8 -t 0.001 -s 350×240 test.jpg

好,这样就实现命令行将所有格式转FLV了,我的进度只到这,接下来是应用方面的了,如何将以上的方法应用在服务器上呢,如ASP的话,用那个要WS。SHELL什么的调用,这方面的我还在调试中,等我调试完成,我在与大家分享我的成果,谢谢。十分鄙视那些说什么已经实所有格式转FLV,还要收费的,靠。资源要共享,我们才能发展,以后我们自己开发CPU,开发操作系统。

好,我写完了,就到这,希望对你们有所帮助。有什么问题及不对的地方,请尽管提出,共同进步。

Category: 其他技术
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
6 Responses
  1. 卢怀亮 says:

    你好,谢谢你了。我是学信息系统与信息管理的,可能需要您的帮助。至少我们可以做个朋友。。OK???

  2. Michael says:

    [Comment ID #19637 Will Be Quoted Here]

    没问题,欢迎交流,相互学习。

  3. 马蜂不蛰 says:

    AVI转FLV
    ffmpeg -i test.avi -ab 56 -ar 22050 -b 500 -r 15 -s 320×240 test.flv

    补充两句,用默认的语句转出的flv不清楚,我一般用-qscale 4,转出较高质量的flv

    ffmpeg -i test.avi -ab 56 -ar 22050 -qscale 4 -r 15 -s 320×240 test.flv

  4. Carol.x says:

    亲爱的,谢谢分享!正愁解决方法,一搜索就到你这里找到答案了,感谢上帝的指引!感谢你。

  5. Jason says:

    hi,用这个软件可以帮你解决问题
    Video Converter

  6. Pingback: google
  7. Golden Goose says:

    Today, while I was at work, my cousin stole my iphone and tested to see if it
    can survive a twenty five foot drop, just so
    she can be a youtube sensation. My iPad is now
    destroyed and she has 83 views. I know this
    is entirely off topic but I had to share it with someone!

  8. When I originally commented I clicked the “Notify me when new comments are added”
    checkbox and now each time a comment is added I get three e-mails with the same comment.
    Is there any way you can remove people from that service?
    Thanks a lot!

  9. It is appropriate time to make a few plans for the longer term and it’s time to be happy.
    I’ve learn this submit and if I may I desire to counsel you some interesting
    issues or suggestions. Maybe you can write subsequent articles referring to this article.
    I desire to read more issues approximately it!

  10. Hey there! Do you use Twitter? I’d like to follow you if that
    would be okay. I’m absolutely enjoying your blog and look forward to new posts.

  11. Starter says:

    I love your blog.. very nice colors & theme. Did you make
    this website yourself or did you hire someone to do it for you?
    Plz answer back as I’m looking to create my own blog
    and would like to find out where u got this
    from. many thanks

  12. Francy says:

    I love your blog.. very nice colors & theme. Did you create this website yourself or
    did you hire someone to do it for you? Plz reply
    as I’m looking to construct my own blog and
    would like to know where u got this from. kudos

  13. Haus Halley says:

    I just like the valuable info you provide on your articles.

    I’ll bookmark your weblog and check once more here regularly.

    I am relatively sure I will be informed many new stuff right right here!

    Good luck for the following!

  14. Slide says:

    Ahaa, its pleasant dialogue concerning this paragraph here
    at this blog, I have read all that, so now me also commenting at this place.

  15. Francy says:

    I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored subject matter stylish.
    nonetheless, you command get bought an shakiness over that
    you wish be delivering the following. unwell unquestionably come further formerly again as exactly the
    same nearly very often inside case you shield this increase.

  16. Superstar says:

    Touche. Great arguments. Keep up the good spirit.

  17. adidas shoes says:

    Awesome article.

  18. Superstar says:

    My brother suggested I may like this web site. He used to be entirely right.
    This submit truly made my day. You cann’t imagine
    simply how much time I had spent for this information! Thanks!

  19. adidas shoes says:

    What’s up, I read your new stuff regularly. Your
    story-telling style is witty, keep up the good work!

  20. adidas shoes says:

    I like it when people come together and share views.
    Great blog, keep it up!

  21. California says:

    It’s awesome to pay a quick visit this web site and reading the views of all friends
    on the topic of this paragraph, while I am also keen of
    getting know-how.

  22. Superstar says:

    Hello There. I found your blog using msn. This is a really well
    written article. I will be sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I will certainly comeback.

  23. I’m not sure exactly why but this blog is loading incredibly
    slow for me. Is anyone else having this problem or is it
    a problem on my end? I’ll check back later on and see if
    the problem still exists.

  24. For newest news you have to pay a visit the web and on the web I found this web
    page as a best site for latest updates.

  25. After looking over a handful of the articles on your site, I truly appreciate your way of blogging.
    I bookmarked it to my bookmark webpage list and will be checking back
    in the near future. Please check out my web site as well and tell me your opinion.

  26. nike air max says:

    Everything is very open with a very clear description of the challenges.
    It was truly informative. Your site is useful. Thank you for sharing!

  27. nike air max says:

    Everyone loves what you guys tend to be up too. Such clever work
    and exposure! Keep up the great works guys I’ve you guys
    to blogroll.

  28. nike air max says:

    Your style is really unique compared to other folks I’ve read stuff from.
    Thank you for posting when you’ve got the opportunity, Guess I’ll just bookmark this blog.

  29. minecraft says:

    I all the time used to read paragraph in news papers but now as I am a
    user of internet so from now I am using net for posts, thanks to web.

  30. minecraft says:

    wonderful issues altogether, you simply received a new reader.
    What might you suggest in regards to your submit that you just made a
    few days in the past? Any positive?

  31. minecraft says:

    We are a group of volunteers and starting a new scheme in our community.

    Your web site offered us with valuable information to work on. You have done a
    formidable job and our whole community will be thankful to you.

  32. minecraft says:

    I visit each day some web pages and blogs to read posts, but this website gives feature based content.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image