ffmpeg -f concat -safe 0 -i mylist.txt -c copy output_file
+
+
+
+
+
+
+ Set stream properties
+ Find undetermined or unknown stream properties
+ These examples use QuickTime inputs and outputs. The strategy will vary or may not be possible in other file formats. In the case of these examples it is the intention to make a lossless copy while clarifying an unknown characteristic of the stream.
+ ffprobe input_file -show_streams
+
+ - ffprobe
- starts the command
+ - input_file
- path, name and extension of the input file
+ - -show_streams
- Shows metadata of stream properties
+
+ Values that are set to 'unknown' and 'undetermined' may be unspecified within the stream. An unknown aspect ratio would be expressed as '0:1'. Streams with many unknown properties may have interoperability issues or not play as intended. In many cases, an unknown or undetermined value may be accurate because the information about the source is unclear, but often the value is intended to be known. In many cases the stream will played with an assumed value if undetermined (for instance a display_aspect_ratio of '0:1' may be played as 'WIDTH:HEIGHT'), but this may or may not be what is intended. Use carefully.
+
+ Set aspect ratio
+ If the display_aspect_ratio is set to '0:1' it may be clarified with the -aspect option and stream copy.
+ ffmpeg -i input_file -c copy -map 0 -aspect DAR_NUM:DAR_DEN output_file
+
+ - ffmpeg
- starts the command
+ - -i input_file
- path, name and extension of the input file
+ - -c copy
- Usings stream copy for all streams
+ - -map 0
- Tells ffmpeg to map all streams of the input to the output.
+ - -aspect DAR_NUM:DAR_DEN
- Replace DAR_NUM with the display aspect ratio numerator and DAR_DEN with the display aspect ratio denominator, such as -aspect 4:3 or -aspect 16:9.
+ - output_file
- path, name and extension of the output file
+
+ Adding other stream properties.
+ Other properties may be clarified in a similar way. Replace -aspect and its value with other properties such as shown in the options below. Note that setting color values in QuickTime requires that -movflags write_colr is set.
+
+ - -color_primary VALUE -movflags write_colr
- Set a new color_primary value. The vocabulary for values is at ffmpeg.
+ - -color_trc VALUE -movflags write_colr
- Set a new color_transfer value. The vocabulary for values is at ffmpeg.
+ - -field_order VALUE
- Set interlacement values. The vocabulary for values is at ffmpeg.
+
+
+
+
+
+
+
+