To display a UDP multicast stream:
ffmpeg -i udp://@236.1.1.1:2000 -f sdl "ffmpeg"
To broadcast the camera on a Windows 10 laptop:
The key to getting this to work is the use of 'localaddr' which is the IP address of the interface that I want to broadcast on.
On Linux to stream a web camera I used:
-i /dev/video0
and got rid of the:
-f dshow
Of course the IP addresses and broadcast addresses will probably be different.
ffmpeg -i udp://@236.1.1.1:2000 -f sdl "ffmpeg"
To broadcast the camera on a Windows 10 laptop:
ffmpeg ^
-f dshow ^
-i video="Integrated Webcam":audio="Microphone Array (Realtek High Definition Audio)" ^
-vcodec libx264 ^
-preset ultrafast ^
-tune zerolatency ^
-thread_type slice ^
-slices 1 ^
-intra-refresh 1 ^
-r 25 ^
-g 100 ^
-s 720x576 ^
-aspect 4:3 ^
-acodec aac ^
-ar 44100 ^
-b:v 2.5M ^
-minrate:v 900k ^
-maxrate:v 1.0M ^
-bufsize:v 5M ^
-b:a 128K ^
-pix_fmt yuv420p ^
-f mpegts "udp://236.1.1.1:2000?ttl=13& pkt_size=1316&localaddr=172. 17.1.16"
The key to getting this to work is the use of 'localaddr' which is the IP address of the interface that I want to broadcast on.
On Linux to stream a web camera I used:
-i /dev/video0
and got rid of the:
-f dshow
Of course the IP addresses and broadcast addresses will probably be different.
Comments
Post a Comment