Comments (9)
The specification is that during a pause, the last frame continues to be sent. This is done to prevent audio and video desynchronization on the viewer's end when video is continuously dropped.
from haishinkit.swift.
Thanks for the clarification.
In this case (with the sample), even after 1/2 min, the encoder still running. Not sure this is only the last frame :)
from haishinkit.swift.
Yes, it will keep running even for 1 hour or 2 hours.
from haishinkit.swift.
Ok thanks for the feedback !
from haishinkit.swift.
But I'm not sure to undestrand "This is done to prevent audio and video desynchronization on the viewer's end when video is continuously dropped."
If the stream/connexion is closed, there is no desynchronization possible issue.
But it can lead to Fatal error: Attempted to read an unowned reference but object 0x280971800 was already deallocated
when the encoder still running when not necessary. 🤔
from haishinkit.swift.
I see. I'm not a native English speaker, so I'm not quite sure about the main point. It would be helpful if you could explain it more concisely. I think you're talking about that stream.paused = false
was set. Is that correct, or am I mistaken? https://shogo4405.github.io/HaishinKit.swift/Classes/RTMPStream.html#/s:10HaishinKit10RTMPStreamC6pausedSbvp
from haishinkit.swift.
I'm not a native English speaker so I'm probably not very clear also sorry.
I'm talking about when after stream.close()
, the encoder is still running. To reproduce it:
- Take the example project
- Start the stream with an RTMP destination
- Stop (close) the stream
- Place a breakpoint in VideoCodec
append()
The append()
in the VideoCodec is still running even after a stream.close()
from haishinkit.swift.
It was an unintended behavior, so I have fixed it. Thank you.
from haishinkit.swift.
Thank you !
from haishinkit.swift.
Related Issues (20)
- MultiCam does not work in SwiftUI HOT 2
- stream.videoCapture(for: 0)?.... is super slow HOT 1
- multiCamNotSupported when rotating to Selfie camera HOT 2
- [BUG] Updating NetStream.multiCamCaptureSettings.Mode doesn't work HOT 2
- [Crash] App crashes due to thread-safe issue of RTMPConnection.uri HOT 3
- running ios example with SRT does not work with srt-live-transmit
- It is very slow to rotate camera in PiP mode HOT 4
- MTHKView with many VideoEffects - preview is lagging HOT 5
- What happens when playing pure audio fails? We only did audio push-pull streaming, but we ran into problems playing it back. HOT 6
- When I closed the stream and then turned it back on, the log showed that it was connected, but frequent switching results in low transmission speed HOT 2
- Recording is broken if using an audio sample rate is set to 44.1 kHz HOT 1
- App audio performance issue HOT 3
- videoCodecErrorOccurred reason=failedToFlame(status: 0), description=The operation couldn’t be completed. (HaishinKit.IOVideoUnitError error 3.) HOT 2
- Metadata issue leading to out-of-sync audio after recording on server HOT 16
- RTMP: First AVC interframe has timestamp delta == 0
- CPU usage increases after SRT Playback ends HOT 1
- ReplayKit and multicam .audioMic issue HOT 6
- Exception "required condition is false: [_nodes containsObject: node]" when I close RTMP stream connection HOT 6
- LTE and 5G Network Connection Failure: POSIXErrorCode(rawValue: 50): Network is down HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haishinkit.swift.