[FFmpeg-user] Nut + ZMQ + rawvideo
Online video
uinserte at gmail.com
Wed Nov 4 13:09:20 EET 2020
Hi,
I want to distribute uncompressed video to multiple separate processes
using Nut format and ZMQ protocol.
The first distributing process works for me without problems:
*c:\ff\ffmpeg.exe -i "source_link" -c:v rawvideo -c:a pcm_s16le -f nut
"zmq:tcp://127.0.0.1:11111 <http://127.0.0.1:11111/>"*
[image: image.png]
But I cannot accept this stream, the receiving process does not start:
*\ffmpeg.exe -f nut -i "zmq:tcp://127.0.0.1:11111
<http://127.0.0.1:11111/>" -c:v libx264 -preset:v fast -b:v 8000k -maxrate
8000k -bufsize 8000k -bf 2 -g 50 -keyint_min 50 -c:a aac -b:a 128k -f
mpegts "udp://127.0.0.1:22222?pkt_size=1316
<http://127.0.0.1:22222/?pkt_size=1316>"*
[image: image.png]
After press CTRL-C:
[image: image.png]
What can you advise to solve this problem? Perhaps, instead of NUT, there
is another container format that allows you to transfer uncompressed
streaming video to multiple recipients?
If I pass such a stream through a pipe using the same commands, then
everything is ok, it works:
*\ffmpeg.exe -i "source_link" -c:v rawvideo -c:a pcm_s16le -f nut - |
\ffmpeg.exe -f nut -i - -c:v libx264 -preset:v fast -b:v 8000k -maxrate
8000k -bufsize 8000k -bf 2 -g 50 -keyint_min 50 *
*-c:a aac -b:a 128k -f mpegts "udp://127.0.0.1:22222?pkt_size=1316
<http://127.0.0.1:22222/?pkt_size=1316>"*
[image: image.png]
Best regards, Sergei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 430351 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20201104/a85c289e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 44822 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20201104/a85c289e/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 53766 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20201104/a85c289e/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 48514 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20201104/a85c289e/attachment-0003.png>
More information about the ffmpeg-user
mailing list