Просмотр файла vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Format/ProgressListener/VideoProgressListener.php

Размер файла: 676B
  1. <?php
  2.  
  3. /*
  4. * This file is part of PHP-FFmpeg.
  5. *
  6. * (c) Alchemy <info@alchemy.fr>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11.  
  12. namespace FFMpeg\Format\ProgressListener;
  13.  
  14. /**
  15. * Parses ffmpeg stderr progress information for video files. An example:
  16. *
  17. * <pre>
  18. * frame= 171 fps=0.0 q=10.0 size= 18kB time=00:00:05.72 bitrate= 26.4kbits/s dup=8 drop=0
  19. * </pre>
  20. *
  21. * @author Robert Gruendler <r.gruendler@gmail.com>
  22. */
  23. class VideoProgressListener extends AbstractProgressListener
  24. {
  25. public function getPattern()
  26. {
  27. return '/size=(.*?) time=(.*?) /';
  28. }
  29. }