Revision a532bb39 doc/filters.texi

View differences:

doc/filters.texi
502 502
settb=AVTB
503 503
@end example
504 504

  
505
@section setpts
506

  
507
Change the PTS (presentation timestamp) of the input video frames.
508

  
509
Accept in input an expression evaluated through the eval API, which
510
can contain the following constants:
511

  
512
@table @option
513
@item PTS
514
the presentation timestamp in input
515

  
516
@item PI
517
Greek PI
518

  
519
@item PHI
520
golden ratio
521

  
522
@item E
523
Euler number
524

  
525
@item N
526
the count of the input frame, starting from 0.
527

  
528
@item STARTPTS
529
the PTS of the first video frame
530

  
531
@item INTERLACED
532
tell if the current frame is interlaced
533

  
534
@item POS
535
original position in the file of the frame, or undefined if undefined
536
for the current frame
537

  
538
@item PREV_INPTS
539
previous input PTS
540

  
541
@item PREV_OUTPTS
542
previous output PTS
543

  
544
@end table
545

  
546
Some examples follow:
547

  
548
@example
549
# start counting PTS from zero
550
setpts=PTS-STARTPTS
551

  
552
# fast motion
553
setpts=0.5*PTS
554

  
555
# slow motion
556
setpts=2.0*PTS
557

  
558
# fixed rate 25 fps
559
setpts=N/(25*TB)
560

  
561
# fixed rate 25 fps with some jitter
562
setpts='1/(25*TB) * (N + 0.05 * sin(N*2*PI/25))'
563
@end example
564

  
505 565
@section slicify
506 566

  
507 567
Pass the images of input video on to next video filter as multiple

Also available in: Unified diff