Commit graph

51 commits

Author SHA1 Message Date
4c7b64f045
Bump version to 0.3.5 2025-01-19 14:06:14 -08:00
33152e4e44
Try to improve cancellation response, memory might be leaking 2025-01-19 14:05:46 -08:00
c5b127c702
Update Readme.md 2024-11-08 17:08:42 -08:00
e1a9f38d5a
Merge pull request #3 from samsonjs/fix/audio-sample-stall
Fix encoding stalling by interleaving audio and video
2024-11-08 17:06:53 -08:00
9297a14920
Fix encoding stalling by interleaving audio and video
Thanks to the AVFoundation team I learned that both audio and video
samples are supposed to be interleaved whenever media data is ready
from either call to encode ready samples, and that fixes encoding this
video encoding with x264 and ffmpeg.
2024-11-08 17:06:26 -08:00
e7fbbacd30
Update Readme.md 2024-11-02 09:05:59 -07:00
e4b0671475
Add 0dependencies.dev badge 2024-10-31 11:51:57 -07:00
f9bacbe9be
Make tests work on iOS 18.0 and iOS 18.1
Estimated data rate changes a bit so check against a range instead of
a specific value.
2024-10-24 18:34:11 -07:00
63dc13d316
Update Readme.md with Swift Package Index shields 2024-10-21 17:11:18 -07:00
979a8e23ee
Fix progress test 2024-10-20 17:56:05 -07:00
d82bd64635
Remove SampleWriter.duration 2024-10-20 17:22:04 -07:00
d995fbab46
Make AudioOutputSettings and VideoOutputSettings properties public 2024-10-19 14:37:36 -07:00
6bda654048
Update example in readme to 0.3.2 2024-10-19 12:36:27 -07:00
6f6a5f00e0
Fix release builds by using makeStream for SampleWriter's progress 2024-10-19 12:36:04 -07:00
7edb4b7f46
Update link in license section of the readme 2024-10-19 11:57:43 -07:00
f99426ed27
Update version in Readme to 0.3.1 2024-10-19 11:54:40 -07:00
7440301b15
Remove unnecessary Task.yield() to fix an intermittent hang 2024-10-19 11:54:09 -07:00
127dbf296b
Code style and debuggability 2024-10-19 11:53:41 -07:00
658a844257
Update readme for version 0.3 2024-10-18 15:53:10 -07:00
baf7d5e72a
Make audio/video settings Hashable, Sendable, and Codable 2024-10-18 15:53:06 -07:00
6a6938817b
Update Readme.md 2024-10-18 14:42:22 -07:00
4fa67c81e9
Fix SwiftPM instructions in Readme.md 2024-10-18 14:41:53 -07:00
5c9c5833e5
Code style 2024-10-04 08:32:56 -07:00
83ed881d3e
Update version in readme's SPM example 2024-10-04 08:32:53 -07:00
1e3651ae0d
Merge pull request #2 from samsonjs/spatial-audio
Drop spatial audio tracks to fix encoding iPhone 16 videos
2024-10-04 08:29:44 -07:00
4c1e26d3e7
Drop spatial audio tracks to fix encoding iPhone 16 videos
Fixes #1
2024-10-04 08:29:14 -07:00
b2aecd9d00
Convert from Xcode project to Swift package 2024-09-18 08:51:02 -07:00
aaaf227c96
Make yielding last progress value more reliable 2024-08-18 13:31:20 -07:00
4966910a3b
Encode audio before video to surface failures faster 2024-08-18 13:19:33 -07:00
b60032f15f
Flesh out documentation for most of the public API 2024-08-18 13:08:45 -07:00
16599d638c
Add readme and license 2024-08-18 09:42:10 -07:00
66700260fb
Finish writing comment and add FIXME for macOS runtime error 2024-08-18 09:32:06 -07:00
79370a0e54
Set deployment targets to iOS 17, macOS 14, and visionOS 1.3 2024-08-18 09:31:28 -07:00
64edbb2ccd
Use AsyncStream.makeStream to fix Sendable conformance 2024-08-18 09:18:37 -07:00
8e46d79376
Add support for writing metadata on the asset 2024-08-17 15:39:53 -07:00
8f049aed95
Make SampleWriter.init nonisolated so it can load tracks 2024-08-12 19:01:21 -07:00
996251cfde
Fix import 2024-07-11 22:27:43 -07:00
5c08e65280
Use user-initiated QoS for the dispatch queue 2024-07-11 08:17:19 -07:00
fa1f39bb2b
Stop encoding when the task is cancelled 2024-07-10 23:30:28 -07:00
f49cc722d4
Add a nicer API on top of settings dictionaries 2024-07-09 22:36:17 -07:00
c1a6555c22
Remove some cruft 2024-07-07 22:30:23 -07:00
2fca0fb7fd
Tweak the API, document export params, validate inputs better 2024-07-07 22:25:14 -07:00
a44627b971
Wire up progress and flesh out tests 2024-07-07 21:23:14 -07:00
ee61962f0c
Typealias Error in the SampleWriter 2024-07-07 09:38:54 -07:00
a73fe1173e
Make test name match the method name 2024-07-07 09:38:01 -07:00
d7ba32efd6
Make the frame-rate stick 2024-07-07 09:37:38 -07:00
9f3dea8e0c
Test video bitrate and add failing test for fps 2024-07-07 09:25:59 -07:00
6319aaaad1
Make the test more thorough and move color stuff to video composition 2024-07-06 22:30:12 -07:00
750b77210c
Add a test and make it actually work 2024-07-06 22:08:53 -07:00
36f055d36f
Add a basic exporter
This doesn't have a great API yet and hasn't been tested so it may not
even work.
2024-07-03 22:31:25 -07:00