1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavformat
Olivier Langlois f1c167496e Support broadcast destination for udp protocol
Use the required socket option SO_BROADCAST to be able to stream to a broadcast
address.

Prior to the patch, trying to stream to a broadcast address was resulting to the
following error:

av_interleaved_write_frame(): Permission denied

The patch has been tested with:

ffmpeg -f v4l2 -framerate 30 -input_format yuyv422 -video_size 640x480 -i /dev/video0 \
 -c:v libx264 -profile:v high -preset ultrafast -tune zerolatency -b:v 500k -pix_fmt yuv420p \
 -f mpegts udp://192.168.1.255:5004?broadcast=1

I have added an option to let the user explicitly request broadcast in order to avoid
ffmpeg to broadcast unintentionally.

Signed-off-by: Olivier Langlois <olivier@trillion01.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-13 15:51:41 +02:00
..
2014-04-19 16:24:27 +02:00
2014-05-07 23:39:47 +02:00
2014-04-24 18:02:20 +02:00
2014-05-07 23:39:47 +02:00
2014-04-27 14:50:14 +02:00
2014-01-16 00:38:27 +01:00
2014-02-28 00:07:31 +01:00
2014-04-16 19:41:41 +02:00
2014-04-16 19:41:41 +02:00
2014-04-01 01:13:09 +02:00
2014-04-14 21:40:59 +02:00
2014-04-05 02:18:09 +02:00
2014-04-22 20:44:31 +02:00
2014-03-11 13:22:49 +01:00
2014-05-03 08:51:27 +02:00
2014-05-01 16:18:12 +02:00
2014-05-07 23:39:47 +02:00
2014-04-27 15:14:32 +02:00
2014-02-05 22:36:42 +01:00
2014-05-04 13:24:40 +02:00
2014-04-20 20:56:02 +02:00
2014-02-09 14:29:07 +00:00
2014-04-23 15:10:42 +02:00
2014-03-04 22:54:13 +01:00
2014-03-08 12:36:57 +01:00
2014-05-07 23:39:47 +02:00
2014-04-15 13:51:48 +02:00