cmtime Questions
3
I'm writing some frames to video with AVAssetWriterInputPixelBufferAdaptor, and the behavior w.r.t. time isn't what I'd expect.
If I write just one frame:
[videoWriter startSessionAtSourceTime:k...
Pontonier asked 27/4, 2011 at 18:8
3
Solved
I have seen some examples of CMTime (Three separate links), but I still don't get it. I'm using an AVCaptureSession with AVCaptureVideoDataOutput and I want to set the max and min frame rate of the...
Besprinkle asked 15/10, 2012 at 19:11
3
Solved
How does CMTimeCompare work? Apple seems to have left out the return values from their documentation.
https://developer.apple.com/library/mac/#documentation/CoreMedia/Reference/CMTime/Reference/re...
4
this should be a simple one. I have an AVPlayer playing a video file and I want to be able to jump to a specific time but I'm having some trouble understanding how CMTime works.
I need to specify ...
0
I'm working on a camera app for IOS (13). For that I use an AVCaptureSession in conjunction with an AVCaptureVideoPreviewLayer. So far everything works fine.
Now I want to let the user choose and ...
Gerlac asked 28/11, 2019 at 18:45
6
Solved
This may seem ridiculous, but how can I output the seconds of CMTime to the console in Objective-C? I simply need the value divided by the timescale and then somehow see it in the console.
Melo asked 18/2, 2012 at 23:22
11
Solved
So I have a CMTime from a video. How do I convert it into a nice string like in the video time duration label in the Photo App. Is there some convenience methods that handle this? Thanks.
AVURLAs...
Bart asked 18/5, 2012 at 14:43
1
Solved
I want CMTime to String an human readable.
So I Found below code.
extension CMTime {
var durationText:String {
let totalSeconds = CMTimeGetSeconds(self)
let hours:Int = Int(totalSeconds / 3600...
4
Solved
4
Solved
I want to get thumbnail images of every frame from video and then save this images in Mutable Array of images.
I want to use this images to play as a animation.
NSURL* assetURL = [self.asset valu...
Bess asked 7/7, 2015 at 7:42
1
Solved
I'm using AVPlayer to play a video. I followed this video tutorial Let's Build That App
I use a UISlider/scrubber to go along with the current frame/time of the video.
I have a video that is 10.4...
2
Solved
var songs = MPMediaQuery()
var localSongs = songs.items
songList = NSMutableArray(array: localSongs)
tableView.reloadData()
var song = MPMediaItem(coder: songList[0] as NSCoder)
var currentItem ...
3
Solved
Is there any method to check a CMTime is equal to another CMTime. In my case I need to check CMTime is equal to KCMTimeZero. I tried CMTimeCompare method, but it will be True for all the CMTimes wh...
Voltmer asked 12/2, 2015 at 7:16
2
Solved
Im having a problem with seeking with AVPlayer.seekToTime, I have the time index that I want to seek to inside a scrollViewDidScroll method like this:
func scrollViewDidScroll(scrollView: UIScroll...
1
I am using two players one is MPMoviePlayerController and the other is AVPlayer. henever MPMoviePlayerController is seeked, it sets the time to AVPlayer. Everything is working fine. While convertin...
Eccentric asked 13/8, 2013 at 8:14
3
Solved
I'm creating an app for playing a ringtone and I'd want to know the current time in milliseconds of the played ringtone every time.
CMTime cTime = player_.currentTime;
float currentTime = cTime.va...
Hautemarne asked 11/5, 2011 at 15:21
1
Solved
I was trying to make use of AVPlayer's addBoundaryTimeObserverForTimes method from swift and ran into a problem converting CMTimes to NSValues, which is what addBoundaryTimeObserverForTimes take as...
Osmium asked 17/10, 2014 at 17:15
1
Solved
I don't understand why this is happening. I'm trying to us CMTimeMake:
CMTime cmTime = CMTimeMake(60, 1);
The imports of .h are:
#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlaye...
Deletion asked 26/9, 2014 at 20:18
1
Solved
I try to capture video:
https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/04_MediaCapture.html#//apple_ref/doc/uid/TP40010188-CH5-SW26
var maxDura...
2
Solved
I'm attempting to play a video with AVFoundation. I am using the following code for a button that advances the playback by one frame.
It works intermittently, on some executions it will do the rig...
Alexandra asked 23/6, 2011 at 23:26
1
Solved
I was wondering how to make a time range for AVAssetExportSession from time stamps such as:
NSTimeInterval start = [[NSDate date] timeIntervalSince1970];
NSTimeInterval end = [[NSDate date] timeIn...
Jadotville asked 27/5, 2012 at 9:36
2
Solved
Every time I try to generate a still frame from my video asset, it is generated at a time of 0.000.. seconds. I can see this from my log message. The good thing is that I can get the image at time ...
Campestral asked 28/4, 2011 at 22:58
1
© 2022 - 2024 — McMap. All rights reserved.