FFMPEG commands



ffmpeg [global_options] {[input_file_options] -i input_url} ... 
{[output_file_optionsoutput_url} ...

ffmpeg -i rtsp://admin:1qaz2wsx@192.168.1.64:554/Streaming/Channels/101?transportmode=unicast -vcodec copy -r 60 -t 3540 -y hello_file.mp4

-f fmt (input/output)
Force input or output file format. The format is normally auto detected for input files and guessed from the file extension for output files, so this option is not needed in most cases.

-i url (input)
input file url

-y (global)
Overwrite output files without asking.

> set codec for video
- vcodec copy
copy parameter makes ffmpeg omit the decoding and encoding step for the specified stream, so it does only demuxing and muxing.


>set bitrate 64 kbit/s:
 -b:v 64k -bufsize 64k

> framerate fps
 -r 60

> duration set
-t duration (input/output) in secs
-multipleformate available
https://www.ffmpeg.org/ffmpeg-utils.html#time-duration-syntax

>
ffmpeg -r 1 -i input.m2v -r 24 output.avi
force fps to 1 for source and 24 to output



-version
Show version.

-formats
Show available formats (including devices).

-demuxers
Show available demuxers.

-muxers
Show available muxers.

-devices
Show available devices.

-codecs
Show all codecs known to libavcodec.

-decoders
Show available decoders.

-encoders
Show all available encoders.

-bsfs
Show available bitstream filters.

-protocols
Show available protocols.

-filters
Show available libavfilter filters.


source
Thnks to ffmpeg.org
https://www.ffmpeg.org/ffmpeg.html

Share this

Related Posts

Previous
Next Post »