Extract audio from video file using MPV

By xngo on February 26, 2019

# Extract audio from video file.
mpv videofile.avi -o audiofile.mp3 --no-video
 
# Extract audio from video file at a specific time.
mpv videofile.avi -o audiofileAtSpecificTime.mp3 --no-video --start=00:01:00 --end=00:03:35
 
# Extract audio from video file at a specific time for a relative length.
mpv videofile.avi -o audiofile10Seconds.mp3 --no-video --start=0 --length=10

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.