• <small id='owfPp'></small><noframes id='owfPp'>

      <i id='owfPp'><tr id='owfPp'><dt id='owfPp'><q id='owfPp'><span id='owfPp'><b id='owfPp'><form id='owfPp'><ins id='owfPp'></ins><ul id='owfPp'></ul><sub id='owfPp'></sub></form><legend id='owfPp'></legend><bdo id='owfPp'><pre id='owfPp'><center id='owfPp'></center></pre></bdo></b><th id='owfPp'></th></span></q></dt></tr></i><div id='owfPp'><tfoot id='owfPp'></tfoot><dl id='owfPp'><fieldset id='owfPp'></fieldset></dl></div>

        <tfoot id='owfPp'></tfoot>

        <legend id='owfPp'><style id='owfPp'><dir id='owfPp'><q id='owfPp'></q></dir></style></legend>
          <bdo id='owfPp'></bdo><ul id='owfPp'></ul>
      1. 创建一个从 iphone 屏幕创建视频并从耳机/音频输入添加音频的应用程序

        时间:2023-10-23
        <legend id='KkIRi'><style id='KkIRi'><dir id='KkIRi'><q id='KkIRi'></q></dir></style></legend>
            <bdo id='KkIRi'></bdo><ul id='KkIRi'></ul>

            <small id='KkIRi'></small><noframes id='KkIRi'>

              <tbody id='KkIRi'></tbody>

              • <tfoot id='KkIRi'></tfoot>
              • <i id='KkIRi'><tr id='KkIRi'><dt id='KkIRi'><q id='KkIRi'><span id='KkIRi'><b id='KkIRi'><form id='KkIRi'><ins id='KkIRi'></ins><ul id='KkIRi'></ul><sub id='KkIRi'></sub></form><legend id='KkIRi'></legend><bdo id='KkIRi'><pre id='KkIRi'><center id='KkIRi'></center></pre></bdo></b><th id='KkIRi'></th></span></q></dt></tr></i><div id='KkIRi'><tfoot id='KkIRi'></tfoot><dl id='KkIRi'><fieldset id='KkIRi'></fieldset></dl></div>
                  本文介绍了创建一个从 iphone 屏幕创建视频并从耳机/音频输入添加音频的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试从 ipad 屏幕创建教程视频 在这个应用程序(ShowME)中完成使用 AVAssetWriter 我能够捕获屏幕视频.

                  I m trying to create a tutorial video from ipad screen as done in this application (ShowME) Using AVAssetWriter I am able to capture a video of the screen.

                  我尝试使用 AVCaptureDevice,但它不起作用.我不知道出了什么问题.我从这个 链接学习了从 iPhone 屏幕捕捉视频 - 一个非常好的教程.但它不会捕获任何音频以及屏幕视频.所以我试了一下:

                  I tried using AVCaptureDevice, but Its not working. I dont know what is going wrong. I learned capturing video from iphone screen from this link - A very nice turorial. But it does not captures any audio along with screen video. So I gave a try like this:

                   -(void)setUpMike{
                      NSError* error = nil;
                  // Setup the audio input
                  AVCaptureDevice *audioDevice     = [AVCaptureDevice defaultDeviceWithMediaType: AVMediaTypeAudio];
                  AVCaptureDeviceInput *audioInput = [AVCaptureDeviceInput deviceInputWithDevice:audioDevice error:&error ];     
                  // Setup the audio output
                  _audioOutput = [[AVCaptureAudioDataOutput alloc] init];
                  
                  // Create the session
                  _capSession = [[AVCaptureSession alloc] init];
                  
                  [_capSession addInput:audioInput];
                  
                  [_capSession addOutput:_audioOutput];
                  
                  _capSession.sessionPreset = AVCaptureSessionPresetLow;     
                  
                  // Setup the queue
                  dispatch_queue_t queue = dispatch_queue_create("MyQueue", NULL);
                  //    [_videoOutput setSampleBufferDelegate:self queue:queue];
                  [_audioOutput setSampleBufferDelegate:self queue:queue];
                  dispatch_release(queue);
                  }
                  

                  我添加了委托方法

                  - (void)captureOutput:(AVCaptureOutput *)captureOutput
                  didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
                         fromConnection:(AVCaptureConnection *)connection
                  

                  这永远不会被调用.希望任何人都可以帮助我解决这个问题.我从未将 AVFoundation 用于视频和音频目的,所以可能是一个新手问题.我阅读了与此相关的其他帖子,发现它们正在将音频与视频合并.我认为我们可以通过这种方式.如果这是不可能的,请通知我.

                  This is never called. Hope any one can help me around for this. I have never used AVFoundation for video and audio purpose, So may be a newbie Question. I read other posts relating this and found that the are merging audio with video. I think we can go through this way. Please inform me if this is not possible.

                  提前致谢:)

                  推荐答案

                  我最终将音频录制为不同的文件,然后将它们合并以创建一个有音频和视频的视频.我使用 AVMutableComposition 创建了最终视频.如果有人知道如何在使用 AVAssetWriter 创建视频时使用资产录制它,请帮助我.我可能会更改我的代码:)

                  I finally recorder audio as different file and then merged them to create a video with audio and video. I used AVMutableComposition to create a final video. If any one know how to record it with assets as you are creating video with AVAssetWriter, then please help me out. I might change my code :)

                  这篇关于创建一个从 iphone 屏幕创建视频并从耳机/音频输入添加音频的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:移动 Safari 中的线条伪影 下一篇:如何在 iPhone4 sdk 中退出(退出)应用程序

                  相关文章

                      <i id='rab5w'><tr id='rab5w'><dt id='rab5w'><q id='rab5w'><span id='rab5w'><b id='rab5w'><form id='rab5w'><ins id='rab5w'></ins><ul id='rab5w'></ul><sub id='rab5w'></sub></form><legend id='rab5w'></legend><bdo id='rab5w'><pre id='rab5w'><center id='rab5w'></center></pre></bdo></b><th id='rab5w'></th></span></q></dt></tr></i><div id='rab5w'><tfoot id='rab5w'></tfoot><dl id='rab5w'><fieldset id='rab5w'></fieldset></dl></div>
                      • <bdo id='rab5w'></bdo><ul id='rab5w'></ul>
                      <tfoot id='rab5w'></tfoot>
                    1. <small id='rab5w'></small><noframes id='rab5w'>

                    2. <legend id='rab5w'><style id='rab5w'><dir id='rab5w'><q id='rab5w'></q></dir></style></legend>