Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
PBJVision, add a video profile level to the compression settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Piemonte committed Apr 24, 2014
1 parent 43050f9 commit 2d5654f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/PBJVision.m
Expand Up @@ -1740,7 +1740,9 @@ - (BOOL)_setupMediaWriterVideoInputWithSampleBuffer:(CMSampleBufferRef)sampleBuf
break;
}

NSDictionary *compressionSettings = @{ AVVideoAverageBitRateKey : @(_videoBitRate),
// TODO: expose a means for adding addition options to setings
NSDictionary *compressionSettings = @{ AVVideoProfileLevelKey : AVVideoProfileLevelH264Baseline30,
AVVideoAverageBitRateKey : @(_videoBitRate),
AVVideoMaxKeyFrameIntervalKey : @(_videoFrameRate) };

NSDictionary *videoSettings = @{ AVVideoCodecKey : AVVideoCodecH264,
Expand Down

0 comments on commit 2d5654f

Please sign in to comment.