How it works...

The QProcess class provided by Qt is used to start external programs and communicate with them. In this case, we started ffmpeg.exe, located in C:/FFmpeg/bin/, as a process and started communicating with it. We also sent it a set of arguments to tell it what to do when it started. The arguments we used in this example are relatively basic: we only told FFmpeg the path to the source image and the output filename.

For more information regarding the argument settings available in FFmpeg, check out: https://www.ffmpeg.org/ffmpeg.html.

FFmpeg does more than just convert video files. You can also use it to convert audio files and images.

For more information regarding all the formats supported by FFmpeg, check out: 
https://www.ffmpeg.org/general.html#File-Formats.

Other than that, you can also play a video or audio file by running ffplay.exe, located in C:/FFmpeg/bin, or print out the information of the video or audio file in a human-readable fashion by running ffprobe.exe.

Check out FFmpeg's full documentation at https://www.ffmpeg.org/about.html.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset