GithubHelp home page GithubHelp logo

Comments (5)

jb-alvarado avatar jb-alvarado commented on June 2, 2024

Hello @sirus20x6,

I preconverted all the overtures to 264, aac, 44100hz. when ffplayout starts I get the error

For ffplayout this step is not necessary. Maybe it can make sense in output mode hls in combination with stream copy. But I have not test this.

output_param: -c:v libx264 -x264-params keyint=25:min-keyint=15:scenecut=-1 -maxrate 6000k -bufsize 512k -preset faster -tune zerolatency -profile:v Main -level 3.1 -c:a copy -strict unofficial -f flv rtmp://localhost:1935/live/XXXXX

ffplayout does not support this -c:a copy in streaming mode. You have to choice a audio codec.

where does this part come from?

-filter_complex [0:v:0]fps=25,null[vout0];[0:a:0]anull[aout0] -map [vout0] -map [aout0] -pix_fmt yuv420p -r 25 -c:v mpeg2video -g 1 -b:v 129600k -minrate 129600k -maxrate 129600k -bufsize 64800k -c:a s302m -strict -2 -sample_fmt s16 -ar 48000 -ac 2 -f mpegts -"

and how do I change it? is this because of the format of the filler video?

This is a internal step and can not be changed. That is the way ffplayout works, it starts one ffmpeg process for prepare and convert all video files to the same format and pipe the output to a second ffmpeg instance for creating a endless stream with correct DTS, PTS etc.

Even when you pre-convert all you videos in the same format, it can happen that audio and video line can have different durations, and ffplayout takes care of that to.

To unify the video ffplayout apply this filters, if is needed:

  • yadif (deinterlacing)
  • pad (letterbox or pillarbox to fit aspect)
  • fps (change fps)
  • scale (fit target resolution)
  • aevalsrc (if video have no audio)
  • apad (add silence if audio duration is to short)
  • tpad (add black frames if video duration is to short)

from ffplayout.

sirus20x6 avatar sirus20x6 commented on June 2, 2024

I'm curious as to why -c:a copy wouldn't be an option for preconverted streams for instance if I made sure the audio and video were the same duration and everything was the same resolution, codec, container, etc?

The server I'm using has a really, really old xeon that has trouble keeping up with too many streams and I have a few other things on there like plex. I'd love to just have all my videos preconverted so as little processing as possible needs to be done when it comes time to stream. I'm building a new server now, but my while my download is 1.2gbps my upload is capped at 35mbps until comcast upgrades me to docsis 4.0 later this year. that makes streaming from home nonviable so I'm stuck renting a server until then.

from ffplayout.

jb-alvarado avatar jb-alvarado commented on June 2, 2024

I have doubts it would run with same stability. But we can test it and see how it works.

The next days I'm not able to do much, but if you want you can change the code and run some tests.

from ffplayout.

jb-alvarado avatar jb-alvarado commented on June 2, 2024

I added stream copy mode to my developer repo. If you still interested, would be nice if you test it and give me feedback.

from ffplayout.

sirus20x6 avatar sirus20x6 commented on June 2, 2024

from ffplayout.

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.