| OLD | NEW | 
|---|
| 1 @chapter Audio Filters | 1 @chapter Audio Filters | 
| 2 @c man begin AUDIO FILTERS | 2 @c man begin AUDIO FILTERS | 
| 3 | 3 | 
| 4 When you configure your FFmpeg build, you can disable any of the | 4 When you configure your FFmpeg build, you can disable any of the | 
| 5 existing filters using --disable-filters. | 5 existing filters using --disable-filters. | 
| 6 The configure output will show the audio filters included in your | 6 The configure output will show the audio filters included in your | 
| 7 build. | 7 build. | 
| 8 | 8 | 
| 9 Below is a description of the currently available audio filters. | 9 Below is a description of the currently available audio filters. | 
| 10 | 10 | 
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 183 # trembling effect | 183 # trembling effect | 
| 184 "crop=in_w/2:in_h/2:(in_w-out_w)/2+((in_w-out_w)/2)*sin(n/10):(in_h-out_h)/2 +((
     in_h-out_h)/2)*sin(n/7)" | 184 "crop=in_w/2:in_h/2:(in_w-out_w)/2+((in_w-out_w)/2)*sin(n/10):(in_h-out_h)/2 +((
     in_h-out_h)/2)*sin(n/7)" | 
| 185 | 185 | 
| 186 # erratic camera effect depending on timestamp and position | 186 # erratic camera effect depending on timestamp and position | 
| 187 "crop=in_w/2:in_h/2:(in_w-out_w)/2+((in_w-out_w)/2)*sin(t*10):(in_h-out_h)/2 +((
     in_h-out_h)/2)*sin(t*13)" | 187 "crop=in_w/2:in_h/2:(in_w-out_w)/2+((in_w-out_w)/2)*sin(t*10):(in_h-out_h)/2 +((
     in_h-out_h)/2)*sin(t*13)" | 
