Use ffmpeg0.6.1to pack .hsf-pure code streams into .mp4. Avi and other formats.

Source: Internet
Author: User

I have been confused. I have always said that FFmpeg is very powerful, but I have never studied it. Today I finally learned about its strength!

First of all, FFmpeg is successfully compiled and installed in Linux. For details about the installation process, refer to my previous blog!

Here we will directly introduce how to pack .hsf-pure code streams into .mp4. Avi and other formats. I think there must be many netizens who are studying this issue and hope to help you!

To put it bluntly, As long as FFmpeg is successfully installed, it is always a command to pack it into various formats! For more information about FFMPEG commands, see here:

Http://ffmpeg.org/ffmpeg-doc.html

To. h264 bitstream is written into files of various formats. First, you must have one. h264 pure code stream file, such as sample. h264, do not know how to upload attachments on the csdn blog, or else I will put my sample. h264 is uploaded. I think it should be okay if it is a standard h264 code stream!

Take a look at the sample. h264 code stream file under my path:

Run the following command:

FFmpeg-I sample. h264 output.mp4

Later, an output.mp4 file will be generated under the current directory,

Then, copy it to Windows and open it directly with a storm video:

MSN is used here, but it is a black screen!

========================================================== ========================================================== ======================================

A QQ Group created by myself! This article mainly discusses Linux C language, shell script, and driver development. You are welcome to join us. First of all, I declare that my skills are good .... Haha
QQ: 213622826

========================================================== ========================================================== ======================================

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.