Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For #1659, #307, add opus and ffmpeg codec library #1661

Merged
merged 4 commits into from
Mar 22, 2020

Conversation

winlinvip
Copy link
Member

@winlinvip winlinvip commented Mar 22, 2020

libopus, which is rarely updated, is placed as a compressed file in 3rdparty.
ffmpeg, on the other hand, needs to be updated. Like st, its code is placed in 3rdparty and compiled into a library.


TRANS_BY_GPT3

@codecov-io
Copy link

codecov-io commented Mar 22, 2020

Codecov Report

❗ No coverage uploaded for pull request base (feature/codec@2da4e0a). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff                @@
##             feature/codec    #1661   +/-   ##
================================================
  Coverage                 ?   65.63%           
================================================
  Files                    ?      108           
  Lines                    ?    42587           
  Branches                 ?        0           
================================================
  Hits                     ?    27954           
  Misses                   ?    14633           
  Partials                 ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data'

Translated to English:

Δ = absolute <relative> (impact), ø = not affected, ? = missing data'
Powered by Codecov. Last update 2da4e0a...602a478. Read the comment docs.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Mar 22, 2020

SRS that supports WebRTC, 19MB. Mainly added a few static libraries:
libsrtp2.a 166KB
libopus.a 3.5MB
libavcodec.a 12MB
libavutil.a 3.6MB
libswresample.a 649KB

SRS that does not support WebRTC, 9.8MB, dependent libraries include:
libcrypto.a 4.8MB
libssl.a 747KB
libst.a 132KB

After compression, the original FFMPEG 4.2 source code is 10MB, and after decompression, it is 81MB. After trimming, the FFMPEG code is 8.9MB.

TRANS_BY_GPT3

@winlinvip
Copy link
Member Author

winlinvip commented Mar 22, 2020

FFMPEG is under the LGPL license. It will support dynamic library linking in the future, with static library linking as the default option.

TRANS_BY_GPT3

@winlinvip winlinvip merged commit a912f04 into feature/codec Mar 22, 2020
@winlinvip winlinvip deleted the feature/ffmpeg branch March 22, 2020 10:19
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants