0

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!

Ankur Pachauri
  • 141
  • 1
  • 8

1 Answers1

0

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

Amin Rezaew
  • 298
  • 1
  • 14
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Fredrik Mar 29 '22 at 07:44
  • @FredrikA. OK thanks, i add more information to my answer – Amin Rezaew Mar 29 '22 at 20:50