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

Размер файла: 855B
  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\Video;
  13.  
  14. /**
  15. * The WMV video format.
  16. */
  17. class WMV extends DefaultVideo
  18. {
  19. public function __construct($audioCodec = 'wmav2', $videoCodec = 'wmv2')
  20. {
  21. $this
  22. ->setAudioCodec($audioCodec)
  23. ->setVideoCodec($videoCodec);
  24. }
  25.  
  26. /**
  27. * {@inheritDoc}
  28. */
  29. public function supportBFrames()
  30. {
  31. return false;
  32. }
  33.  
  34. /**
  35. * {@inheritDoc}
  36. */
  37. public function getAvailableAudioCodecs()
  38. {
  39. return ['wmav2'];
  40. }
  41.  
  42. /**
  43. * {@inheritDoc}
  44. */
  45. public function getAvailableVideoCodecs()
  46. {
  47. return ['wmv2'];
  48. }
  49. }