I'd like to be able to compress the video in a way to help improve upload times.
In reading the docs for FFMpeg Kit, using React Native, there is a basic execute
command string of '-i file1.mp4 -c:v mpeg4 file2.mp4'
... I can guess at what some of this means, in terms of input & output file names based on the ffMPEG docs, however, some of these options I am not sure of.
Like why is there a -i
flag prefix? Is this "input"?
Why is there -c:v
? Is this "convert video"?
What if I want to reduce frame rate, or change size of video?
The TS def is just a string...
Is there a good place to understand what the official docs options map to the strings? I think
-i
is to set an input.-c:v
is to set the video codec for an output.-r
sets the frame rate (or there are other options: trac.ffmpeg.org/wiki/ChangingFrameRate). For scaling, there is thescale
video filter with many options: trac.ffmpeg.org/wiki/Scaling