avasset Questions

6

Solved

Thus far I have the following let assetUrl = NSURL.URLWithString(self.targetVideoString) let asset: AVAsset = AVAsset.assetWithURL(assetUrl) as AVAsset let imageGenerator = AVAssetImageGenerator(as...
Blinkers asked 6/11, 2014 at 20:55

2

Using Xcode 14.0, iOS 16, Swift 5.7, I get the following deprecation warning due to iOS 16: 'duration' was deprecated in iOS 16.0: Use load(.duration) instead Here is my code: var actualTime: CMT...
Bores asked 25/9, 2022 at 17:36

4

Solved

I have got two audio tracks on me that I combine with one another like this: AVMutableComposition *composition = [[AVMutableComposition alloc] init]; AVMutableCompositionTrack *compositionAudioTr...
Lysin asked 26/11, 2013 at 8:16

1

Solved

Creating an application for image and video processing, where app requirement is set device Orientation according to selected video content orientation from the gallery. So I have used some line of...
Kalil asked 14/12, 2017 at 9:16

3

Am looking to add a preview channel to an AV project, so that a video or audio file can be playing on the master output channel but the user can preview a separate audio or video file on a differen...

1

I am getting file url of normal video, but slow motion video asset type is AVComposition. I am try with AVAssetExportSession But it consuming large time. PHVideoRequestOptions *options=[[PHVideoRe...
Syncrisis asked 2/8, 2017 at 11:3

6

Solved

I need to use the AVAsset object, in order to play it using AVPlayer and AVPlayerLayer. I started using the Photos framework since AssetsLibrary is deprecated. Now I got to the point where I have a...
Disagreeable asked 28/9, 2015 at 16:19

3

Solved

I am working on Video based application in Swift3. As per my requirement I have to merge Video and Audio AVAsset into one, adjust their volumes separately and save the final Video in iPhone Device ...
Arsenopyrite asked 25/6, 2018 at 6:31

4

Solved

I'm trying to reverse audio in iOS with AVAsset and AVAssetWriter. The following code is working, but the output file is shorter than input. For example, input file has 1:59 duration, but output 1...
Diatomaceous asked 19/3, 2015 at 14:46

2

Solved

I'm making a player and I want to list all files and in front of all files I want to present the duration of the video. The only problem is that I'm not getting the right video duration, sometimes...
Abell asked 30/5, 2017 at 16:4

1

Recently, started noticing some assets were not being displayed when importing them from the photo library. The assets in questions are stored in iCloud and are not cached on the device. I believe ...
Beograd asked 27/9, 2020 at 15:27

1

Solved

My screen cracked and my phone has no sound capabilities. I recorded a video using the camera. When I select the video url from didFinishPickingMediaWithInfo I tried to check if the video has sound...
Langan asked 7/11, 2020 at 23:50

1

Solved

I found the three ways to play video with URL. let url = "some url" // first way AVPlayer(url: url) // second way let playerItem = AVPlayerItem(url: url) AVPlayer(playerItem: playerItem...
Amputee asked 16/10, 2020 at 9:51

2

Solved

I am picking a video from my swift iOS app using the UIImagePickerController. I am saving this URL and now would like to convert it to data to send to my server for storage using: let messageVide...
Civet asked 31/5, 2016 at 9:44

3

Is there a way to convert Data to AVAsset/AVURLAsset or better AVPlayerItem? I found an answer that converts Data to PHAsset and requires saving it first to the desk. Is there a better way?
Angele asked 25/4, 2018 at 0:50

1

I'm working on a project that requires sequencing a large number (problem is visible at n = 30 or fewer) of short (1-5 second) AVAssets. All of the reference material and sample projects I can find...
Handbarrow asked 11/5, 2020 at 19:39

2

I am developing a video based Application in Swift3. Where I have one video url and a Range Slider according to the video duration and user can select any minimum and maximum value from slider. If ...
Chamade asked 3/12, 2017 at 9:40

1

Solved

In the UI of my iOS app, I display a complex hierarchy of CALayers. One of these layers is a AVPlayerLayer that displays a video with CIFilters applied in real time (using AVVideoComposition(asset:...
Piccadilly asked 24/10, 2019 at 10:12

3

I have a problem tracing the underlying issue behind my asset export session failure. The issue is for one video only, and I believe the problem is in its audio track, since I successfully exported...
Brunelleschi asked 22/3, 2016 at 3:10

1

Solved

My app takes a video from a URL and allows you to add text to it, etc. It seems to crash when the video doesn't have any audio to begin with, can't seem to figure this out. This is what I have whe...
Clink asked 24/6, 2019 at 3:17

1

Solved

I'm trying to get the asset property from an AVAssetTrack object, but it's nil sometimes. It seems like the problem occurs only after I use Dispatch.main.async. According to the documentation, it'...
Conation asked 16/4, 2019 at 14:5

4

Solved

I have the following code in my app: NSURL *url = [NSURL fileURLWithPath: [self.DocDir stringByAppendingPathComponent: self.FileName] isDirectory: NO]; self.avPlayer = [AVPlayer playerWithURL: url...
Schreiner asked 27/9, 2013 at 20:13

1

I am working on AssetsPickerController in Swift to select multiple Videos from Device gallery. Problem: When I am selecting multiple Videos or sometimes single video then sometimes my App is cras...
Depravity asked 3/4, 2019 at 7:4

2

Solved

I'm working on an iOS app that plays FairPlay-encrypted audio via HLS, and supports both downloading and streaming. And I'm unable to play downloaded content when in airplane mode. If I create an A...

2

For some reason I am always receiving this error: Error Domain=NSURLErrorDomain Code=-3000 "Cannot create file" UserInfo={NSLocalizedDescription=Cannot create file, NSUnderlyingError=0x1321dd7...
Manner asked 25/11, 2015 at 19:38

© 2022 - 2025 — McMap. All rights reserved.