Skip to content

Commit 29ae29c

Browse files
committed
Merge branch '4.0release' into develop
2 parents db91102 + 88ba3d2 commit 29ae29c

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

trunk/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ RUN cp -R conf /usr/local/srs/conf && \
3535
cp -R research/players /usr/local/srs/objs/nginx/html/ && \
3636
cp -R 3rdparty/signaling/www/demos /usr/local/srs/objs/nginx/html/
3737

38+
# Copy the shared libraries for FFmpeg.
39+
RUN mkdir -p /usr/local/shared && \
40+
cp $(ldd /usr/local/bin/ffmpeg |grep libxml2 |awk '{print $3}') /usr/local/shared/ && \
41+
cp $(ldd /usr/local/bin/ffmpeg |grep libicuuc |awk '{print $3}') /usr/local/shared/ && \
42+
cp $(ldd /usr/local/bin/ffmpeg |grep libicudata |awk '{print $3}') /usr/local/shared/
43+
3844
############################################################
3945
# dist
4046
############################################################
@@ -48,10 +54,17 @@ RUN echo "BUILDPLATFORM: $BUILDPLATFORM, TARGETPLATFORM: $TARGETPLATFORM"
4854
EXPOSE 1935 1985 8080 8000/udp 10080/udp
4955

5056
# FFMPEG 4.1
57+
COPY --from=build /usr/local/shared/* /lib/
5158
COPY --from=build /usr/local/bin/ffmpeg /usr/local/srs/objs/ffmpeg/bin/ffmpeg
5259
# SRS binary, config files and srs-console.
5360
COPY --from=build /usr/local/srs /usr/local/srs
5461

62+
# Test the version of binaries.
63+
RUN ldd /usr/local/srs/objs/ffmpeg/bin/ffmpeg && \
64+
/usr/local/srs/objs/ffmpeg/bin/ffmpeg -version && \
65+
ldd /usr/local/srs/objs/srs && \
66+
/usr/local/srs/objs/srs -v
67+
5568
# Default workdir and command.
5669
WORKDIR /usr/local/srs
5770
CMD ["./objs/srs", "-c", "conf/docker.conf"]

trunk/doc/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ The changelog for SRS.
5454

5555
## SRS 4.0 Changelog
5656

57+
* v4.0, 2022-08-29, Copy libxml2-dev for FFmpeg. v4.0.258
5758
* v4.0, 2022-08-24, STAT: Support config server_id and generate one if empty. v4.0.257
5859
* v4.0, 2022-08-24, For [#2136](https://github.com/ossrs/srs/issues/2136): API: Cleanup no active streams for statistics. v4.0.256
5960
* v4.0, 2022-08-17, RTMP URL supports domain in stream parameters. v4.0.255

trunk/src/core/srs_core_version4.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
#define VERSION_MAJOR 4
1111
#define VERSION_MINOR 0
12-
#define VERSION_REVISION 257
12+
#define VERSION_REVISION 258
1313

1414
#endif

0 commit comments

Comments
 (0)