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

React-Native/Expo | Cannot use libx265 #978

Closed
Michota opened this issue May 11, 2024 · 4 comments
Closed

React-Native/Expo | Cannot use libx265 #978

Michota opened this issue May 11, 2024 · 4 comments

Comments

@Michota
Copy link

Michota commented May 11, 2024

I want to compress mp4 to m3u8, but make its size smaller too.
For this moment I use

-i ${inputUri} -c:v copy -c:a copy -b:a 128k -force_key_frames expr:gte(t,n_forced*${hlsTime}) -f hls -hls_time ${hlsTime} -hls_list_size ${hlsListSize} ${outputUri}
but the size is the same as input uri.

I wanted to use libx265 as they recommended in that post, but i get an error when i run this command

-i ${inputUri} -c:v x265 -c:a copy -b:a 128k -force_key_frames expr:gte(t,n_forced*${hlsTime}) -f hls -hls_time ${hlsTime} -hls_list_size ${hlsListSize} ${outputUri}`;
Error: Unknown encoder 'x265'.

I had video package installed before

/// app.json
[
"@config-plugins/ffmpeg-kit-react-native",
{
"package": "min-gpl"
}
]
but even after i changed it, removed app from my device, and reinstalled it, its still saying that it is unknown encoder...
I use Expo SDK51.

Help me, please!

@juha-h
Copy link

juha-h commented May 12, 2024

My enabled encoders list has libx256, not x265.

@Michota
Copy link
Author

Michota commented May 12, 2024

Yeah, I was too sleepy to close this thread. Its working now.
Where can I get the names of encoders that I can use? Is it the packages section on github wiki?

@juha-h
Copy link

juha-h commented May 12, 2024

You can find the codec list from build.log.

@Michota Michota closed this as completed May 12, 2024
@Michota
Copy link
Author

Michota commented May 18, 2024

@juha-h you were nice to me. Thanks again.
May you also try to answer this question about --speed flag?
Thanks, once again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants