26 Commits (db7eba428c90d35b4065d1e04212ed5815e08cd7)

Author SHA1 Message Date
thegobot db7eba428c
change resolution on fly
It is also necessary to send the SPS\PPS along with the keyframe, in addition to the AVCSequenceHeader

Now all players do not freeze and change resolution anywhere in the stream!
Tested: PotPlayer, MPC (hard accel\soft), Chrome, Forefox, FFplay (also with h264_qsv decoder)

See
https://github.com/begeekmyfriend/yasea/issues/832
4 years ago
begeekmyfriend fea87c86f8 Fix white line on left side of the screen
The buffer address is forced to be aligned by allocateDirect method in
ByteBuffer so the valid data may not be stored from the first byte of the
buffer witch is still returned by the array method in ByteBuffer. So we need
to substitute allocate method for allocate direct method when fetching the
image from the camera.

Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com>
7 years ago
begeekmyfriend 0984dd5907 Use volatile flag for communication
Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com>
8 years ago
begeekmyfriend 9a3984d463 Move disconnection into handler thread
Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com>
8 years ago
begeekmyfriend fd27c36c4f Use volatile variable for communication
Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com>
8 years ago
Jeffer 80bbecf363 Bugfix. Add sps pps reset to flv reset() 8 years ago
Leo Ma cdb653070a Merge branch 'master' into master 8 years ago
Jeffer 4ebc531b43 Bugfix. 8 years ago
Jeffer 330942cb82 Bugfix. 8 years ago
Leo Ma b7a613fbb7 Improve code quality
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Jeffer dc0be00732 only search startcode 4 byte(00 00 00 01 standard h264 encoder) in searchAnnexb 8 years ago
Leo Ma 77c692ae39 Merge branch 'master' into master 8 years ago
Jeffer c617aff822 only search startcode 4 byte(00 00 00 01 standard h264 encoder) in searchAnnexb 8 years ago
Leo Ma 84b10e1870 Annexb search optimization
Assume there always be single slice for each video frame when sps and
pps are found. That would promote efficiency on some low-end devices.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma da8ca49ebb Ignore annexb exception processing
Some devices produce unstandard H.264 slice without startcode. So we
ignore the annexb exception processing since it does not matter for
streaming.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
begeekmyfriend f6dfbe3f62 Fix audio sampling in FLV muxer Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com> # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch master # Your branch is up-to-date with 'origin/master'. # # Changes to be committed: # modified: library/src/main/java/net/ossrs/yasea/SrsFlvMuxer.java # 8 years ago
Leo Ma 470b338588 Remove out-of-date comment
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma a0a7321e9c Fix FLV tag buffer overflow
The length of tag should be calculated completly.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma 6d7e296205 Fix FLV tag buffer overflow
Add header size in encoded stream

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma bbbb29ef7d Fix FLV allocation buffer overflow
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma ad45075ac1 Fix soft encoding mosaic
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
8 years ago
Leo Ma a50396c567 Clear frame cache before close consumer thread
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 2767ac5400 GC optimization
Reduce the count of garbage collection in data flow and improve the
reusability of the data buffer.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 6c44514793 Substitute message handler for exception
Reduce try-catch blocks for the whole project.

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma 766be308ea Seperate RTMP packet
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma adccd4cfb0 Seperate library module from app module
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago