[FFmpeg-devel] [PATCH] Support broadcast destination for udp protocol

Michael Niedermayer michaelni at gmx.at
Tue May 13 16:00:58 CEST 2014


On Tue, Apr 08, 2014 at 11:21:52PM -0400, Olivier Langlois wrote:
> 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 at trillion01.com>

patch applied

please add entry to our udp documentation for this as well

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140513/44bd3387/attachment.asc>


More information about the ffmpeg-devel mailing list