| 188 | 188 | 
| 189 # set x depending on the value of y | 189 # set x depending on the value of y | 
| 190 "crop=in_w/2:in_h/2:y:10+10*sin(n/10)" | 190 "crop=in_w/2:in_h/2:y:10+10*sin(n/10)" | 
| 191 @end example | 191 @end example | 
| 192 | 192 | 
|  | 193 @section cropdetect | 
|  | 194 | 
|  | 195 Auto-detect crop size. | 
|  | 196 | 
|  | 197 Calculate necessary cropping parameters and prints the recommended | 
|  | 198 parameters through the logging system. The detected dimensions | 
|  | 199 correspond to the non-black area of the input video. | 
|  | 200 | 
|  | 201 It accepts the syntax: | 
|  | 202 @example | 
|  | 203 cropdetect[=@var{limit}:@var{round}[:@var{reset}]] | 
|  | 204 @end example | 
|  | 205 | 
|  | 206 @table @option | 
|  | 207 | 
|  | 208 @item limit | 
|  | 209 Threshold, which can be optionally specified from nothing (0) to | 
|  | 210 everything (255), defaults to 24. | 
|  | 211 | 
|  | 212 @item round | 
|  | 213 Value which the width/height should be divisible by, defaults to | 
|  | 214 16. The offset is automatically adjusted to center the video. Use 2 to | 
|  | 215 get only even dimensions (needed for 4:2:2 video). 16 is best when | 
|  | 216 encoding to most video codecs. | 
|  | 217 | 
|  | 218 @item reset | 
|  | 219 Counter that determines after how many frames cropdetect will reset | 
|  | 220 the previously detected largest video area and start over to detect | 
|  | 221 the current optimal crop area. Defaults to 0. | 
|  | 222 | 
|  | 223 This can be useful when channel logos distort the video area. 0 | 
|  | 224 indicates never reset and return the largest area encountered during | 
|  | 225 playback. | 
|  | 226 @end table | 
|  | 227 | 
| 193 @section drawbox | 228 @section drawbox | 
| 194 | 229 | 
| 195 Draw a colored box on the input image. | 230 Draw a colored box on the input image. | 
| 196 | 231 | 
| 197 It accepts the syntax: | 232 It accepts the syntax: | 
| 198 @example | 233 @example | 
| 199 drawbox=@var{x}:@var{y}:@var{width}:@var{height}:@var{color} | 234 drawbox=@var{x}:@var{y}:@var{width}:@var{height}:@var{color} | 
| 200 @end example | 235 @end example | 
| 201 | 236 | 
| 202 @table @option | 237 @table @option | 
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 421 | 456 | 
| 422 If the value for @var{width} or @var{height} is 0, the respective input | 457 If the value for @var{width} or @var{height} is 0, the respective input | 
| 423 size is used for the output. | 458 size is used for the output. | 
| 424 | 459 | 
| 425 If the value for @var{width} or @var{height} is -1, the scale filter will | 460 If the value for @var{width} or @var{height} is -1, the scale filter will | 
| 426 use, for the respective output size, a value that maintains the aspect | 461 use, for the respective output size, a value that maintains the aspect | 
| 427 ratio of the input image. | 462 ratio of the input image. | 
| 428 | 463 | 
| 429 The default value of @var{width} and @var{height} is 0. | 464 The default value of @var{width} and @var{height} is 0. | 
| 430 | 465 | 
|  | 466 @section settb | 
|  | 467 | 
|  | 468 Set the timebase to use for the output frames timestamps. | 
|  | 469 It is mainly useful for testing timebase configuration. | 
|  | 470 | 
|  | 471 It accepts in input an arithmetic expression representing a rational. | 
|  | 472 The expression can contain the constants "PI", "E", "PHI", "AVTB" (the | 
|  | 473 default timebase), and "intb" (the input timebase). | 
|  | 474 | 
|  | 475 The default value for the input is "intb". | 
|  | 476 | 
|  | 477 Follow some examples. | 
|  | 478 | 
|  | 479 @example | 
|  | 480 # set the timebase to 1/25 | 
|  | 481 settb=1/25 | 
|  | 482 | 
|  | 483 # set the timebase to 1/10 | 
|  | 484 settb=0.1 | 
|  | 485 | 
|  | 486 #set the timebase to 1001/1000 | 
|  | 487 settb=1+0.001 | 
|  | 488 | 
|  | 489 #set the timebase to 2*intb | 
|  | 490 settb=2*intb | 
|  | 491 | 
|  | 492 #set the default timebase value | 
|  | 493 settb=AVTB | 
|  | 494 @end example | 
|  | 495 | 
| 431 @section slicify | 496 @section slicify | 
| 432 | 497 | 
| 433 Pass the images of input video on to next video filter as multiple | 498 Pass the images of input video on to next video filter as multiple | 
| 434 slices. | 499 slices. | 
| 435 | 500 | 
| 436 @example | 501 @example | 
| 437 ./ffmpeg -i in.avi -vf "slicify=32" out.avi | 502 ./ffmpeg -i in.avi -vf "slicify=32" out.avi | 
| 438 @end example | 503 @end example | 
| 439 | 504 | 
| 440 The filter accepts the slice height as parameter. If the parameter is | 505 The filter accepts the slice height as parameter. If the parameter is | 
| 441 not specified it will use the default value of 16. | 506 not specified it will use the default value of 16. | 
| 442 | 507 | 
| 443 Adding this in the beginning of filter chains should make filtering | 508 Adding this in the beginning of filter chains should make filtering | 
| 444 faster due to better use of the memory cache. | 509 faster due to better use of the memory cache. | 
| 445 | 510 | 
|  | 511 @section transpose | 
|  | 512 | 
|  | 513 Transpose rows with columns in the input video and optionally flip it. | 
|  | 514 | 
|  | 515 It accepts a parameter representing an integer, which can assume the | 
|  | 516 values: | 
|  | 517 | 
|  | 518 @table @samp | 
|  | 519 @item 0 | 
|  | 520 Rotate by 90 degrees counterclockwise and vertically flip (default), that is: | 
|  | 521 @example | 
|  | 522 L.R     L.l | 
|  | 523 . . ->  . . | 
|  | 524 l.r     R.r | 
|  | 525 @end example | 
|  | 526 | 
|  | 527 @item 1 | 
|  | 528 Rotate by 90 degrees clockwise, that is: | 
|  | 529 @example | 
|  | 530 L.R     l.L | 
|  | 531 . . ->  . . | 
|  | 532 l.r     r.R | 
|  | 533 @end example | 
|  | 534 | 
|  | 535 @item 2 | 
|  | 536 Rotate by 90 degrees counterclockwise, that is: | 
|  | 537 @example | 
|  | 538 L.R     R.r | 
|  | 539 . . ->  . . | 
|  | 540 l.r     L.l | 
|  | 541 @end example | 
|  | 542 | 
|  | 543 @item 3 | 
|  | 544 Rotate by 90 degrees clockwise and vertically flip, that is: | 
|  | 545 @example | 
|  | 546 L.R     r.R | 
|  | 547 . . ->  . . | 
|  | 548 l.r     l.L | 
|  | 549 @end example | 
|  | 550 @end table | 
|  | 551 | 
| 446 @section unsharp | 552 @section unsharp | 
| 447 | 553 | 
| 448 Sharpen or blur the input video. | 554 Sharpen or blur the input video. | 
| 449 | 555 | 
| 450 It accepts the following parameters: | 556 It accepts the following parameters: | 
| 451 @var{luma_msize_x}:@var{luma_msize_y}:@var{luma_amount}:@var{chroma_msize_x}:@va
     r{chroma_msize_y}:@var{chroma_amount} | 557 @var{luma_msize_x}:@var{luma_msize_y}:@var{luma_amount}:@var{chroma_msize_x}:@va
     r{chroma_msize_y}:@var{chroma_amount} | 
