h 264 Hardware encoding /decoding For IOS(IPhone/Ipad)? -
h 264 Hardware encoding /decoding For IOS(IPhone/Ipad)? -
i have done real time video processing in ios using avfoundation framework , help of this link.i have tested working fine. want utilize h264 encoding , decoding[before draw] .i seek h264 encoded info avcapturesession ,so have set avvideocodech264 in avcapturesession's videosetting,before start capturing .
nsdictionary* videosettings = [nsdictionary dictionarywithobjectsandkeys:value,key,avvideocodech264,avvideocodeckey, nil]; [captureoutput setvideosettings:videosettings];
above code doesn't produce alter in output buffer,same buffer format before. how accomplish requirement ? possible ? if please help me getting started ,h264 in ios.
there's no direct access encoded keyframes. may found insightful comments here: how stream live video iphone media server wowza?
a pair avvideocodech264, avvideocodeckey
may used parameters in outputsettings
in
nserror *error = nil; nsdictionary *outputsettings = [nsdictionary dictionarywithobjectsandkeys: avvideocodech264, avvideocodeckey, nil]; avassetwriterinput *assetwriterinput = [[avassetwriterinput alloc] initwithmediatype:avmediatypevideo outputsettings:outputsettings]; avassetwriter *assetwriter = [[avassetwriter alloc] initwithurl:fileurl filetype:avfiletypempeg4 error:&error]; if (!error && [assetwriter canaddinput:assetwriterinput]) [assetwriter addinput:assetwriterinput];
iphone ios avfoundation h.264
Comments
Post a Comment