Git Product home page Git Product logo

ffmpeg-ios's Issues

Build error

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.

"Assertion failed: Expected 1 archs in otool output" at distribution stage

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...

How to encode to H.264?

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?

No such module 'avformat'

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?

Automatic encoder selection failed Default encoder for format mp3

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

Use in a commercial app on the App Store

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?

Installation/Build Error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.