E
E
ewowko12412020-09-08 19:11:35
Nginx
ewowko1241, 2020-09-08 19:11:35

ffmpeg nginx stream linux how to set priority?

There are two computers. One game and the second restream PC on ubuntu. From the game I send a picture to the restream of the PC. The restream of the PC sends it to YouTube without changing the quality and with a change in quality on the preset, the medium sends the picture to twitch. The essence of the Question is that If handles run ffmpeg with all parameters. Twitch coding is stable. If nginx itself launches ffmpeg automatically, friezes appear and the picture crashes when the processor is 80% loaded. At the same time, ffmpeg also has a priority. There are no problems on Windows either, nginx runs as root. and ffmpeg which launched nginx is no longer rooted. Perhaps this is the problem. Which team to decide? When the preset is lowered, the problem disappears. But the chairman is interested in the medium.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2020-09-08
@tumbler

If the ffmpeg arguments are identical in both cases, then the problem is not related to ffmpeg as such. But you can try to eliminate a couple of obvious things:

  • The obvious number of times is that ffmpeg writes the current FPS to stdout, and nginx is not the fact that it reads it in an optimal way. It is worth setting a ban on showing progress, though you need to look for the exact flag
  • Perhaps instead of solving problems with nginx, it is worth using the capabilities of the processor: Intel with an integrated video card, for example, is perfectly accelerated through VAAPI.
  • The dumbest story that could be is that nginx starts multiple ffmpeg processes. Well, here you have to figure it out.

By the way, what does nginx use to launch ffmpeg?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question