[FFmpeg-user] Bitrate range when streaming to udp
win2000rus at hotmail.com
Wed Jan 10 00:37:27 EET 2018
I try to solve a problem which seems to be very simple. There is a
source file which is to be streamed as multicast (UDP) infinitely. Ok,
not even infinitely, just once. What is the problem? Terrible bitrate range.
Here is my source file:
Input #0, mpegts, from 'test.ts':
Duration: 00:08:14.46, start: 1.458667, bitrate: 4490 kb/s
service_name : Service01
Stream #0:0[0x100]: Video: h264 (High) ( / 0x001B),
yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k
tbn, 50 tbc
Stream #0:1[0x101](und): Audio: aac (LC) ( / 0x000F),
48000 Hz, stereo, fltp, 139 kb/s
I try to stream it:
ffmpeg -threads 0 -re -stream_loop -1 -i test.ts -c copy -f mpegts
But when I analyze the result multicast I see bitrate jumps from almost
zero to 12 Mbps:
I made a lot of attempts to change some parameters but nothing helped.
Is it possible to get smoother bitrate? I don't even dream about CBR but
I would be happy to get 3-5 Mbps at least.
More information about the ffmpeg-user