This article is a mirror article of machine translation, please click here to jump to the original article.

View: 21597|Reply: 0

[Console Program] C# uses ffmpeg for audio transcoding

[Copy link]
Posted on 2019-11-8 15:17:53 | | | |
Official documentation:http://ffmpeg.org/ffmpeg.html
Download Address:http://ffmpeg.org/download.html

Transcoding with ffmpeg is very simple, just use the following sentence if you use the default parameters:

Of course, ffmpeg supports many parameters, such as what encoder to use, specify the bit rate, etc...... I won't go into detail here (the point is that I don't understand hhh either)

After understanding how to use this powerful tool, let's learn how to use it in C#~~

It's also very simple, just use Process to start a process to call ffmpeg.

Directly on the code, I wrote a console program, received two parameters, namely the input file and the output file (both absolute paths), and then called ffmpeg for transcoding, and finally completed the transcoding and output the corresponding operation information.

Run result:

Transcoding Success:









Previous:Coding Efficient: Java Development Manual
Next:Construction organization design + construction software + graduation project
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com