AVAssetWriter takes the URL of the file as an argument and writes buffers added to its AVAssetWriterInput to this file.
AVAssetWriter* assetWriter = [[AVAssetWriter alloc] initWithURL:[NSURL URLWithString:@"...fileURL..."] fileType:AVFileTypeMPEG4 error:&error];
If a network URL is specified (i.e., an RTSP server waiting for a streaming source), an exception is thrown because a file-based URL is required.
Is there any other way to access the exit of the resource owner? I want to use the integrated H.264 encoding and just get access to the encoded data by bits to transfer them over the network.
Anton source share