开发者

Is it possible to route AVAssetWriter to a network stream in iOS4?

开发者 https://www.devze.com 2023-03-07 06:49 出处:网络
AVAssetWriter takes a file URL as an argument and writes buffers appended to its AVAssetWriterInput to that file.

AVAssetWriter takes a file URL as an argument and writes buffers appended to its AVAssetWriterInput to that file.

AVAssetWriter* assetWriter = [[AVAssetWriter alloc]
    initWithURL:[NSURL URLWithString:@"...fileURL..."]
    fileType:AVFileTypeMPEG4
    error:&error];

If a network URL is specified (i.e. RTSP - a server expecting a live streaming source), an exception is thrown as a file-based URL is required.

Is there another way of acc开发者_高级运维essing the asset writer output? I want to take advantage of the integrated H.264 encoding and just access the encoded data bit by bit to stream it over the network.


No.

Capture the raw samples instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消