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
========================================================== ========================================================== ======================================