Posts

Showing posts from May, 2016

FFMPEG Command Examples (Useful FFMPEG Commands)

Some of these are taken from here and here  and here . Good beginner guide:  here Nice set of examples:  here FFMPEG Audio Manipulation commands: https://trac.ffmpeg.org/wiki/AudioChannelManipulation Shorten a file.  Start at 0, and encode 180 seconds.  Copy ALL streams, not just the first or "best" of each type, which is the FFMPEG default: ffmpeg -i input.mpg -ss 00:00:00 -t 180 -map 0 -codec copy output.mpg Convert MP4 frames to Annex B: ffmpeg -i input.mov -codec:v copy -codec:a copy -bsf:v h264_mp4toannexb -f mp4 -y output.mp4 Get information about a media file: ffmpeg -i video.avi Extract (demux) the audio track from a video file: ffmpeg -i video.mts -acodec copy -vn audio.ac3 Extract (demux) the video track from a video file: ffmpeg -i video.mts -vcodec copy -an -f h264 ffNT.h264 Merge an audio and a video track (mux): ffmpeg -i video.h264 -i audio.ac3 -vcodec copy -acodec copy videoaudio.ts Resize an original Full-HD (16:9) video fi