Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The count of side value array must be the same as the count of kilo bitrate array #79

Open
wimil opened this issue Oct 18, 2020 · 1 comment · May be fixed by #138
Open

The count of side value array must be the same as the count of kilo bitrate array #79

wimil opened this issue Oct 18, 2020 · 1 comment · May be fixed by #138

Comments

@wimil
Copy link

wimil commented Oct 18, 2020

Describe the bug
I'm trying to add kilobitrates to Auto Generated Representations and I'm getting this error: The count of the side value array should be the same as the count of the kilo bitrate array

To Reproduce
Steps to reproduce the behavior:

  1. Go to '/../AutoReps.php'
  2. On Line '109'
  3. The code:
$ffmpeg->open($video_path)
            ->hls()
            ->x264()
            ->autoGenerateRepresentations(
                [1080, 720, 360],
                [6000, 4000, 1000]
            )
            //->addRepresentations($rep)
            ->save(storage_path('app/videos/test2/test.m3u8'));
  1. See error: The count of side value array must be the same as the count of kilo bitrate array

Desktop/Server (please complete the following information):

  • OS: Centos
  • Version 7
  • FFmpeg vesion: 4.3
@aminyazdanpanah
Copy link
Member

aminyazdanpanah commented Oct 25, 2020

You are right! The exception throws when one or more values in the array are greater than the original height and then it will be filtered by the sideFilter method.
After that, the count of the height values is not the same as the count of the kilobit rate values.

I will try to find a valid solution in the next release.

aminyazdanpanah added a commit that referenced this issue Oct 25, 2020
crishoj added a commit to monotreedk/PHP-FFmpeg-video-streaming that referenced this issue Sep 29, 2023
@crishoj crishoj linked a pull request Sep 29, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants