Home > Tips and Tricks > Extracting audio from a video using ffmpeg.. and cutting a part of a video

Extracting audio from a video using ffmpeg.. and cutting a part of a video

Friday, January 2nd, 2015

This post will mainly serve as a reminder for the next time I ever need this. The goal is absolutely NOT to create a detailed guide.. ;-)

To extract the audio track out of a video:

ffmpeg -i input.mp4 -c:a copy -vn -sn output.m4a

 

To cut a part of a video (no re-encoding):

ffmpeg -i VID_20140214_171208.mp4 -vcodec copy -ss 00:10:00 -t 00:00:08 result.mp4

The command above cuts from 10:00 and takes 8 seconds of video.

If you enjoyed this post, make sure you subscribe to my RSS feed!

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment