Changes between Version 12 and Version 13 of Creating multiple outputs
- Timestamp:
- Oct 10, 2013, 3:48:16 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Creating multiple outputs
v12 v13 77 77 Another option is to output from FFmpeg to "-" then to pipe that to a "tee" command, which can send it to multiple other processes, for instance 2 different other ffmpeg processes for encoding (this may save time, as if you do different encodings, and do the encoding in 2 different simultaneous processes, it might do encoding more in parallel than elsewise). Un benchmarked, however, see also [http://ffmpeg-users.933282.n4.nabble.com/Multiple-output-files-td2076623.html here]. 78 78 79 = Multiple encodings for same input = 80 81 If you had one input, then run it through some filters, then encode it to (for instance) several different bitrates to multiple files, then you may be able to save processing power by performing the filtering only once. This can be accomplished via the "map" feature, for instance, in this example the rescaling is performed only once, then encoded to 2 outputs: 82 83 {{{ 84 ffmpeg -i input -an -filter_complex "[0] scale=1000:1000,split=2 85 [a] [b]" -y -map "[a]" output1.avi -map "[b]" output2.avi 86 }}} 87 88 Again, you could use the "tee" command, see Parallel Encoding, to possibly do this more quickly, but this example at least avoids scaling twice. 89 79 90 = See also = 80 91