View file vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Format/ProgressListener/AudioProgressListener.php

File size: 620B
  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. An example:
  16. *
  17. * <pre>
  18. * size= 3552kB time=00:03:47.29 bitrate= 128.0kbits/s
  19. * </pre>
  20. *
  21. * @author Robert Gruendler <r.gruendler@gmail.com>
  22. */
  23. class AudioProgressListener extends AbstractProgressListener
  24. {
  25. public function getPattern()
  26. {
  27. return '/size=(.*?) time=(.*?) /';
  28. }
  29. }