| 452 | 558 | 
| 453 Negative values for the amount will blur the input video, while positive | 559 Negative values for the amount will blur the input video, while positive | 
| 454 values will sharpen. All parameters are optional and default to the | 560 values will sharpen. All parameters are optional and default to the | 
| 455 equivalent of the string '5:5:1.0:0:0:0.0'. | 561 equivalent of the string '5:5:1.0:0:0:0.0'. | 
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 539 Below is a description of the currently available video sources. | 645 Below is a description of the currently available video sources. | 
| 540 | 646 | 
| 541 @section buffer | 647 @section buffer | 
| 542 | 648 | 
| 543 Buffer video frames, and make them available to the filter chain. | 649 Buffer video frames, and make them available to the filter chain. | 
| 544 | 650 | 
| 545 This source is mainly intended for a programmatic use, in particular | 651 This source is mainly intended for a programmatic use, in particular | 
| 546 through the interface defined in @file{libavfilter/vsrc_buffer.h}. | 652 through the interface defined in @file{libavfilter/vsrc_buffer.h}. | 
| 547 | 653 | 
| 548 It accepts the following parameters: | 654 It accepts the following parameters: | 
| 549 @var{width}:@var{height}:@var{pix_fmt_string} | 655 @var{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_d
     en} | 
| 550 | 656 | 
| 551 All the parameters need to be explicitely defined. | 657 All the parameters need to be explicitely defined. | 
| 552 | 658 | 
| 553 Follows the list of the accepted parameters. | 659 Follows the list of the accepted parameters. | 
| 554 | 660 | 
| 555 @table @option | 661 @table @option | 
| 556 | 662 | 
| 557 @item width, height | 663 @item width, height | 
| 558 Specify the width and height of the buffered video frames. | 664 Specify the width and height of the buffered video frames. | 
| 559 | 665 | 
| 560 @item pix_fmt_string | 666 @item pix_fmt_string | 
| 561 |  | 
| 562 A string representing the pixel format of the buffered video frames. | 667 A string representing the pixel format of the buffered video frames. | 
| 563 It may be a number corresponding to a pixel format, or a pixel format | 668 It may be a number corresponding to a pixel format, or a pixel format | 
| 564 name. | 669 name. | 
| 565 | 670 | 
|  | 671 @item timebase_num, timebase_den | 
|  | 672 Specify numerator and denomitor of the timebase assumed by the | 
|  | 673 timestamps of the buffered frames. | 
| 566 @end table | 674 @end table | 
| 567 | 675 | 
| 568 For example: | 676 For example: | 
| 569 @example | 677 @example | 
| 570 buffer=320:240:yuv410p | 678 buffer=320:240:yuv410p:1:24 | 
| 571 @end example | 679 @end example | 
| 572 | 680 | 
| 573 will instruct the source to accept video frames with size 320x240 and | 681 will instruct the source to accept video frames with size 320x240 and | 
| 574 with format "yuv410p". Since the pixel format with name "yuv410p" | 682 with format "yuv410p" and assuming 1/24 as the timestamps timebase. | 
| 575 corresponds to the number 6 (check the enum PixelFormat definition in | 683 Since the pixel format with name "yuv410p" corresponds to the number 6 | 
| 576 @file{libavutil/pixfmt.h}), this example corresponds to: | 684 (check the enum PixelFormat definition in @file{libavutil/pixfmt.h}), | 
|  | 685 this example corresponds to: | 
| 577 @example | 686 @example | 
| 578 buffer=320:240:6 | 687 buffer=320:240:6:1:24 | 
| 579 @end example | 688 @end example | 
| 580 | 689 | 
| 581 @section color | 690 @section color | 
| 582 | 691 | 
| 583 Provide an uniformly colored input. | 692 Provide an uniformly colored input. | 
| 584 | 693 | 
| 585 It accepts the following parameters: | 694 It accepts the following parameters: | 
| 586 @var{color}:@var{frame_size}:@var{frame_rate} | 695 @var{color}:@var{frame_size}:@var{frame_rate} | 
| 587 | 696 | 
| 588 Follows the description of the accepted parameters. | 697 Follows the description of the accepted parameters. | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 616 @example | 725 @example | 
| 617 "color=red@@0.2:qcif:10 [color]; [in][color] overlay [out]" | 726 "color=red@@0.2:qcif:10 [color]; [in][color] overlay [out]" | 
| 618 @end example | 727 @end example | 
| 619 | 728 | 
| 620 @section nullsrc | 729 @section nullsrc | 
| 621 | 730 | 
| 622 Null video source, never return images. It is mainly useful as a | 731 Null video source, never return images. It is mainly useful as a | 
| 623 template and to be employed in analysis / debugging tools. | 732 template and to be employed in analysis / debugging tools. | 
| 624 | 733 | 
| 625 It accepts as optional parameter a string of the form | 734 It accepts as optional parameter a string of the form | 
| 626 @var{width}:@var{height}, where @var{width} and @var{height} specify the size of | 735 @var{width}:@var{height}:@var{timebase}. | 
| 627 the configured source. |  | 
| 628 | 736 | 
| 629 The default values of @var{width} and @var{height} are respectively 352 | 737 @var{width} and @var{height} specify the size of the configured | 
| 630 and 288 (corresponding to the CIF size format). | 738 source. The default values of @var{width} and @var{height} are | 
|  | 739 respectively 352 and 288 (corresponding to the CIF size format). | 
|  | 740 | 
|  | 741 @var{timebase} specifies an arithmetic expression representing a | 
|  | 742 timebase. The expression can contain the constants "PI", "E", "PHI", | 
|  | 743 "AVTB" (the default timebase), and defaults to the value "AVTB". | 
| 631 | 744 | 
| 632 @c man end VIDEO SOURCES | 745 @c man end VIDEO SOURCES | 
| 633 | 746 | 
| 634 @chapter Video Sinks | 747 @chapter Video Sinks | 
| 635 @c man begin VIDEO SINKS | 748 @c man begin VIDEO SINKS | 
| 636 | 749 | 
| 637 Below is a description of the currently available video sinks. | 750 Below is a description of the currently available video sinks. | 
| 638 | 751 | 
| 639 @section nullsink | 752 @section nullsink | 
| 640 | 753 | 
| 641 Null video sink, do absolutely nothing with the input video. It is | 754 Null video sink, do absolutely nothing with the input video. It is | 
| 642 mainly useful as a template and to be employed in analysis / debugging | 755 mainly useful as a template and to be employed in analysis / debugging | 
| 643 tools. | 756 tools. | 
| 644 | 757 | 
| 645 @c man end VIDEO SINKS | 758 @c man end VIDEO SINKS | 
| 646 | 759 | 
| OLD | NEW | 
|---|