avconv Command

Audio and Video encoder


Basic Usage:
avconv -i sablonlar.ogv -ss 00:00:00 -t 00:00:17 output.mp4

Examples:
Recording defined time of video with converted format:
avconv -i sablonlar.ogv -ss 00:00:00 -t 00:00:17 output.mp4
Therewithal we converted ogv format to mp4.
We selected input video with -i parameter.
We selected start time of video with -ss parameter.
We selected how long would make recorded from start time of video with -t parameter.
Lastly we described output video name(output.mp4).


Change your video to gif animation:
avconv -i output.mp4 -s 640x480 -vf format=rgb24 -pix_fmt rgb24 -r 6 output.gif
We selected input video with -i parameter.
We described codec formats with -vf format=rgb24 ve -pix_fmt rgb24 parameters.
We selected how many pictures would record in one second with -r parameter.
Lastly we named output picture(output.gif)
We can optimize output gif with GIMP:
From GIMP menu: Filters-Animation-Optimize(for GIF)

Record audio of video:
avconv -i inputvideo.mp4 -vn -f wav sound.wav

Remove audio of video:
avconv -i inputvideo.avi -vcodec libx264 -an -f mp4 video.mp4

Convert video format:
avconv -i hizala.mp4 output.mkv

Convert audio format:
avconv -i inputaudio.mp3 newfile.wav

Join video and voice:
avconv -i ses2.mp3 -i inputvideo.mp4 -acodec mp3 output.mp4
avconv -i sound.wav -i video.avi the-output-file.mkv

Take pictures from video:
avconv -i inputvideo.mp4 -r 1 -s 1366x768 -f image2 image-%03d.png

Rotate video:
avconv -i input.avi -vcodec libx264 -vf "transpose=cclock" output.avi

Add audio to picture:
avconv -loop 1 -i logo1.png -i audio.mp3 -shortest -acodec copy -f mov output.mov

avconv --help
Display help screen.


Above process applied on "GNU bash, version 4.3.11(1)-release (i686-pc-linux-gnu)"
Date of Article:

For example if you are Linux Mint or Ubuntu user, you must install libav-tools for using avconv command.
sudo apt-get install libav-tools

Paylaşın:





HOME GNU/LINUX Commands TURKISH