ffmpeg QAudio
时间: 2023-10-07 20:06:24 浏览: 43
FFmpeg is a popular open-source software library and command-line tool used for handling multimedia data. It supports various audio and video formats, encoding, decoding, transcoding, and streaming.
To extract audio from a video file using FFmpeg, you can use the following command:
```
ffmpeg -i input_video.mp4 -vn -acodec copy output_audio.mp3
```
Here's what each parameter does:
- `-i input_video.mp4`: Specifies the input video file.
- `-vn`: Disables video recording to only extract the audio.
- `-acodec copy`: Copies the audio stream without re-encoding.
- `output_audio.mp3`: Specifies the output audio file.
You can replace `input_video.mp4` with the path to your desired video file and `output_audio.mp3` with the desired name and format for your output audio file.
Feel free to ask if you have any further questions!