'How to use sunlubo/SwiftFFmpeg library in iOS swift?

I am trying to use https://github.com/sunlubo/SwiftFFmpeg library in iOS to convert mp4 file to mpegts. But I am getting below error when trying to add it using SPM:

enter image description here

& No such module 'CFFmpeg' error when trying to add the library manually as used in the Demo project(https://github.com/sunlubo/SwiftFFmpegDemo-iOS). Can anyone provide me the steps or example on how to use this library for iOS?

I am using a M1 Macbook, Xcode 13, SwiftFFmpeg library version(1.0.5), Swift version(5.4)

Thanks in advance!



Solution 1:[1]

you can use Mobile ffmpeg cocoa pods like this:

pod 'mobile-ffmpeg-full-gpl'

see this answer https://stackoverflow.com/a/55312118/17927980 that's very helpful

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1