mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
* MP3: Fix bug for TS or HLS with mp3 codec. v4.0.269 (#296) 1. Refresh HLS audio codec if changed in stream. 2. Refresh TS audio codec if changed in stream. 3. Fix mp3 demux bug in SrsFormat::audio_mp3_demux. 4. Use 3(MPEG1) not 4(MPEG2) as PMT stream type, follow FFmpeg. 5. MP3: Update utest for mp3 sample parsing. 6. MP3: Ignore empty frame sample. 7. UTest: Fix utest failed, do not copy files.
This commit is contained in:
parent
2573a25101
commit
577cd299e1
10 changed files with 109 additions and 38 deletions
|
@ -18,21 +18,6 @@ COPY . /srs
|
|||
WORKDIR /srs/trunk
|
||||
RUN ./configure --srt=on --jobs=${JOBS} && make -j${JOBS} && make install
|
||||
|
||||
# All config files for SRS.
|
||||
RUN cp -R conf /usr/local/srs/conf && \
|
||||
cp research/api-server/static-dir/index.html /usr/local/srs/objs/nginx/html/ && \
|
||||
cp research/api-server/static-dir/favicon.ico /usr/local/srs/objs/nginx/html/ && \
|
||||
cp research/players/crossdomain.xml /usr/local/srs/objs/nginx/html/ && \
|
||||
cp -R research/console /usr/local/srs/objs/nginx/html/ && \
|
||||
cp -R research/players /usr/local/srs/objs/nginx/html/ && \
|
||||
cp -R 3rdparty/signaling/www/demos /usr/local/srs/objs/nginx/html/
|
||||
|
||||
# Copy the shared libraries for FFmpeg.
|
||||
RUN mkdir -p /usr/local/shared && \
|
||||
cp $(ldd /usr/local/bin/ffmpeg |grep libxml2 |awk '{print $3}') /usr/local/shared/ && \
|
||||
cp $(ldd /usr/local/bin/ffmpeg |grep libicuuc |awk '{print $3}') /usr/local/shared/ && \
|
||||
cp $(ldd /usr/local/bin/ffmpeg |grep libicudata |awk '{print $3}') /usr/local/shared/
|
||||
|
||||
############################################################
|
||||
# dist
|
||||
############################################################
|
||||
|
@ -46,7 +31,6 @@ RUN echo "BUILDPLATFORM: $BUILDPLATFORM, TARGETPLATFORM: $TARGETPLATFORM"
|
|||
EXPOSE 1935 1985 8080 8000/udp 10080/udp
|
||||
|
||||
# FFMPEG 4.1
|
||||
COPY --from=build /usr/local/shared/* /lib/
|
||||
COPY --from=build /usr/local/bin/ffmpeg /usr/local/srs/objs/ffmpeg/bin/ffmpeg
|
||||
# SRS binary, config files and srs-console.
|
||||
COPY --from=build /usr/local/srs /usr/local/srs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue