Leo Ma
23953cb2c4
Use getApplicationContext for context reference
...
UI context should not be referred by static object whose life cycle is
as long as the program in case of memory leak.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
f7b2f8da83
Remove getNumberOfCameras method
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
92129f8291
Fix bug
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
7fc877bff9
Remove SrsPublisher class dependency in magicfilter
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
e6d07c7c6d
Remove stopRecord method in stopPublish
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
805093d63e
Fix return value bug
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
e946126c44
Do not throw uncaught exception in UI thread
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
45b58145c7
Remove connection flag on sample writing
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
61fd978563
Fix video frame cache counting bug
...
The bug is the side effect from the preceding RTMP writer threading
optimization.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
2203e1d9c8
Audio recording compatibility
...
As AudioRecord SDK comment says, 44,100Hz is the currently only rate
that is guaranteed to work on all devices. And so is the channel
configuration in mono.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
24cc6e6e92
Rename
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
638df0209c
Merge branch 'master' into gpuimage
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
a40d818294
Add stop recording method into stop operation on UI
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
b1f35ffe89
Optimize RTMP writer thread
...
Merge RTMP writer thread into FLV muxer thread as well as connection thread.
And seperate connection method from the frame cache fetch loop.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
9339e9d544
Reduce streaming delay during connection
...
Yasea will not connect to the server until the first key frame is met.
But meanwhile the frame cache still accumulates some unnecessary frames
which would make serveral seconds delay on player end. Therefore we
change the strategy that the frame cache will not receive any frame
until the first key frame is met on connection.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
9c1385c22c
Fix PTS data type bug
...
PTS which should be 64-bit size was set as long type in x264_encode()
and thus the value would jump to negative as 32-bit overflowed.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
d69477ae0d
Merge branch 'master' of github.com:begeekmyfriend/yasea
9 years ago
Leo Ma
03b2dbb1e4
Fix PTS data type bug
...
PTS which should be 64-bit size was set as long type in x264_encode()
and thus the value would jump to negative as 32-bit overflowed.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
3f905fd9fd
Merge pull request #102 from thegobot/patch-5
...
Update SrsPublisher.java
9 years ago
thegobot
b2b65a9fef
Update SrsPublisher.java
...
FOCUS_MODE_CONTINUOUS_PICTURE
9 years ago
Leo Ma
17f3904321
Add stopRecord in stopPublish
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
b29ee3a77a
Modify network weak exception as event handler
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
4adb67785b
Modify network weak exception as event handler
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
144608b4f6
Remove surfaceDestoryed overrided method
...
For backstage pause and resume.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
72f9273fb3
Update
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
dbf20ce0bf
Add gpuimage
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
cf0ec99282
Set app platform option
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
116c70609d
Add app platform option
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
94652a884f
Rename
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
47a5756ba8
Use DTS as RTMP AV packet timestamp
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
65153631f7
Audio only flag control
9 years ago
Leo Ma
10b4732188
Merge pull request #65 from thegobot/patch-1
...
Update SrsEncoder.java
9 years ago
thegobot
d798c95bfd
Update SrsEncoder.java
...
setCameraFront()
setCameraBack()
9 years ago
Leo Ma
c42c84a8a1
SDK
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
b2ec6c8e55
Fix MP4 recording bug
...
AV tracks and samples should be cleared when recording finishes.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
6c922d3026
Open x264 preset setting method from JNI
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
3b79c48a0a
Remove unneccesary log
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
9f8c243f61
Update
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
50f364b356
Add YUV sampling FPS detect
...
Some android cameras have low sampling fps therefore the output fps is
not large enough for streaming.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
eed0b14a3e
Promote output fps for x264
...
Use "superfast" as the presetting and ABR as bitrate control.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
73a65b9e4d
Open multi-threaded feature of x264 for Android
...
In NDK lpthread is integrated into libc, so the configuration should
check libc instead of lpthread as the condtion of multi-threaded option.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
f947fb5f10
Not repeat nal headers in x264
...
Repeat nal headers in front of each I-frame will produce lower output fps.
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
1e49d04a39
Fix soft and hard encoding selection bug
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
b87bc2d616
Add configuration header
9 years ago
Leo Ma
6d10b3915a
Process video in UI thread for less CPU occupation
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
945d9961fb
Update UI for encoder switch
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
c840be301f
Set the encoding resolution as 32x for MTK codec
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
035637d9f7
Update
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
d3d3135aa7
Add x264 for soft encoding
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago
Leo Ma
903c655e7b
Add camera focus mode
...
Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
9 years ago