WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 38.242.244.58  /  Your IP : 216.73.216.32
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1486879.contaboserver.net 5.4.0-166-generic #183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.19
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/sura/vendor/php-ffmpeg/php-ffmpeg/tests/Unit/Format/Video/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/sura/vendor/php-ffmpeg/php-ffmpeg/tests/Unit/Format/Video/VideoTestCase.php
<?php

namespace Tests\FFMpeg\Unit\Format\Video;

use Tests\FFMpeg\Unit\Format\Audio\AudioTestCase;

abstract class VideoTestCase extends AudioTestCase
{
    public function testGetVideoCodec()
    {
        $this->assertScalar($this->getFormat()->getVideoCodec());
        $this->assertContains($this->getFormat()->getVideoCodec(), $this->getFormat()->getAvailableVideoCodecs());
    }

    public function testSupportBFrames()
    {
        $this->assertInternalType('boolean', $this->getFormat()->supportBFrames());
    }

    public function testSetVideoCodec()
    {
        $format = $this->getFormat();

        foreach ($format->getAvailableVideoCodecs() as $codec) {
            $format->setVideoCodec($codec);
            $this->assertEquals($codec, $format->getVideoCodec());
        }
    }

    public function testGetKiloBitrate()
    {
        $this->assertInternalType('integer', $this->getFormat()->getKiloBitrate());
    }

    public function testSetKiloBitrate()
    {
        $format = $this->getFormat();
        $format->setKiloBitrate(2560);
        $this->assertEquals(2560, $format->getKiloBitrate());
    }

    /**
     * @expectedException FFMpeg\Exception\InvalidArgumentException
     */
    public function testSetInvalidVideoCodec()
    {
        $this->getFormat()->setVideoCodec('invalid-random-video-codec');
    }

    public function testGetAvailableVideoCodecs()
    {
        $this->assertGreaterThan(0, count($this->getFormat()->getAvailableVideoCodecs()));
    }

    public function testCreateProgressListener()
    {
        $media = $this->getMock('FFMpeg\Media\MediaTypeInterface');
        $media->expects($this->any())
            ->method('getPathfile')
            ->will($this->returnValue(__FILE__));
        $format = $this->getFormat();
        $ffprobe = $this->getFFProbeMock();

        foreach ($format->createProgressListener($media, $ffprobe, 1, 3) as $listener) {
            $this->assertInstanceOf('FFMpeg\Format\ProgressListener\VideoProgressListener', $listener);
            $this->assertSame($ffprobe, $listener->getFFProbe());
            $this->assertSame(__FILE__, $listener->getPathfile());
            $this->assertSame(1, $listener->getCurrentPass());
            $this->assertSame(3, $listener->getTotalPass());
        }
    }

    public function testGetPasses()
    {
        $this->assertInternalType('integer', $this->getFormat()->getPasses());
        $this->assertGreaterThan(0, $this->getFormat()->getPasses());
    }

    public function testGetModulus()
    {
        $this->assertInternalType('integer', $this->getFormat()->getModulus());
        $this->assertGreaterThan(0, $this->getFormat()->getModulus());
        $this->assertEquals(0, $this->getFormat()->getModulus() % 2);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit