0% found this document useful (0 votes)
18 views

Some Basics For Handling Multimedia

The document provides instructions for compressing MP4 and AVI video files using the ffmpeg command line tool. It explains how to change the directory to where the video files are located and run ffmpeg commands with the "-i" input and "-codec" output options to compress the files to a target folder. Additional ffmpeg commands are listed to set the number of video frames, frame rate, frame size, and extract just the audio track.

Uploaded by

Siya Ul Sha
Copyright
© Public Domain
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Some Basics For Handling Multimedia

The document provides instructions for compressing MP4 and AVI video files using the ffmpeg command line tool. It explains how to change the directory to where the video files are located and run ffmpeg commands with the "-i" input and "-codec" output options to compress the files to a target folder. Additional ffmpeg commands are listed to set the number of video frames, frame rate, frame size, and extract just the audio track.

Uploaded by

Siya Ul Sha
Copyright
© Public Domain
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Some basics for handling multimedia data

To compress your MP4 Video cd to the target folder and run this command: ffmpeg -i input.mp4 -acodec mp2 output.mp4 Replace "input.mp4" with the name of your mp4 video. The compressed video will be saved in the current folder with name: output.mp4 To compress your AVI Video In the Terminal cd (change directory) to the folder where the avi file and run this command: ffmpeg -i input.avi -vcodec msmpeg4v2 output.avi Replace "input.avi" with the name of your avi video. The compressed video will be created in the current folder with name: output.avi. Use mp4, avi or other supported extension for output file to convert into that format. some useful commands:-vframes number (output) will set the number of video frames to record. This is an alias for -frames:v. -r[:stream_specifier] fps (input/output,per-stream) will set frame rate (Hz value, fraction or abbreviation), (default = 25). -s[:stream_specifier] size (input/output,per-stream) will set frame size. The format is wxh (default - same as source). eg: ffmpeg -i input.mpg -s "320x240" output.mpg To copy audio track alone: ffmpeg -i input.mp4 output.wav

You might also like