Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8964131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:31:01+00:00 2026-06-15T16:31:01+00:00

I make a FFMPEG-based player for ios. It works fine on simulator, but on

  • 0

I make a FFMPEG-based player for ios. It works fine on simulator, but on real-device (iPhone 4) the frame rate is low and make my audio and video out of sync. the player works fine on iPhone 4s, so I guess it’s just problem about device’s computing power.

So, is there anyway to build FFMPEG optimized for iOS device (armv7, arvm7s arch)? or is there anyway to utilize ios device hardware to decode video stream?

My video stream is encode in H264/AAC.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:31:02+00:00Added an answer on June 15, 2026 at 4:31 pm

    Those streams should play just fine, I assume since your using ffmpeg you are not using a video protocol that iOS supports directly.

    We use ffmpeg to do rtsp/rtmp and we get good performance with h264/aac

    There are a number of factors that contribute to av/sync issues, usually some type of pre-buffering of the video is required, also network plays a big part in it.

    As to your second question, hardware encoding is only available via avfoundation, you can use avassetwriter to encode your video, but again depends wether or not you need real-time.

    see this link https://github.com/mooncatventures-group/FFPlayer-beta1/blob/master/FFAVFrames-test/ViewController.m

    -(void) startRecording {
    
        //  // create the AVComposition
        //  [mutableComposition release];
        //  mutableComposition = [[AVMutableComposition alloc] init];
    
    
        movieURL = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/%llu.mov", NSTemporaryDirectory(), mach_absolute_time()]];
    
    
        NSError *movieError = nil;
        assetWriter = [[AVAssetWriter alloc] initWithURL:movieURL 
                                                fileType: AVFileTypeQuickTimeMovie 
                                                   error: &movieError];
        NSDictionary *assetWriterInputSettings = [NSDictionary dictionaryWithObjectsAndKeys:
                                                  AVVideoCodecH264, AVVideoCodecKey,
                                                  [NSNumber numberWithInt:FRAME_WIDTH], AVVideoWidthKey,
                                                  [NSNumber numberWithInt:FRAME_HEIGHT], AVVideoHeightKey,
                                                  nil];
        assetWriterInput = [AVAssetWriterInput assetWriterInputWithMediaType: AVMediaTypeVideo
                                                              outputSettings:assetWriterInputSettings];
        assetWriterInput.expectsMediaDataInRealTime = YES;
        [assetWriter addInput:assetWriterInput];
    
        assetWriterPixelBufferAdaptor = [[AVAssetWriterInputPixelBufferAdaptor  alloc]
                                         initWithAssetWriterInput:assetWriterInput
                                         sourcePixelBufferAttributes:nil];
        [assetWriter startWriting];
    
        firstFrameWallClockTime = CFAbsoluteTimeGetCurrent();
        [assetWriter startSessionAtSourceTime:kCMTimeZero];
        startSampleing=YES;
    }
    

    The one drawback right now is that a way needs to be determined to read the encoded data as its being written, believe me when I say there are a few of us developers trying to figure out how to do that as we I write this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to install Video-ffmpeg but sudo make shows this error, FFmpeg.xs:7:22: fatal
I am trying to compile last FFmpeg for iPhone, but I am getting an
I've tried all sorts of parameters with ffmpeg to make this work, but they
I'm trying to make a Video Player using ffmpeg and I use this tutorial
I'm trying to make a create a dnxhd mov with ffmpeg but can't seem
I'm dying to know how I can make a GUI for ffmpeg and jhead
In the last step of installing FFmpeg-PHP, I had to type sudo make install
So I want to make an app for the iPhone that will play live
I want to make a little web-frontend for copying (rsync) and encoding (ffmpeg) files
I need to make FFMPEG accessible from the CMD prompt in Windows 7. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.