正在显示
4 个修改的文件
包含
128 行增加
和
84 行删除
trunk/research/librtmp/Makefile
100755 → 100644
1 | -.PHONY: clean | 1 | +.PHONY: default clean |
2 | 2 | ||
3 | -srs_publish: srs_publish.c Makefile ../../objs/include/srs_librtmp.h ../../objs/lib/srs_librtmp.a | ||
4 | - gcc srs_publish.c ../../objs/lib/srs_librtmp.a -g -O0 -lstdc++ -o srs_publish | 3 | +default: srs_publish srs_play |
5 | 4 | ||
6 | clean: | 5 | clean: |
7 | - @rm -f srs_publish | 6 | + @rm -f srs_publish srs_play |
7 | + | ||
8 | +srs_publish: srs_publish.c Makefile ../../objs/include/srs_librtmp.h ../../objs/lib/srs_librtmp.a | ||
9 | + gcc srs_publish.c ../../objs/lib/srs_librtmp.a -g -O0 -lstdc++ -o srs_publish | ||
10 | + | ||
11 | +srs_play: srs_play.c Makefile ../../objs/include/srs_librtmp.h ../../objs/lib/srs_librtmp.a | ||
12 | + gcc srs_play.c ../../objs/lib/srs_librtmp.a -g -O0 -lstdc++ -o srs_play |
trunk/research/librtmp/srs_play.c
0 → 100644
1 | +/* | ||
2 | +The MIT License (MIT) | ||
3 | + | ||
4 | +Copyright (c) 2013-2014 winlin | ||
5 | + | ||
6 | +Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
7 | +this software and associated documentation files (the "Software"), to deal in | ||
8 | +the Software without restriction, including without limitation the rights to | ||
9 | +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
10 | +the Software, and to permit persons to whom the Software is furnished to do so, | ||
11 | +subject to the following conditions: | ||
12 | + | ||
13 | +The above copyright notice and this permission notice shall be included in all | ||
14 | +copies or substantial portions of the Software. | ||
15 | + | ||
16 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
17 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
18 | +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
19 | +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
20 | +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
21 | +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
22 | +*/ | ||
23 | +/** | ||
24 | +gcc srs_play.c ../../objs/lib/srs_librtmp.a -g -O0 -lstdc++ -o srs_play | ||
25 | +*/ | ||
26 | + | ||
27 | +#include <stdio.h> | ||
28 | +#include "../../objs/include/srs_librtmp.h" | ||
29 | + | ||
30 | +int main(int argc, char** argv) | ||
31 | +{ | ||
32 | + printf("suck rtmp stream like rtmpdump\n"); | ||
33 | + printf("srs(simple-rtmp-server) client librtmp library.\n"); | ||
34 | + printf("version: %d.%d.%d\n", srs_version_major(), srs_version_minor(), srs_version_revision()); | ||
35 | + | ||
36 | + return 0; | ||
37 | +} |
trunk/research/librtmp/srs_publish.c
100755 → 100644
@@ -29,6 +29,7 @@ gcc srs_publish.c ../../objs/lib/srs_librtmp.a -g -O0 -lstdc++ -o srs_publish | @@ -29,6 +29,7 @@ gcc srs_publish.c ../../objs/lib/srs_librtmp.a -g -O0 -lstdc++ -o srs_publish | ||
29 | 29 | ||
30 | int main(int argc, char** argv) | 30 | int main(int argc, char** argv) |
31 | { | 31 | { |
32 | + printf("publish rtmp stream to server like FMLE/FFMPEG/Encoder\n"); | ||
32 | printf("srs(simple-rtmp-server) client librtmp library.\n"); | 33 | printf("srs(simple-rtmp-server) client librtmp library.\n"); |
33 | printf("version: %d.%d.%d\n", srs_version_major(), srs_version_minor(), srs_version_revision()); | 34 | printf("version: %d.%d.%d\n", srs_version_major(), srs_version_minor(), srs_version_revision()); |
34 | 35 |
trunk/src/srs/srs.upp
100755 → 100644
1 | -file | ||
2 | - main readonly separator, | ||
3 | - ..\main\srs_main_server.cpp, | ||
4 | - ..\main\srs_main_bandcheck.cpp, | ||
5 | - auto readonly separator, | ||
6 | - ..\..\objs\srs_auto_headers.hpp, | ||
7 | - libs readonly separator, | ||
8 | - ..\libs\srs_librtmp.hpp, | ||
9 | - ..\libs\srs_librtmp.cpp, | ||
10 | - core readonly separator, | ||
11 | - ..\core\srs_core.hpp, | ||
12 | - ..\core\srs_core.cpp, | ||
13 | - ..\core\srs_core_autofree.hpp, | ||
14 | - ..\core\srs_core_autofree.cpp, | ||
15 | - kernel readonly separator, | ||
16 | - ..\kernel\srs_kernel_buffer.hpp, | ||
17 | - ..\kernel\srs_kernel_buffer.cpp, | ||
18 | - ..\kernel\srs_kernel_error.hpp, | ||
19 | - ..\kernel\srs_kernel_error.cpp, | ||
20 | - ..\kernel\srs_kernel_log.hpp, | ||
21 | - ..\kernel\srs_kernel_log.cpp, | ||
22 | - ..\kernel\srs_kernel_reload.hpp, | ||
23 | - ..\kernel\srs_kernel_reload.cpp, | ||
24 | - ..\kernel\srs_kernel_stream.hpp, | ||
25 | - ..\kernel\srs_kernel_stream.cpp, | ||
26 | - rtmp-protocol readonly separator, | ||
27 | - ..\rtmp\srs_protocol_amf0.hpp, | ||
28 | - ..\rtmp\srs_protocol_amf0.cpp, | ||
29 | - ..\rtmp\srs_protocol_handshake.hpp, | ||
30 | - ..\rtmp\srs_protocol_handshake.cpp, | ||
31 | - ..\rtmp\srs_protocol_io.hpp, | ||
32 | - ..\rtmp\srs_protocol_io.cpp, | ||
33 | - ..\rtmp\srs_protocol_rtmp.hpp, | ||
34 | - ..\rtmp\srs_protocol_rtmp.cpp, | ||
35 | - ..\rtmp\srs_protocol_rtmp_stack.hpp, | ||
36 | - ..\rtmp\srs_protocol_rtmp_stack.cpp, | ||
37 | - ..\rtmp\srs_protocol_utility.hpp, | ||
38 | - ..\rtmp\srs_protocol_utility.cpp, | ||
39 | - app readonly separator, | ||
40 | - ..\app\srs_core_bandwidth.hpp, | ||
41 | - ..\app\srs_core_bandwidth.cpp, | ||
42 | - ..\app\srs_core_client.hpp, | ||
43 | - ..\app\srs_core_client.cpp, | ||
44 | - ..\app\srs_core_codec.hpp, | ||
45 | - ..\app\srs_core_codec.cpp, | ||
46 | - ..\app\srs_core_conn.hpp, | ||
47 | - ..\app\srs_core_conn.cpp, | ||
48 | - ..\app\srs_core_config.hpp, | ||
49 | - ..\app\srs_core_config.cpp, | ||
50 | - ..\app\srs_core_encoder.hpp, | ||
51 | - ..\app\srs_core_encoder.cpp, | ||
52 | - ..\app\srs_core_forward.hpp, | ||
53 | - ..\app\srs_core_forward.cpp, | ||
54 | - ..\app\srs_core_hls.hpp, | ||
55 | - ..\app\srs_core_hls.cpp, | ||
56 | - ..\app\srs_core_http.hpp, | ||
57 | - ..\app\srs_core_http.cpp, | ||
58 | - ..\app\srs_core_log.hpp, | ||
59 | - ..\app\srs_core_log.cpp, | ||
60 | - ..\app\srs_core_refer.hpp, | ||
61 | - ..\app\srs_core_refer.cpp, | ||
62 | - ..\app\srs_core_pithy_print.hpp, | ||
63 | - ..\app\srs_core_pithy_print.cpp, | ||
64 | - ..\app\srs_core_thread.hpp, | ||
65 | - ..\app\srs_core_thread.cpp, | ||
66 | - ..\app\srs_core_server.hpp, | ||
67 | - ..\app\srs_core_server.cpp, | ||
68 | - ..\app\srs_core_st.hpp, | ||
69 | - ..\app\srs_core_st.cpp, | ||
70 | - ..\app\srs_core_socket.hpp, | ||
71 | - ..\app\srs_core_socket.cpp, | ||
72 | - ..\app\srs_core_source.hpp, | ||
73 | - ..\app\srs_core_source.cpp, | ||
74 | - research readonly separator, | ||
75 | - ..\..\research\librtmp\srs_publish.c, | ||
76 | - ..\..\research\hls\ts_info.cc; | ||
77 | - | ||
78 | -mainconfig | ||
79 | - "" = "MAIN"; | ||
80 | - | 1 | +file |
2 | + main readonly separator, | ||
3 | + ..\main\srs_main_server.cpp, | ||
4 | + ..\main\srs_main_bandcheck.cpp, | ||
5 | + auto readonly separator, | ||
6 | + ..\..\objs\srs_auto_headers.hpp, | ||
7 | + libs readonly separator, | ||
8 | + ..\libs\srs_librtmp.hpp, | ||
9 | + ..\libs\srs_librtmp.cpp, | ||
10 | + core readonly separator, | ||
11 | + ..\core\srs_core.hpp, | ||
12 | + ..\core\srs_core.cpp, | ||
13 | + ..\core\srs_core_autofree.hpp, | ||
14 | + ..\core\srs_core_autofree.cpp, | ||
15 | + kernel readonly separator, | ||
16 | + ..\kernel\srs_kernel_buffer.hpp, | ||
17 | + ..\kernel\srs_kernel_buffer.cpp, | ||
18 | + ..\kernel\srs_kernel_error.hpp, | ||
19 | + ..\kernel\srs_kernel_error.cpp, | ||
20 | + ..\kernel\srs_kernel_log.hpp, | ||
21 | + ..\kernel\srs_kernel_log.cpp, | ||
22 | + ..\kernel\srs_kernel_reload.hpp, | ||
23 | + ..\kernel\srs_kernel_reload.cpp, | ||
24 | + ..\kernel\srs_kernel_stream.hpp, | ||
25 | + ..\kernel\srs_kernel_stream.cpp, | ||
26 | + rtmp-protocol readonly separator, | ||
27 | + ..\rtmp\srs_protocol_amf0.hpp, | ||
28 | + ..\rtmp\srs_protocol_amf0.cpp, | ||
29 | + ..\rtmp\srs_protocol_handshake.hpp, | ||
30 | + ..\rtmp\srs_protocol_handshake.cpp, | ||
31 | + ..\rtmp\srs_protocol_io.hpp, | ||
32 | + ..\rtmp\srs_protocol_io.cpp, | ||
33 | + ..\rtmp\srs_protocol_rtmp.hpp, | ||
34 | + ..\rtmp\srs_protocol_rtmp.cpp, | ||
35 | + ..\rtmp\srs_protocol_rtmp_stack.hpp, | ||
36 | + ..\rtmp\srs_protocol_rtmp_stack.cpp, | ||
37 | + ..\rtmp\srs_protocol_utility.hpp, | ||
38 | + ..\rtmp\srs_protocol_utility.cpp, | ||
39 | + app readonly separator, | ||
40 | + ..\app\srs_core_bandwidth.hpp, | ||
41 | + ..\app\srs_core_bandwidth.cpp, | ||
42 | + ..\app\srs_core_client.hpp, | ||
43 | + ..\app\srs_core_client.cpp, | ||
44 | + ..\app\srs_core_codec.hpp, | ||
45 | + ..\app\srs_core_codec.cpp, | ||
46 | + ..\app\srs_core_conn.hpp, | ||
47 | + ..\app\srs_core_conn.cpp, | ||
48 | + ..\app\srs_core_config.hpp, | ||
49 | + ..\app\srs_core_config.cpp, | ||
50 | + ..\app\srs_core_encoder.hpp, | ||
51 | + ..\app\srs_core_encoder.cpp, | ||
52 | + ..\app\srs_core_forward.hpp, | ||
53 | + ..\app\srs_core_forward.cpp, | ||
54 | + ..\app\srs_core_hls.hpp, | ||
55 | + ..\app\srs_core_hls.cpp, | ||
56 | + ..\app\srs_core_http.hpp, | ||
57 | + ..\app\srs_core_http.cpp, | ||
58 | + ..\app\srs_core_log.hpp, | ||
59 | + ..\app\srs_core_log.cpp, | ||
60 | + ..\app\srs_core_refer.hpp, | ||
61 | + ..\app\srs_core_refer.cpp, | ||
62 | + ..\app\srs_core_pithy_print.hpp, | ||
63 | + ..\app\srs_core_pithy_print.cpp, | ||
64 | + ..\app\srs_core_thread.hpp, | ||
65 | + ..\app\srs_core_thread.cpp, | ||
66 | + ..\app\srs_core_server.hpp, | ||
67 | + ..\app\srs_core_server.cpp, | ||
68 | + ..\app\srs_core_st.hpp, | ||
69 | + ..\app\srs_core_st.cpp, | ||
70 | + ..\app\srs_core_socket.hpp, | ||
71 | + ..\app\srs_core_socket.cpp, | ||
72 | + ..\app\srs_core_source.hpp, | ||
73 | + ..\app\srs_core_source.cpp, | ||
74 | + research readonly separator, | ||
75 | + ..\..\research\librtmp\srs_play.c, | ||
76 | + ..\..\research\librtmp\srs_publish.c, | ||
77 | + ..\..\research\hls\ts_info.cc; | ||
78 | + | ||
79 | +mainconfig | ||
80 | + "" = "MAIN"; | ||
81 | + |
-
请 注册 或 登录 后发表评论