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.

  33. minecraft says:

    Very nice post. I just stumbled upon your weblog and wanted to
    say that I have really enjoyed browsing your blog posts.
    In any case I’ll be subscribing to your rss
    feed and I hope you write again soon!

  34. minecraft says:

    I want to to thank you for this fantastic read!!
    I certainly enjoyed every little bit of it. I have got you saved as a favorite to look at new things you post…

  35. minecraft says:

    Hi there everyone, it’s my first go to see at this site,
    and article is really fruitful for me, keep up posting these types of posts.

  36. minecraft says:

    Very good post. I absolutely appreciate this site. Continue the
    good work!

  37. minecraft says:

    I used to be able to find good information from your blog
    articles.

  38. minecraft says:

    Hi mates, fastidious post and pleasant urging commented at this place,
    I am truly enjoying by these.

  39. minecraft says:

    Hi mates, good article and fastidious arguments commented at this place, I am
    genuinely enjoying by these.

  40. minecraft says:

    After I originally commented I seem to have clicked on the -Notify me when new comments are added- checkbox and now whenever a
    comment is added I receive 4 emails with the same comment.
    There has to be a way you are able to remove me from that service?

    Thank you!

  41. minecraft says:

    Wow, marvelous weblog layout! How long have you ever been running a blog for?

    you made running a blog look easy. The total look of your
    site is excellent, let alone the content material!

  42. minecraft says:

    constantly i used to read smaller articles or reviews that also clear their motive, and that is also happening with this piece of writing which I am reading at
    this place.

  43. minecraft says:

    What’s up Dear, are you truly visiting this
    site regularly, if so then you will definitely obtain pleasant
    experience.

  44. minecraft says:

    I enjoy what you guys are up too. This type of clever work
    and reporting! Keep up the excellent works guys I’ve incorporated you guys to my blogroll.

  45. minecraft says:

    I think the admin of this website is really working hard in favor of his site, because here every
    information is quality based information.

  46. minecraft says:

    Useful info. Lucky me I discovered your website
    unintentionally, and I’m surprised why this accident did not happened in advance!

    I bookmarked it.

  47. minecraft says:

    Wow, marvelous blog layout! How long have you been running a blog for?
    you make running a blog look easy. The total glance of
    your site is fantastic, let alone the content material!

  48. I’ve read some excellent stuff here. Definitely price bookmarking
    for revisiting. I wonder how so much effort you put to make this kind of wonderful informative site.

  49. I just couldn’t go away your web site prior to suggesting that I extremely
    enjoyed the usual information a person provide in your visitors?
    Is gonna be back frequently to check up on new posts

  50. Hi! I know this is kinda off topic but I was wondering if you knew where I could
    get a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having trouble finding
    one? Thanks a lot!

  51. Unquestionably consider that that you said. Your favorite reason seemed to
    be on the web the simplest factor to take into accout of.
    I say to you, I definitely get annoyed while other folks consider worries that
    they just do not recognise about. You controlled to hit the nail upon the highest and defined
    out the entire thing with no need side-effects , other folks can take
    a signal. Will probably be again to get more. Thanks

  52. Coconut Oil says:

    You ought to be a part of a contest for one of the greatest sites on the
    web. I’m going to recommend this web site!

  53. Hello, this weekend is pleasant in support of me, because this moment i
    am reading this fantastic informative article here at my residence.

  54. Wow, this paragraph is fastidious, my sister is
    analyzing these kinds of things, so I am going to inform her.

  55. Sling TV says:

    I am not sure where you’re getting your information,
    but good topic. I needs to spend some time learning more or understanding more.
    Thanks for great info I was looking for this info for my mission.

  56. Sling TV says:

    Wow, this article is good, my younger sister is analyzing these kinds of things,
    so I am going to let know her.

  57. Pingback: 2019
  58. With havin so much written content do you ever run into any problems of plagorism or copyright infringement?
    My site has a lot of completely unique content I’ve either
    written myself or outsourced but it looks like a lot of it is popping it
    up all over the internet without my authorization. Do you know any techniques to
    help reduce content from being stolen? I’d really
    appreciate it.

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