|
|
@ -86,11 +86,23 @@ The transcoding process in @command{avconv} for each output can be described by |
|
|
|
the following diagram: |
|
|
|
the following diagram: |
|
|
|
|
|
|
|
|
|
|
|
@example |
|
|
|
@example |
|
|
|
_______ ______________ _________ ______________ ________ |
|
|
|
_______ ______________ |
|
|
|
| | | | | | | | | | |
|
|
|
| | | | |
|
|
|
| input | demuxer | encoded data | decoder | decoded | encoder | encoded data | muxer | output | |
|
|
|
| input | demuxer | encoded data | decoder |
|
|
|
| file | ---------> | packets | ---------> | frames | ---------> | packets | -------> | file | |
|
|
|
| file | ---------> | packets | -----+ |
|
|
|
|_______| |______________| |_________| |______________| |________| |
|
|
|
|_______| |______________| | |
|
|
|
|
|
|
|
v |
|
|
|
|
|
|
|
_________ |
|
|
|
|
|
|
|
| | |
|
|
|
|
|
|
|
| decoded | |
|
|
|
|
|
|
|
| frames | |
|
|
|
|
|
|
|
|_________| |
|
|
|
|
|
|
|
________ ______________ | |
|
|
|
|
|
|
|
| | | | | |
|
|
|
|
|
|
|
| output | <-------- | encoded data | <----+ |
|
|
|
|
|
|
|
| file | muxer | packets | encoder |
|
|
|
|
|
|
|
|________| |______________| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@end example |
|
|
|
@end example |
|
|
|
|
|
|
|
|
|
|
@ -118,11 +130,11 @@ the same type. In the above diagram they can be represented by simply inserting |
|
|
|
an additional step between decoding and encoding: |
|
|
|
an additional step between decoding and encoding: |
|
|
|
|
|
|
|
|
|
|
|
@example |
|
|
|
@example |
|
|
|
_________ __________ ______________ |
|
|
|
_________ __________ ______________ |
|
|
|
| | | | | | |
|
|
|
| | simple | | | | |
|
|
|
| decoded | simple filtergraph | filtered | encoder | encoded data | |
|
|
|
| decoded | fltrgrph | filtered | encoder | encoded data | |
|
|
|
| frames | -------------------> | frames | ---------> | packets | |
|
|
|
| frames | ----------> | frames | ---------> | packets | |
|
|
|
|_________| |__________| |______________| |
|
|
|
|_________| |__________| |______________| |
|
|
|
|
|
|
|
|
|
|
|
@end example |
|
|
|
@end example |
|
|
|
|
|
|
|
|
|
|
@ -131,10 +143,10 @@ Simple filtergraphs are configured with the per-stream @option{-filter} option |
|
|
|
A simple filtergraph for video can look for example like this: |
|
|
|
A simple filtergraph for video can look for example like this: |
|
|
|
|
|
|
|
|
|
|
|
@example |
|
|
|
@example |
|
|
|
_______ _____________ _______ _____ ________ |
|
|
|
_______ _____________ _______ ________ |
|
|
|
| | | | | | | | | | |
|
|
|
| | | | | | | | |
|
|
|
| input | ---> | deinterlace | ---> | scale | ---> | fps | ---> | output | |
|
|
|
| input | ---> | deinterlace | ---> | scale | ---> | output | |
|
|
|
|_______| |_____________| |_______| |_____| |________| |
|
|
|
|_______| |_____________| |_______| |________| |
|
|
|
|
|
|
|
|
|
|
|
@end example |
|
|
|
@end example |
|
|
|
|
|
|
|
|
|
|
|