Closed prikshitgupta closed 2 months ago
Hi Pedro, Any update?
Hello,
Mute audio feature is not available for now. I will add this feature in the next days. About audio stuttering. Can you tell me audio configuration? I will try reproduce the case today and fix it.
Hello,
Mute audio feature is not available for now. I will add this feature in the next days. About audio stuttering. Can you tell me audio configuration? I will try reproduce the case today and fix it.
Hello,
Mute audio feature is not available for now. I will add this feature in the next days. About audio stuttering. Can you tell me audio configuration? I will try reproduce the case today and fix it.
private func startStreaming(endpoint: String) {
guard let rtmpDisplay = rtmpDisplay else { return }
rtmpDisplay.setAudioCodec(codec: .AAC)
rtmpDisplay.setVideoCodec(codec: .H264)
// Set the audio and video parameters
let audioBitrate = 256 * 1024
let audioSampleRate = 48000
let isStereo = true
let videoFPS = 30
let videoBitrate = 13500
let iFrameInterval = 2
let rotation = 0
// Prepare audio and video
if rtmpDisplay.prepareAudio(bitrate: audioBitrate, sampleRate: audioSampleRate, isStereo: isStereo) && rtspDisplay.prepareVideo(fps: videoFPS, bitrate: videoBitrate, iFrameInterval: iFrameInterval, rotation: rotation) {
do {
// Configure and activate the audio session
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, options: [.defaultToSpeaker, .mixWithOthers])
try AVAudioSession.sharedInstance().setActive(true)
} catch {
print("Failed to set audio session category: \(error)")
}
// Start the stream
rtmpDisplay.startStream(endpoint: endpoint)
} else {
print("Failed to prepare audio or video.")
}
}
here is my config. I tried few different configs but issue is constant.
when you go live on youtube and add rtmp url and stream key to startStream you will hear stuttering in live stream on youtube.
Hi @pedroSG94, Did you check the issue?
Hello,
I will start with this today
Hello,
I will start with this today
thank you
private func writeNaluSize(buffer: inout [UInt8], offset: Int, size: Int) { // Check if size is within the range of a 32-bit unsigned integer guard size <= UInt32.max else { fatalError("Size exceeds maximum value of a 32-bit unsigned integer") }
buffer[offset] = UInt8(size >> 24 & 0xFF)
buffer[offset + 1] = UInt8(size >> 16 & 0xFF)
buffer[offset + 2] = UInt8(size >> 8 & 0xFF)
buffer[offset + 3] = UInt8(size & 0xFF)
}
I Fixed this in RtmpH264Packet if you can implement it in next release library was making app crash
Hello,
Thank for the report but that fix will throw an error anyway. It is not a valid fix.
About the main issue. I was able to reproduce the audio issue and I'm working on it. Also, I added mute/unmute feature in the last commit: https://github.com/pedroSG94/RootEncoder-iOS/commit/cbf7c1f9edc5fcbafc97274124c5987fa890a3ec
Hello,
Thank for the report but that fix will throw an error anyway. It is not a valid fix.
About the main issue. I was able to reproduce the audio issue and I'm working on it. Also, I added mute/unmute feature in the last commit: cbf7c1f
great to hear mute option is here, waiting for youtube audio fix and if you fix the issue with writeNaluSize as well please
Hello,
Thank for the report but that fix will throw an error anyway. It is not a valid fix.
About the main issue. I was able to reproduce the audio issue and I'm working on it. Also, I added mute/unmute feature in the last commit: cbf7c1f
new update is not being fetched by SPM
Hello, Thank for the report but that fix will throw an error anyway. It is not a valid fix. About the main issue. I was able to reproduce the audio issue and I'm working on it. Also, I added mute/unmute feature in the last commit: cbf7c1f
new update is not being fetched by SPM
I just upload version 0.0.3 for the mute feature. (I was waiting until finish the fix for the audio)
Hello, Thank for the report but that fix will throw an error anyway. It is not a valid fix. About the main issue. I was able to reproduce the audio issue and I'm working on it. Also, I added mute/unmute feature in the last commit: cbf7c1f
new update is not being fetched by SPM
I just upload version 0.0.3 for the mute feature. (I was waiting until finish the fix for the audio)
i can download 0.0.3 now. Mute Unmute is working fine now.
i saw you fixed "[rtmp fix send video packets too large]"
but spm not showing any update
i saw you fixed "[rtmp fix send video packets too large]"
but spm not showing any update
Hi @pedroSG94 any update in this?
Hello,
I haven't done any uploads. I'm with the audio fix and I will upload a version after that.
Hello,
I haven't done any uploads. I'm with the audio fix and I will upload a version after that.
ok thank you
Hello,
I finally found the error about audio shuttering in YT but this fix breaks others features so it is not ready yet. I will report back when all is ready and I will upload a new version
Hello,
I finally found the error about audio shuttering in YT but this fix breaks others features so it is not ready yet. I will report back when all is ready and I will upload a new version
thank you for the update, i will be waiting
Fixed and uploaded. Try with version 0.0.4
still has same issue its less but when i speak it cracks the voice
ok, I will check again
Hello,
Check again, this should be working with version 0.0.5
working perfect now, thanks a ton.
fix below issue as well please
private func writeNaluSize(buffer: inout [UInt8], offset: Int, size: Int) { // Check if size is within the range of a 32-bit unsigned integer guard size <= UInt32.max else { fatalError("Size exceeds maximum value of a 32-bit unsigned integer") }
buffer[offset] = UInt8(size >> 24 & 0xFF) buffer[offset + 1] = UInt8(size >> 16 & 0xFF) buffer[offset + 2] = UInt8(size >> 8 & 0xFF) buffer[offset + 3] = UInt8(size & 0xFF) }
fixed, thank you so much 😊
youtube audio is doing stuttering, how i can fix that? how i can mute and unmute mic? its likely encoding issue