Some Basics For Handling Multimedia
Some Basics For Handling Multimedia
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