Audio Processing Using FFMPEG
source link: https://jdhao.github.io/2021/11/10/ffmpeg_audio_processing/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Audio Processing Using FFMPEG
Collected tips on audio processing with ffmpeg.
Remove audio from a video
To remove audio from a video file, i.e., muting the video, run the following command:
ffmpeg -i input.mp4 -c copy -an input-silent.mp4
Extract audio from ffmpeg
ffmpeg -i input.mp4 -vn -acodec copy out.acc
-vn
: do not use video-acodec copy
: copy the audio stream (equivalent to-codec:a copy
, see stream specifier)
Extract audio in a time range
ffmpeg -i input.mp4 -vn -acodec copy -ss 00:01:00 -t 30 out.aac
-ss
: the start time to process the video, in above case, we start from 1 minute-t
: the video duration to process, in this case, we process 30 seconds of video.
There is also a -to
option which specifies the stop time to process the video. So the above command can also be written as:
ffmpeg -i input.mp4 -vn -acodec copy -ss 00:01:00 -to 00:01:30 out.aac
Recommend
-
29
In my spare time I’m an emergency services volunteer, and one of the tasks our unit has is to run the radio network and keep track of what’s happening. This can be a pretty stressful job, especially when there’s lots of ra...
-
34
Introduction Sometimes, I would need to generate GIFs from videos of certain file size limits, convert from one video format to another. While there are lots of online conversion tools available, they don’t...
-
13
Pitch-perfect Audio Processing: A Wasm/Rust TutorialSupported by all modern browsers, WebAssembly (or “Wasm”) is transforming the way we develop user experiences for the web. It is a simple binary executable format that allows libraries or ev...
-
15
Real-time video processing with Rust, FFmpeg and OpenCVBy Miguel PalhasOn December 2, 2020
-
10
ffmpeg: make a video with a static image and an audio file July 6th, 2021. Tagged: ...
-
11
5 Top Audio Processing Libraries for JavaScriptBest libraries for your web app’s audio processingImplementing web applications with high-fidelity audio processing can be a challenging task. Bu...
-
3
-
7
Merge Instagram Post Live Video and Audio in ffmpeg March 07, 2018 ...
-
9
What is Sound?Sound is a wave of air particles. Sound is a vibration of air particles that travel in a specific way, creating a pressure difference, and this sensation comes to human ears. Sound travels in the fo...
-
7
To convert audio mp3 to MP4 by ffmpeg, use the following command ffmpeg -f lavfi -i color=c=black:s=1280x720:r=5 -i audio.mp3 -crf 0 -c:a copy -shortest output.mp4 Description This generates mp4 fo...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK