Summary of video conversion using FFMPEG mencoder

Source: Internet
Author: User
699 people read comments (0) collect reports

Save it for reference later:

 

The success of YouTube has led to the emergence of domestic video websites. Recently, my friend asked me to help him write a program to convert various video formats into FLV, here we will share with you the difficulties and experiences encountered in programming.

1. engine used: FFMPEG + mencoder
2, FFMPEG the latest version of: http://ffdshow.faireal.net/mirror/ffmpeg/
Mencoder New: http://www5.mplayerhq.hu/MPlayer/releases/win32/
3. Conversion Speed comparison: FFMPEG conversion speed is faster than mencoder in general.
4. Conversion format requirements: Rm, rmvb, and RT files can only be converted using mencoder. I basically use FFMPEG for speed reasons, so I didn't test the format that mencoder can convert in detail (which of the following friends knows, please tell me, I will add it ).
5. The pure audio format can only be converted using mencoder. To determine whether the audio format is pure, you can use the command FFMPEG-I "full file path" to obtain the output and then analyze it.
6. The effect of FFMPEG conversion in mov format is relatively poor. It is recommended that mencoder be used for conversion. mencoder is recommended for wmv8 and FFMPEG.
7. Video Rate Output: you must first obtain the width and height of the source video file (which can be analyzed after obtaining the output through FFMPEG-I "full file path) set the size of the output file based on the ratio of height to width.
8. Possible difficulties: Because FFMPEG and mencoder are both command line tools (of course, you can also download the source code and modify it to com), and can only be called using process in C, I mentioned earlier that to obtain the output information (obtain the video frequency information, obtain the current conversion progress, and obtain the conversion time), you must set the process. startinfo. useshellexecute = false; process. startinfo. createnowindow = true; then process must be obtained through asynchronous programming. standardoutput and process. the value of standarderror.
For more information, see (MS-help: // Ms. msdnqtr.2003feb. 2052/cpref/html/frlrfsystemdiagnosticsprocessclassstandardoutputtopic.htm ).

This article aims to help you avoid detours and does not provide practical solutions and download related source code.

If you have any other questions, please leave a message in this article.

References:
Http://wf.xplore.cn/read.php/90.htm

Share: 
  • Previous Article: FFMPEG and mencoder use instance Xiaoquan
  • Next article: Use mencoder to convert video formats online and control video quality
  • Save it for reference later:

     

    The success of YouTube has led to the emergence of domestic video websites. Recently, my friend asked me to help him write a program to convert various video formats into FLV, here we will share with you the difficulties and experiences encountered in programming.

    1. engine used: FFMPEG + mencoder
    2, FFMPEG the latest version of: http://ffdshow.faireal.net/mirror/ffmpeg/
    Mencoder New: http://www5.mplayerhq.hu/MPlayer/releases/win32/
    3. Conversion Speed comparison: FFMPEG conversion speed is faster than mencoder in general.
    4. Conversion format requirements: Rm, rmvb, and RT files can only be converted using mencoder. I basically use FFMPEG for speed reasons, so I didn't test the format that mencoder can convert in detail (which of the following friends knows, please tell me, I will add it ).
    5. The pure audio format can only be converted using mencoder. To determine whether the audio format is pure, you can use the command FFMPEG-I "full file path" to obtain the output and then analyze it.
    6. The effect of FFMPEG conversion in mov format is relatively poor. It is recommended that mencoder be used for conversion. mencoder is recommended for wmv8 and FFMPEG.
    7. Video Rate Output: you must first obtain the width and height of the source video file (which can be analyzed after obtaining the output through FFMPEG-I "full file path) set the size of the output file based on the ratio of height to width.
    8. Possible difficulties: Because FFMPEG and mencoder are both command line tools (of course, you can also download the source code and modify it to com), and can only be called using process in C, I mentioned earlier that to obtain the output information (obtain the video frequency information, obtain the current conversion progress, and obtain the conversion time), you must set the process. startinfo. useshellexecute = false; process. startinfo. createnowindow = true; then process must be obtained through asynchronous programming. standardoutput and process. the value of standarderror.
    For more information, see (MS-help: // Ms. msdnqtr.2003feb. 2052/cpref/html/frlrfsystemdiagnosticsprocessclassstandardoutputtopic.htm ).

    This article aims to help you avoid detours and does not provide practical solutions and download related source code.

    If you have any other questions, please leave a message in this article.

    References:
    Http://wf.xplore.cn/read.php/90.htm

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.