remove codecs
This commit is contained in:
parent
808ec21d37
commit
e613676816
6 changed files with 66 additions and 83 deletions
|
@ -20,29 +20,29 @@ ffmpeg -i INPUT.mp4 OUTPUT.mkv
|
|||
Usage: `ffmpeg [global_options] {[input_file_options] -i input_url} ... {[output_file_options] output_url} ... `
|
||||
|
||||
### Options
|
||||
| Option | Description |
|
||||
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `-i [input]` | Input a file |
|
||||
| `-map [input]:[stream]` | Map input streams |
|
||||
| `-c:[stream]:[input], -codec:[stream]:[input] [codec]` | Specify codec. If `codec` is `copy` stream will not be reencoded. |
|
||||
| `-t duration (input/output)` | When used as an input option (before `-i`), limit the duration of data read from the input file. |
|
||||
| `-to position (input/output)` | Stop writing the output or reading the input at position. |
|
||||
| `-ss position (input/output)` | When used as an input option (before `-i`), seeks in this input file to position. Note that in most formats it is not possible to seek exactly, so ffmpeg will seek to the closest seek point before position. |
|
||||
| `-sseof position (input)` | Like the `-ss` option but relative to the "end of file". That is negative values are earlier in the file, 0 is at EOF. |
|
||||
| `-itsoffset offset (input)` | Set the input time offset.<br>offset must be a time duration specification.<br>The offset is added to the timestamps of the input files. Specifying a positive offset means that the corresponding streams are delayed by the time duration specified in offset. |
|
||||
| `-itsscale scale (input,per-stream)` | Rescale input timestamps. scale should be a floating point number. |
|
||||
| `-timestamp date (output)` | Set the recording timestamp in the container.<br>date must be a date specification. |
|
||||
| `-metadata[:metadata_specifier] key=value (output,per-metadata)` | Set a metadata key/value pair.<br>An optional metadata_specifier may be given to set metadata on streams, chapters or programs.<br>This option overrides metadata set with `-map_metadata`. It is also possible to delete metadata by using an empty value.<br>For example, for setting the title in the output file: `ffmpeg -i in.avi -metadata title="my title" out.flv`<br>To set the language of the first audio stream: `ffmpeg -i INPUT -metadata:s:a:0 language=eng OUTPUT` |
|
||||
| `-filter[:stream_specifier] filtergraph (output,per-stream)` | Create the filtergraph specified by filtergraph and use it to filter the stream. |
|
||||
| `-frames[:stream_specifier] framecount (output,per-stream)` | Stop writing to the stream after framecount frames. |
|
||||
| `-q[:stream_specifier] q (output,per-stream), -qscale[:stream_specifier] q (output,per-stream)` | Use fixed quality scale (VBR). The meaning of q/qscale is codec-dependent. If qscale is used without a stream_specifier then it applies only to the video stream, this is to maintain compatibility with previous behavior and as specifying the same codec specific value to 2 different [codecs](../../files/media/Codecs.md) that is audio and video generally is not what is intended when no stream_specifier is used. |
|
||||
| Option | Description |
|
||||
| ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `-i [input]` | Input a file |
|
||||
| `-map [input]:[stream]` | Map input streams |
|
||||
| `-c:[stream]:[input], -codec:[stream]:[input] [codec]` | Specify codec. If `codec` is `copy` stream will not be reencoded. |
|
||||
| `-t duration (input/output)` | When used as an input option (before `-i`), limit the duration of data read from the input file. |
|
||||
| `-to position (input/output)` | Stop writing the output or reading the input at position. |
|
||||
| `-ss position (input/output)` | When used as an input option (before `-i`), seeks in this input file to position. Note that in most formats it is not possible to seek exactly, so ffmpeg will seek to the closest seek point before position. |
|
||||
| `-sseof position (input)` | Like the `-ss` option but relative to the "end of file". That is negative values are earlier in the file, 0 is at EOF. |
|
||||
| `-itsoffset offset (input)` | Set the input time offset.<br>offset must be a time duration specification.<br>The offset is added to the timestamps of the input files. Specifying a positive offset means that the corresponding streams are delayed by the time duration specified in offset. |
|
||||
| `-itsscale scale (input,per-stream)` | Rescale input timestamps. scale should be a floating point number. |
|
||||
| `-timestamp date (output)` | Set the recording timestamp in the container.<br>date must be a date specification. |
|
||||
| `-metadata[:metadata_specifier] key=value (output,per-metadata)` | Set a metadata key/value pair.<br>An optional metadata_specifier may be given to set metadata on streams, chapters or programs.<br>This option overrides metadata set with `-map_metadata`. It is also possible to delete metadata by using an empty value.<br>For example, for setting the title in the output file: `ffmpeg -i in.avi -metadata title="my title" out.flv`<br>To set the language of the first audio stream: `ffmpeg -i INPUT -metadata:s:a:0 language=eng OUTPUT` |
|
||||
| `-filter[:stream_specifier] filtergraph (output,per-stream)` | Create the filtergraph specified by filtergraph and use it to filter the stream. |
|
||||
| `-frames[:stream_specifier] framecount (output,per-stream)` | Stop writing to the stream after framecount frames. |
|
||||
| `-q[:stream_specifier] q (output,per-stream), -qscale[:stream_specifier] q (output,per-stream)` | Use fixed quality scale (VBR). The meaning of q/qscale is codec-dependent. If qscale is used without a stream_specifier then it applies only to the video stream, this is to maintain compatibility with previous behavior and as specifying the same codec specific value to 2 different codecs that is audio and video generally is not what is intended when no stream_specifier is used. |
|
||||
| `-attach filename (output)` | Add an attachment to the output file. This is supported by a few formats like [Matroska](../../files/media/Matroska.md) for e.g. fonts used in rendering subtitles. Attachments are implemented as a specific type of stream, so this option will add a new stream to the file. It is then possible to use per-stream options on this stream in the usual way. Attachment streams created with this option will be created after all the other streams (i.e. those created with `-map`or automatic mappings). <br>Note that for Matroska you also have to set the mimetype metadata tag: `ffmpeg -i INPUT -attach DejaVuSans.ttf -metadata:s:2 mimetype=application/x-truetype-font out.mkv` |
|
||||
| `-dump_attachment[:stream_specifier] filename (input,per-stream)` | Extract the matching attachment stream into a file named filename. If filename is empty, then the value of the filename metadata tag will be used. <br>E.g. to extract the first attachment to a file named ’out.ttf’: `ffmpeg -dump_attachment:t:0 out.ttf -i INPUT`<br>To extract all attachments to files determined by the filename tag: `ffmpeg -dump_attachment:t "" -i INPUT` |
|
||||
| `-dump_attachment[:stream_specifier] filename (input,per-stream)` | Extract the matching attachment stream into a file named filename. If filename is empty, then the value of the filename metadata tag will be used. <br>E.g. to extract the first attachment to a file named ’out.ttf’: `ffmpeg -dump_attachment:t:0 out.ttf -i INPUT`<br>To extract all attachments to files determined by the filename tag: `ffmpeg -dump_attachment:t "" -i INPUT` |
|
||||
|
||||
### Video Options
|
||||
| Option | Description |
|
||||
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `-r[:stream_specifier] fps (input/output,per-stream)` | Set frame rate (Hz value, fraction or abbreviation). |
|
||||
| `-r[:stream_specifier] fps (input/output,per-stream)` | Set frame rate (Hz value, fraction or abbreviation). |
|
||||
| `-aspect[:stream_specifier] aspect (output,per-stream)` | Set the video display aspect ratio specified by aspect.<br>aspect can be a floating point number string, or a string of the form num:den, where num and den are the numerator and denominator of the aspect ratio. For example "4:3", "16:9", "1.3333", and "1.7777" are valid argument values.<br>If used together with -vcodec copy, it will affect the aspect ratio stored at container level, but not the aspect ratio stored in encoded frames, if it exists. |
|
||||
| `-pix_fmt[:stream_specifier] format (input/output,per-stream)` | Set pixel format. Use -pix_fmts to show all the supported pixel formats. If the selected pixel format can not be selected, ffmpeg will print a warning and select the best pixel format supported by the encoder. If pix_fmt is prefixed by a +, ffmpeg will exit with an error if the requested pixel format can not be selected, and automatic conversions inside filtergraphs are disabled. If pix_fmt is a single +, ffmpeg selects the same pixel format as the input (or graph output) and automatic conversions are disabled. |
|
||||
|
||||
|
@ -55,7 +55,7 @@ Usage: `ffmpeg [global_options] {[input_file_options] -i input_url} ... {[output
|
|||
### Advanced Options
|
||||
| Option | Description |
|
||||
| ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `-ignore_unknown` | Ignore input streams with unknown type instead of failing if copying such streams is attempted. |
|
||||
| `-ignore_unknown` | Ignore input streams with unknown type instead of failing if copying such streams is attempted. |
|
||||
| `-copy_unknown` | Allow input streams with unknown type to be copied instead of failing if copying such streams is attempted. |
|
||||
| `-map_chapters input_file_index (output)` | Copy chapters from input file with index input_file_index to the next output file. If no chapter mapping is specified, then chapters are copied from the first input file with at least one chapter. Use a negative file index to disable any chapter copying. |
|
||||
|
||||
|
@ -218,7 +218,7 @@ Usage: `ffprobe [options] [input]`
|
|||
| Option | Description |
|
||||
| ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `-hide_banner` | Suppress printing banner. |
|
||||
| `-output_format, -of, -print_format writer_name[=writer_options]` | Set the output printing format.<br> writer_name specifies the name of the writer, and writer_options specifies the options to be passed to the writer.<br>For example for printing the output in [JSON](../../files/JSON.md) format, specify:<br>`-output_format json` |
|
||||
| `-output_format, -of, -print_format writer_name[=writer_options]` | Set the output printing format.<br> writer_name specifies the name of the writer, and writer_options specifies the options to be passed to the writer.<br>For example for printing the output in [JSON](../../files/JSON.md) format, specify:<br>`-output_format json` |
|
||||
| `-select_streams stream_specifier` | Select only the streams specified by stream_specifier. This option affects only the options related to streams (e.g. show_streams, show_packets, etc.).<br>For example to show only audio streams, you can use the command:<br>`ffprobe -show_streams -select_streams a INPUT`<br>To show only video packets belonging to the video stream with index 1:<br>`ffprobe -show_packets -select_streams v:1 INPUT` |
|
||||
| `-show_error` | Show information about the error found when trying to probe the input.<br>The error information is printed within a section with name "ERROR". |
|
||||
| `-show_format` | Show information about the container format of the input multimedia stream.<br>All the container format information is printed within a section with name "FORMAT". |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue