Code Monkey home page Code Monkey logo

Comments (4)

TangZhiZhen avatar TangZhiZhen commented on June 12, 2024

the transcode already used abr ratecontrol on VOD

from cdn-transcode-sample.

TangZhiZhen avatar TangZhiZhen commented on June 12, 2024

Refer to https://github.com/ut0mt8/nginx-rtmp-module/.
Add the possibility to make adaptative streaming (show below configuration, using ffmpeg to trancode in 3 variants, and produce one manifest). note the "max" flag which indicate which representation should have max witdh and height and so use it to create the variant manifest. you can also use any encoder to directly push the variant.
example as follows:
rtmp {
server {
listen 1935;

application test {
  live on;
  exec /usr/bin/ffmpeg -i rtmp://localhost/$app/$name \
   -an -c:v libsvt_hevc -s 854x480 -b:v 2048K -bufsize 2048k -f flv rtmp://localhost/dash/$name_low  \
   -an -c:v libsvt_hevc -s 1280x720 -b:v 4096K -bufsize 4096k -f flv rtmp://localhost/dash/$name_mid  \ 
   -an -c:v libsvt_hevc -s 1920x1080 -b:v 8192K -bufsize 8192k -f flv rtmp://localhost/dash/$name_hi
}
  
application dash {
  live on;
  dash on;
  dash_nested on; 
  dash_repetition on;
  dash_path /dev/shm/dash;
  dash_fragment 4; # 4 second is generaly a good choice for live
  dash_playlist_length 120; # keep 120s of tail
  dash_cleanup on;
  dash_variant _low bandwidth="2048000" width="854" height="480";
  dash_variant _med bandwidth="4096000" width="1280" height="720";
  dash_variant _hi bandwidth="8192000" width="1920" height="1080" max;
}

}

from cdn-transcode-sample.

TangZhiZhen avatar TangZhiZhen commented on June 12, 2024

#26

from cdn-transcode-sample.

TangZhiZhen avatar TangZhiZhen commented on June 12, 2024

ABR support for DASH code is merged and close this issue.

from cdn-transcode-sample.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.