Menu Home

ffmpeg常用命令

把mpg文件转换成一系列JPG图片

ffmpeg -i video.mpg image%d.jpg

其他支持的格式:

 PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI ...

MP4转换MOV

这里只是转换了包装格式,不改变视频和音频编码格式。
-vcodec copy:拷贝源视频编码格式
-acodec copy:拷贝源音频编码格式

ffmpeg -i  inputfile.mp4  -vcodec  copy  -acodec  copy  output.mov

其它常用参数:
-s:设置视频大小

ffmpeg -i  inputfile.mp4  -vcodec  copy  -acodec  copy -s  1920x1080  output.mov

-r:设置视频帧率

ffmpeg -i  inputfile.mp4  -vcodec  copy  -acodec  copy  -r  29.97  output.mov 

-b:设置视频码率

ffmpeg  -i  inputfile.mov  -acodec copy  -vcodec copy -s 1920x1080  -r 25  -b 20k  output.mov

捕捉音频

ffmpeg -f alsa -i hw:0 alsaout.wav

Json格式输出视频信息

ffprobe -v quiet -print_format json -show_format -show_streams 1kHz_0dBfs_L_aacPlusv2_32.aac

TS 切片命令

ffmpeg -i input_file -c copy -map 0  -f segment -segment_list  out.m3u8 -segment_time 10  file%04d.ts

14 replies

  1. I and also my pals ended up checking out the nice secrets and techniques from your site while the sudden I got an awful feeling I had not thanked you for them. Most of the men appeared to be glad to see them and now have without a doubt been having fun with them. Appreciation for actually being really thoughtful and then for utilizing such impressive topics most people are really wanting to be aware of. Our honest regret for not expressing appreciation to you sooner.

  2. My wife and i were excited that Albert could deal with his analysis out of the ideas he got using your web site. It’s not at all simplistic to just find yourself freely giving tips and tricks other people have been selling. We understand we have you to appreciate for this. The main illustrations you’ve made, the straightforward site navigation, the relationships your site make it possible to engender – it is most terrific, and it is letting our son in addition to our family feel that this idea is fun, and that’s extraordinarily indispensable. Many thanks for everything!

  3. I must express some thanks to this writer for bailing me out of such a setting. Just after researching through the the web and obtaining principles which were not helpful, I assumed my entire life was well over. Being alive without the answers to the issues you have fixed as a result of your site is a crucial case, as well as the ones which could have in a negative way affected my career if I had not come across your website. Your actual ability and kindness in touching everything was vital. I don’t know what I would have done if I had not come across such a solution like this. I can at this point relish my future. Thanks a lot so much for this reliable and result oriented guide. I won’t hesitate to propose your web site to anybody who needs to have care about this problem.

  4. Thank you so much for giving everyone an extraordinarily marvellous chance to read in detail from this web site. It is always so superb plus stuffed with a great time for me and my office acquaintances to search your web site nearly thrice in 7 days to find out the new issues you have. Of course, I’m usually amazed with your unique concepts served by you. Certain 2 ideas in this posting are indeed the most effective we have all had.

  5. I am also writing to let you know what a fantastic experience my wife’s daughter developed viewing your web page. She even learned such a lot of issues, most notably how it is like to possess an awesome giving nature to make men and women quite simply fully understand certain advanced matters. You truly exceeded my expectations. Thanks for offering those warm and friendly, trusted, explanatory not to mention cool guidance on your topic to Evelyn.

  6. I want to show my gratitude for your kind-heartedness giving support to individuals who absolutely need assistance with in this matter. Your personal dedication to passing the solution throughout came to be certainly helpful and have usually encouraged regular people like me to arrive at their desired goals. Your new insightful report entails so much to me and extremely more to my peers. With thanks; from all of us.

  7. I actually wanted to write a quick comment to be able to thank you for all of the magnificent information you are showing on this site. My particularly long internet search has finally been compensated with reasonable facts to exchange with my family and friends. I ‘d assert that we readers actually are very much fortunate to be in a decent place with so many wonderful people with valuable things. I feel very much fortunate to have come across your entire site and look forward to so many more thrilling moments reading here. Thank you again for a lot of things.

  8. A lot of thanks for all of your effort on this web page. My mum takes pleasure in engaging in investigation and it is easy to see why. I notice all of the lively way you present reliable guidelines by means of your website and as well as boost participation from other ones about this theme then our own simple princess has always been being taught a lot of things. Take pleasure in the remaining portion of the year. You have been conducting a terrific job.

  9. I precisely had to thank you very much again. I am not sure what I would’ve gone through in the absence of those creative ideas documented by you over this subject matter. This has been a very traumatic scenario in my position, but taking note of your specialised strategy you processed it took me to cry over contentment. Now i’m happy for this information as well as hope you comprehend what a powerful job you are always getting into teaching some other people thru your blog. Most likely you have never met all of us.

  10. I intended to put you a little remark just to thank you so much as before over the pleasant basics you have discussed on this website. It has been simply pretty open-handed of you to supply openly exactly what many individuals could have offered as an e book to generate some cash for themselves, notably given that you could possibly have tried it in case you decided. These pointers in addition worked to become fantastic way to be sure that the rest have similar fervor just as my personal own to figure out a great deal more pertaining to this issue. I am sure there are lots of more pleasurable times ahead for individuals that find out your blog post.

  11. Needed to put you a bit of word to give many thanks over again for these spectacular strategies you’ve shown at this time. It has been certainly extremely generous of people like you to grant unhampered all a few people could possibly have supplied as an ebook to get some dough for their own end, even more so considering the fact that you could have tried it in the event you considered necessary. These techniques as well served to become a fantastic way to understand that other people online have a similar dream the same as mine to grasp very much more in respect of this matter. I think there are thousands of more pleasant opportunities ahead for people who go through your blog.

  12. I enjoy you because of your entire efforts on this website. Gloria takes pleasure in doing investigations and it’s simple to grasp why. Most people notice all relating to the compelling ways you deliver very important tips and tricks through the blog and as well inspire response from people on the area and our own child is without a doubt starting to learn a lot. Have fun with the remaining portion of the new year. You are doing a remarkable job.

  13. Thank you for your whole efforts on this blog. Ellie really loves participating in investigations and it’s really simple to grasp why. My partner and i notice all regarding the dynamic way you offer reliable secrets by means of this web blog and in addition inspire contribution from other ones on that article so our own daughter is really starting to learn a lot of things. Enjoy the remaining portion of the year. You are always performing a superb job.

  14. I have to express my respect for your generosity supporting those who actually need help with the situation. Your real dedication to passing the message around had become quite informative and has really empowered workers just like me to get to their dreams. Your new warm and helpful recommendations denotes a whole lot to me and still more to my colleagues. With thanks; from everyone of us.

Leave a Reply

Your email address will not be published.