- FFMPEG CONCAT DIFFERENT ASPECT MOVIE
- FFMPEG CONCAT DIFFERENT ASPECT PLUS
- FFMPEG CONCAT DIFFERENT ASPECT TV
Merging video and audio, with audio re-encoding
FFMPEG CONCAT DIFFERENT ASPECT TV
Record fullscreen TV image (ziggo stream):įfmpeg -video_size 1600x900 -framerate 30 -f x11grab -i :0.0 -c:v libx264 -qp 0 -preset ultrafast -f pulse -ac 2 -i default capture.mkvįfmpeg -video_size 1920x1080 -framerate 15 -f x11grab -i :0.0 -f pulse -ac 2 -i default -c:v libx264 -qp 0 -preset ultrafast capture.mkv If you need audio too you can use ALSA (see Capture/ALSA for more info):įfmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f alsa -ac 2 -i hw:0 output.mkvįfmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f pulse -ac 2 -i default output.mkv This will grab the image from desktop, starting with the upper-left corner at (x=100, y=200) with the width and height of 1024x768. To record video with a webcam ffmpeg -f video4linux2 -s 640x480 -r 20 -i /dev/video0 -f m4v out.m4v To take a picture with a webcam ffmpeg -f video4linux2 -i /dev/video0 -vframes 1 test.jpeg To list available formats (supported pixel formats, video formats, and frame sizes) for a particular input device: $ ffmpeg -f v4l2 -list_formats all -i /dev/video0 # ffmpeg -i 00090.MTS -f avi -b 6000k -ab 192k -vcodec mpeg2video 00090.mpgĮxample command to preserve EXIF data and timestamps $ for i in *.MOV do ffmpeg -i "$i" -preset slow -crf 27 "$.jpg cnt=$((cnt+1)) done # ffmpeg -target dvd|vcd|svcd|dv|dv50 -> all options are set automagically, but you can overrule as long as they don't conflict w/ the standard This is useful for Variable Bit Rate (VBR) encoded files. The above will extract 3 minutes of mpg file from the 1 minute mark using same quality as the source file. # ffmpeg -vcodec copy -ss 00:01:00 -t 00:03:00 -i infile.mpg outfile.mpg -> this cut the file from 1 minute to 4 minutes (t=duration)
FFMPEG CONCAT DIFFERENT ASPECT MOVIE
# ffmpeg -i -> show info about movie file # ffmpeg -acodec libmp3lame -> use mp3 audio codec Now, if you want to resize it for some reason (show on mobile phone): MP4, for instance to show it on a mobile device Android, or to play it om xbmc, or to import into kdenlive.įor a whole directory, type: IFS=$(echo -en "\n\b") for i in *.MTS do ffmpeg -i "$i" -vcodec mpeg4 -b:v 15M -acodec libmp3lame -b:a 192k "$i.mp4" doneįind.
FFMPEG CONCAT DIFFERENT ASPECT PLUS