Skip to content

A iOS project be used for recording video/audio stream in real time

Notifications You must be signed in to change notification settings

zdwsj/CameraRtmpSDK

 
 

Repository files navigation

A iOS project be used for recording video stream in real time

this project was created base in ffmpeg. By sampling and resampling the video stream, we encode the video/audio stream to H.264/AAC. And also, we create H.264/AAC parser to help us understand that structure. hope it can help you.

Blog to Introduction

利用FFmpeg 开发音视频流(三)——将视频 YUV 格式编码成 H264

深入浅出理解视频编码H264结构

i did write a blog to introduce this project , hope it can help you to comprehend it.

How to Use

If you want to test Vido (H.264), fllow this.

self.session = [[ABSSimpleSession alloc] initWithVideoSize:CGSizeMake(640, 480)
                                                       fps:30
                                                   bitrate:1000000
                                   useInterfaceOrientation:true
                                               cameraState:ABSCameraStateFront previewFrame:self.view.bounds];
self.session.delegate = self;
[self.view addSubview:self.session.previewView];

[self.session startVideoRecord];

// close it 
[self.session endVidoeRecord];

But if you want to test audio (AAC)

self.session = [[ABSSimpleSession alloc] initWithAudioSampleRate:44100. channelCount:2];
self.session.delegate = self;
[self.session startAudioRecord];

// close it 
[self.session endAudioRecord];

Update

2017.11.1 Update project to runnable and and modify test API, enjoy it

About

A iOS project be used for recording video/audio stream in real time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C++ 95.8%
  • C++ 3.7%
  • Objective-C 0.5%