[FFmpeg-user] Bitrate range when streaming to udp
Alex Alex
win2000rus at hotmail.com
Wed Jan 10 00:37:27 EET 2018
Hello!
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
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 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) ([15][0][0][0] / 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
"udp://@235.5.2.193:1234?pkt_size=1316"
But when I analyze the result multicast I see bitrate jumps from almost
zero to 12 Mbps:
http://image.ibb.co/cqrhPw/ffmpeg_stream.png
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.
WBR Alex
More information about the ffmpeg-user
mailing list