Transferred from: http://cache2.weidaohang.org/h/index.php?q=aHR0cDovL2Jsb2cuY3Nkbi5uZXQvemh1cWluZ183MzkvYXJ0aWNsZS9kZXRhaWxzLzY2MzY4NTc=
Has been more confused a problem, all said FFmpeg function is very powerful, but he has not been to study, today finally saw a bit of its strong place!
First of all, of course, the Linux compiler and installation success FFmpeg, about the specific installation process, you can refer to my previous blog post!
Here is a direct introduction of how to put. H264 Pure stream package into. mp4. avi format, I think this problem also must have a lot of netizens in the study, hope can help everyone!
Plainly speaking, in fact, as long as FFmpeg installation success, playing into various formats has been a command of the matter! For more instructions on FFmpeg, please refer to here:
Http://ffmpeg.org/ffmpeg-doc.html
To make the. H264 Pure code stream into a variety of file formats, first you have to have a. H264 of pure stream files, such as sample.h264, do not know csdn blog How to upload attachments, otherwise I will put my sample.h264 upload up. I think as long as the standard h264 stream, should be no problem!
Take a look at the sample.h264 code stream file under my path:
With the command:
Ffmpeg-i sample.h264 Output.mp4
After that, a Output.mp4 file is generated in the current directory,
After that, copy it to Windows and use the storm to open the watch directly:
Use MSN here, but cut out is a black screen!
==========================================================================================================
Younger brother is not, oneself create a QQ group! Mainly discusses the Linux C language, shell script, drive development and so on, welcome everyone to join, the first statement, I level very dishes .... Oh
qq:213622826
==========================================================================================================
Use ffmpeg0.6.1 to package. H264 pure bitstream into. mp4. avi format (reprint)