Conversation
|
Thanks for your contribution! |
|
@guysoft , I see this pull request caused build time to increase from 10 minutes to 2 hours. I can go disable unnecessary codecs from ffmpeg build, but it won’t help dramatically. |
|
I wonder if there is a way ffmpeg could be built once, and then the binary just downloaded from somewhere as part of the OctoPi image? Since it is building from a specific commit it seems like it shouldn't have to re-build every time. |
|
Should be able to be built once. |
|
Could be built and exported once using |
|
@chudsaviet The ffmpeg build determines the build arch according to the kernel used and this causes the build to fail. There should be a flag to tell it explicitly based on on what CustomPiOS is building what arch to build for. Attaching a filed log: |
|
I was building in Docker on a M1 Mac, both 32 bit and 64bit worked. |
|
I think there should be a way to pass the configure what arch to build for. |
|
Yes, I believe configure uses arch command to determine architecture. |
|
Fixed, builds on both now |
|
Current devel branch exports ffmpeg HLS that is built to the workspace folder. So we could have some logic that you place that inside |
|
I see. Exact mechanism is not the problem.
|
|
It seems like it would just be best to wait after FFmpeg version will be released.
|
|
We might want to add instructions how to activate it if you would like to add that |
|
Yeah, sorry, I had much work last couple of weeks. |
|
I mean that I am not sure the setting in octopi.txt is documented. |
|
It was experimental, so I haven't documented it in the past. |
|
It should go https://github.com/guysoft/OctoPi/wiki |
Tested on Raspberry Pi OS 32bit and 64bit. CPU load on Rpi4 is around 10%.