kewlbear / ffmpeg-ios Goto Github PK
View Code? Open in Web Editor NEWSwift package of FFmpeg libraries for iOS
Swift package of FFmpeg libraries for iOS
error: target at '..../SourcePackages/checkouts/FFmpeg-iOS/Sources/Tool' contains mixed language source files; feature not supported
Running into a mixed language in target error, any idea how to fix? At least locally?
This occurs after a certain stage when I run swift run ffmpeg-ios
I've run the command swift run ffmpeg-ios
but found the error above.
After installing via SPM I get the following error upon the first build:
'sortedKeys' is only available in iOS 11.0 or newer
in the file DumpHelpGenerator.swift in line 30.
Do you have plans to support progress callbacks for it?
In an open source project, we have this example app that depends on FFmpeg-iOS (see here). First, thanks a lot for that ๐.
When going into the "distribution" stage of the app, the following error occurs:
2021-04-13 19:54:30 +0000 Assertion failed: Expected 1 archs in otool output:
Archive : /var/folders/fk/9kh981v9165g2t1yh3lbrkcst96_15/T/IDEDistributionOptionThinning.~~~iSjBnA/Payload/MAVSDK_Swift_Example.app/Frameworks/libavcodec.a (architecture arm64)
/var/folders/fk/9kh981v9165g2t1yh3lbrkcst96_15/T/IDEDistributionOptionThinning.~~~iSjBnA/Payload/MAVSDK_Swift_Example.app/Frameworks/libavcodec.a(012v.o) (architecture arm64):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC_64 ARM64 ALL 0x00 OBJECT 5 856 SUBSECTIONS_VIA_SYMBOLS
Load command 0
.....
Would you have an idea what that means? We thought that there were maybe non-arm64 symbols in libavcodec.a
, but we only found arm64 symbols there...
We need to upload the encoded video to be displayed in a web browser, so we're trying to encode it to H.264. Here's our code:
let result = ffmpeg(["ffmpeg",
"-hide_banner", "-loglevel", "error", /// quiet
"-i", inPath.absoluteString, /// input file
"-filter:v", "scale=\(scale)", /// scale to the desired size
"-c:v", "libx264", /// use H.264 codec
"-c:a", "copy", /// copy audio stream "as is"
outPath.absoluteString])
However, we get the error message:
๏ฟฝ[1;35m[vost#0:0 @ 0x117d857a0] ๏ฟฝ[0m๏ฟฝ[4;31mUnknown encoder 'libx264'
๏ฟฝ[0m
Is there another way to achieve this?
let result = ffmpeg(["ffmpeg", "-i", source.path, destination])
encountered an error while I was converting .m4a to .mp3:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/private/var/mobile/Containers/Shared/AppGroup/1ECB4F4A-3F79-4E52-A290-78F4F12BAFF9/File Provider Storage/test.m4a':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: M4A isommp42
creation_time : 2020-06-03T13:20:08.000000Z
iTunSMPB : 00000000 00000840 0000039D 00000000005B3423 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
voice-memo-uuid : 3A3C853F-58D9-41C9-992B-106FD926A185
encoder : com.apple.VoiceMemos (iOS 13.4.1)
Duration: 00:02:04.59, start: 0.044000, bitrate: 68 kb/s
Stream #0:00x1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 64 kb/s (default)
Metadata:
creation_time : 2020-06-03T13:20:08.000000Z
handler_name : Core Media Audio
vendor_id : [0][0][0][0]
[aost#0:0 @ 0x10b83ab90] Automatic encoder selection failed Default encoder for format mp3 (codec mp3) is probably disabled. Please choose an encoder manually.
[aost#0:0 @ 0x10b83ab90] Error selecting an encoder
I read in the license terms of LGPL that ffmpeg can be used in a commercial app (without opening up its source code), if the library has been dynamically linked.
ChatGPT told me that this is the case if the library has been added as a .dylib.
Is this the case for this package?
how to cancel current task?
Hi man, great work. Thanks for your time.
I have some issue when I tray to import avformat I get this error "No such module 'avformat'".
Do I missed some steps?
When I set enable for lib fdk-aac, x264 or lame, after downloading library's source. It showed error
"Unknown option "--host=aarch64-apple-darwin"."
then exit.
I run on Big Sur.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.