[FFmpeg-user] UDP Packet size option

Moritz Barsnick barsnick at gmx.net
Mon Oct 13 10:18:20 CEST 2014


Hi Sajjad,

On Sun, Oct 12, 2014 at 03:34:32 +0100, Sajjad Moshen wrote:
> I've been trying to get my decoder to read my UDP feed but for some odd
> reason it doesn't like when I add the ?pkt_size=1316 option to my unicast
> stream.

ffmpeg is your encoder and some other program is your decoder, right?
And that other program doesn't cope with '?pkt_size=1316' in the URL?

> question is if there is another way to insert the MTU override setting in
> the CLI without placing it right at the end of the stream?
> 
> ffmpeg -re -i rtmp://x -vcodec mpeg2video -r 25 -flags cgop+ilme
> -sc_threshold 1000000000 -b:v 2M -minrate:v 2M -maxrate:v 2M -bufsize:v
> 0.2M -muxrate 2.5M -acodec mp2 -ac 2 -b:a 224k -f mpegts udp://
> 192.168.0.4:1234?pkt_size=1316

Your decoder doesn't need the "?pkt_size=1316" part of the URL. Just
omit that on its side.

Moritz


More information about the ffmpeg-user mailing list