shogo4405 / HaishinKit.swift

Camera and Microphone streaming library via RTMP and SRT for iOS, macOS, tvOS and visionOS.
BSD 3-Clause "New" or "Revised" License
2.76k stars 612 forks source link

Unable to publish stream #744

Closed ideal8173 closed 4 years ago

ideal8173 commented 4 years ago

When I'm trying to stream, video is not showing to viewer, i'm getting this log:

2020-09-02 18:15:43.346710+0530 HashinkitLiveStream[624:111517] [MC] Reading from public effective user settings. 2020-02-09 18:15:43.456 [Info] [com.haishinkit.HaishinKit] [VideoIOComponent.swift:96] fps > (fps: 30.0, duration: C.CMTime(value: 100, timescale: 3000, flags: C.CMTimeFlags(rawValue: 1), epoch: 0)) 2020-02-09 18:15:44.777 [Warn] [com.haishinkit.HaishinKit] [RTMPConnection.swift:380] on(status:) > 2020-02-09 18:15:45.124 [Warn] [com.haishinkit.HaishinKit] [RTMPConnection.swift:380] on(status:) > 2020-02-09 18:15:45.843 [Info] [com.haishinkit.HaishinKit] [AudioConverter.swift:94] inSourceFormat > AudioStreamBasicDescription(mSampleRate: 44100.0, mFormatID: 1819304813, mFormatFlags: 12, mBytesPerPacket: 2, mFramesPerPacket: 1, mBytesPerFrame: 2, mChannelsPerFrame: 1, mBitsPerChannel: 16, mReserved: 0) 2020-02-09 18:15:45.844 [Info] [com.haishinkit.HaishinKit] [AudioConverter.swift:81] formatDescription > Optional(<CMAudioFormatDescription 0x28312ea30 [0x1d22e9430]> { mediaType:'soun' mediaSubType:'aac ' mediaSpecific: { ASBD: { mSampleRate: 44100.000000 mFormatID: 'aac ' mFormatFlags: 0x2 mBytesPerPacket: 0 mFramesPerPacket: 1024 mBytesPerFrame: 0 mChannelsPerFrame: 1 mBitsPerChannel: 0 } cookie: {(null)} ACL: {(null)} FormatList Array: {(null)} } extensions: {(null)} }) 2020-02-09 18:15:45.855 [Info] [com.haishinkit.HaishinKit] [AudioConverter.swift:72] actualBitrate > 32000

Have you any idea what i missing ?

shogo4405 commented 4 years ago

Please use an issue template. In this case, It's wrong streamName and RTMP URL pairs.