Skip to content

Commit

Permalink
Added 120fps Video Recorder sample
Browse files Browse the repository at this point in the history
  • Loading branch information
shu223 committed Jan 5, 2014
1 parent 750aca9 commit 12c3141
Show file tree
Hide file tree
Showing 16 changed files with 704 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ Region monitoring demo using iBeacon.

![](http://f.cl.ly/items/220D2F210D1x1D0L1Q20/beacon__.gif)

Related Repository: [PulsingHalo](https://github.com/shu223/PulsingHalo)


###120fps Video Recording

SLO-MO video recorder using AVFoundation. It works with 120fps on iPhone5s.

![](http://f.cl.ly/items/360a271y1G3Q2C2a3p2d/IMG_8907_r1_c1.jpg)

Example:

![](http://f.cl.ly/items/1b3Q0h0k3k2m261s3R3n/samplemovie__.gif)

<p><a href="http://vimeo.com/82064431">See the 120fps Slo-Mo video in Vimeo 120fps.</a></p>

Related Repository: [SlowMotionVideoRecorder](https://github.com/shu223/SlowMotionVideoRecorder)


###Smile Detection
Expand Down
24 changes: 24 additions & 0 deletions iOS7Sampler.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@
8AC907551850A66000A74F2E /* PulsingHaloLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AC907541850A66000A74F2E /* PulsingHaloLayer.m */; };
8AC907571850AB8000A74F2E /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8AC907561850AB8000A74F2E /* CoreBluetooth.framework */; };
8AC907591850B2F600A74F2E /* IPhone_5s@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8AC907581850B2F600A74F2E /* IPhone_5s@2x.png */; };
8ACDEF3E1878F61D00BC94F6 /* AVCaptureManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 8ACDEF3D1878F61D00BC94F6 /* AVCaptureManager.m */; };
8ACDEF421878F68D00BC94F6 /* SloMoVideoRecordViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8ACDEF401878F68D00BC94F6 /* SloMoVideoRecordViewController.m */; };
8ACDEF431878F68D00BC94F6 /* SloMoVideoRecordViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8ACDEF411878F68D00BC94F6 /* SloMoVideoRecordViewController.xib */; };
8AEF0F9417FBCCF600D2B9BE /* ReadingListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AEF0F9217FBCCF600D2B9BE /* ReadingListViewController.m */; };
8AEF0F9517FBCCF600D2B9BE /* ReadingListViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8AEF0F9317FBCCF600D2B9BE /* ReadingListViewController.xib */; };
8AEF0F9717FBCDDB00D2B9BE /* SafariServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8AEF0F9617FBCDDB00D2B9BE /* SafariServices.framework */; };
Expand Down Expand Up @@ -282,6 +285,11 @@
8AC907541850A66000A74F2E /* PulsingHaloLayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PulsingHaloLayer.m; sourceTree = "<group>"; };
8AC907561850AB8000A74F2E /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; };
8AC907581850B2F600A74F2E /* IPhone_5s@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "IPhone_5s@2x.png"; sourceTree = "<group>"; };
8ACDEF3C1878F61D00BC94F6 /* AVCaptureManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AVCaptureManager.h; sourceTree = "<group>"; };
8ACDEF3D1878F61D00BC94F6 /* AVCaptureManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AVCaptureManager.m; sourceTree = "<group>"; };
8ACDEF3F1878F68D00BC94F6 /* SloMoVideoRecordViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SloMoVideoRecordViewController.h; sourceTree = "<group>"; };
8ACDEF401878F68D00BC94F6 /* SloMoVideoRecordViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SloMoVideoRecordViewController.m; sourceTree = "<group>"; };
8ACDEF411878F68D00BC94F6 /* SloMoVideoRecordViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SloMoVideoRecordViewController.xib; sourceTree = "<group>"; };
8AEF0F9117FBCCF600D2B9BE /* ReadingListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReadingListViewController.h; sourceTree = "<group>"; };
8AEF0F9217FBCCF600D2B9BE /* ReadingListViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReadingListViewController.m; sourceTree = "<group>"; };
8AEF0F9317FBCCF600D2B9BE /* ReadingListViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ReadingListViewController.xib; sourceTree = "<group>"; };
Expand Down Expand Up @@ -490,6 +498,9 @@
8AC9074D1850931C00A74F2E /* BeaconViewController.h */,
8AC9074E1850931C00A74F2E /* BeaconViewController.m */,
8AC9074F1850931C00A74F2E /* BeaconViewController.xib */,
8ACDEF3F1878F68D00BC94F6 /* SloMoVideoRecordViewController.h */,
8ACDEF401878F68D00BC94F6 /* SloMoVideoRecordViewController.m */,
8ACDEF411878F68D00BC94F6 /* SloMoVideoRecordViewController.xib */,
);
path = SampleViewControllers;
sourceTree = "<group>";
Expand Down Expand Up @@ -566,6 +577,7 @@
8A7BF3B117ED8B43004EF216 /* vendor */ = {
isa = PBXGroup;
children = (
8ACDEF3B1878F61D00BC94F6 /* AVCaptureManager */,
8AC907521850A66000A74F2E /* PulsingHalo */,
8A43D5B917F12307005E8BE8 /* ZBCustomTransitions */,
8A43D5B317F11E72005E8BE8 /* SVProgressHUD */,
Expand Down Expand Up @@ -598,6 +610,15 @@
path = PulsingHalo;
sourceTree = "<group>";
};
8ACDEF3B1878F61D00BC94F6 /* AVCaptureManager */ = {
isa = PBXGroup;
children = (
8ACDEF3C1878F61D00BC94F6 /* AVCaptureManager.h */,
8ACDEF3D1878F61D00BC94F6 /* AVCaptureManager.m */,
);
path = AVCaptureManager;
sourceTree = "<group>";
};
8AEFF739181007D5004182BD /* plists */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -697,6 +718,7 @@
8A43D5B717F11E72005E8BE8 /* SVProgressHUD.bundle in Resources */,
8A7BF35E17ED5BB1004EF216 /* m1@2x.png in Resources */,
8A7BF35F17ED5BB1004EF216 /* m2@2x.png in Resources */,
8ACDEF431878F68D00BC94F6 /* SloMoVideoRecordViewController.xib in Resources */,
8A7BF37517ED5BB1004EF216 /* m25@2x.png in Resources */,
8A7BF3A517ED7F5D004EF216 /* stage_4@2x.png in Resources */,
8A7BF39517ED7EF7004EF216 /* MotionEffectViewController.xib in Resources */,
Expand Down Expand Up @@ -786,6 +808,8 @@
8A7BF3BB17ED8B43004EF216 /* HUTransitionAnimator.m in Sources */,
8A6DBC7117F19718004311FE /* MapDirectionsViewController.m in Sources */,
8A6DBC8417F2CDC0004311FE /* ImageFiltersViewController.m in Sources */,
8ACDEF3E1878F61D00BC94F6 /* AVCaptureManager.m in Sources */,
8ACDEF421878F68D00BC94F6 /* SloMoVideoRecordViewController.m in Sources */,
8A7BF38817ED6882004EF216 /* ActivityTypesViewController.m in Sources */,
8A7BF3AF17ED8A9E004EF216 /* CustomTransitionViewController.m in Sources */,
8A7BF1D717ED384C004EF216 /* MasterViewController.m in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "ShutterButton1@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "ShutterButtonStop@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions iOS7Sampler/Images.xcassets/outer1.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "outer1@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions iOS7Sampler/Images.xcassets/outer2.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "outer2@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion iOS7Sampler/MasterViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ - (void)viewDidLoad
kItemKeyClassPrefix: @"Beacon",
},

// 120fps Video Recording
@{kItemKeyTitle: @"120 fps SLO-MO video recording",
kItemKeyDescription: @"SLO-MO video recorder using AVFoundation. It works with 120fps on iPhone5s.",
kItemKeyClassPrefix: @"SloMoVideoRecord",
},

// Smile Detection
@{kItemKeyTitle: @"Smile Detection",
kItemKeyDescription: @"Smile Detection using CIDetectorSmile and new properties of CIFeature such as \"bounds\".",
Expand Down Expand Up @@ -114,7 +120,7 @@ - (void)viewDidLoad
kItemKeyDescription: @"Counting steps and monitoring the activity using CMStepCounter and CMMotionActivityManager. It works only on iPhone5s (M7 chip).",
kItemKeyClassPrefix: @"ActivityTracking",
},

// Static Map Snapshots
@{kItemKeyTitle: @"Static Map Snapshots",
kItemKeyDescription: @"Creating a snapshot with MKMapSnapshotOptions, MKMapSnapshotter.",
Expand Down
13 changes: 13 additions & 0 deletions iOS7Sampler/SampleViewControllers/SloMoVideoRecordViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// SloMoVideoRecordViewController.h
// https://github.com/shu223/SlowMotionVideoRecorder
//
// Created by shuichi on 1/5/14.
// Copyright (c) 2014 Shuichi Tsutsumi. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SloMoVideoRecordViewController : UIViewController

@end
Loading

0 comments on commit 12c3141

Please sign in to comment.