V 
VPS Hosting Referral Code PCGPDB


MAN PAGES INDEX
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 31, 2010, 09:12:29 AM

Login with username, password and session length
« previous next »
Pages: [1] Print
Author Topic: ffmpeg  (Read 493 times)
bashconsole
Administrator
Newbie
*****
Posts: 30


View Profile Email
« on: May 09, 2009, 10:58:10 PM »

NAME
       ffmpeg - FFmpeg video converter

SYNOPSIS
       ffmpeg [[infile options][-i infile]]... {[outfile options] outfile}...

DESCRIPTION
       If no input file is given, audio/video grabbing is done.

       As a general rule, options are applied to the next specified file. Therefore, order is important, and
       you can have the same option on the command line multiple times. Each occurrence is then applied to the
       next input or output file.

       * To set the video bitrate of the output file to 64kbit/s:

               ffmpeg -i input.avi -b 64k output.avi

       * To force the frame rate of the input and output file to 24 fps:

               ffmpeg -r 24 -i input.avi output.avi

       * To force the frame rate of the output file to 24 fps:

               ffmpeg -i input.avi -r 24 output.avi

       * To force the frame rate of input file to 1 fps and the output file to 24 fps:

               ffmpeg -r 1 -i input.avi -r 24 output.avi

       The format option may be needed for raw input files.

       By default, FFmpeg tries to convert as losslessly as possible: It uses the same audio and video parame-
       ters for the outputs as the one specified for the inputs.

http://bashconsole.org/man.1.ffmpeg
Logged
bashconsole
Administrator
Newbie
*****
Posts: 30


View Profile Email
« Reply #1 on: May 09, 2009, 11:09:47 PM »

Extract an image SCREENSHOT from a Video with ffmpeg
Code:
ffmpeg  -itsoffset -3  -i sample.mov -vcodec png -vframes 1 -an -f rawvideo -s 320x240 test.png
Code:
#!/bin/bash

ffmpeg  -itsoffset -3  -i $1 -vcodec png -vframes 1 -an -f rawvideo -s 320x240 $1.png


Convert to Flash Video .flv format script "flvconvert"
Code:
#!/bin/bash

ffmpeg -i $1 -ar 44100 -ab 128 -b 768000 $1.flv
Usage
./flvconvert example.mpg

Logged
Pages: [1] Print
« previous next »
Jump to:  

Page created in 0.044 seconds with 21 queries. (Pretty URLs adds 0.011s, 2q)