Skip to content

Instantly share code, notes, and snippets.

@leonstafford
Last active June 12, 2019 04:33
Show Gist options
  • Save leonstafford/22ac87f4ca27bed3ae5a9690f47fad80 to your computer and use it in GitHub Desktop.
Save leonstafford/22ac87f4ca27bed3ae5a9690f47fad80 to your computer and use it in GitHub Desktop.
Stream with ffmpeg to AnyCast M4 Plus

scan ports with

nc -z IPADDRESS 1-1000 #extend port range

  • use -u for UDP instead of CTP

Discovered open ports (TCP)

80 2425 7000 7001 7100

for UDP, returns almost all ports open. with some standouts, like

Connection to 192.168.43.130 201 port [udp/at-rtmp] succeeded!

and even SSH.... hmm, what is this running??

sending to tcp :2425 with ffmpeg has the effect of when stopping the stream, the AnyCast dashboard refreshes on the TV.

using copy pasta sample of

ffmpeg -f x11grab -show_region 1 -s 1366x768 -r 25 -i :0.0+0,0 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -tune zerolatency -f mpegts tcp://192.168.43.130:2425

Other ffmpeg scripts, previously known good for screencasting on another OpenBSD machine:

`ffmpeg -loglevel fatal -f x11grab -video_size 1366x768 -framerate 15 -i $DISPLAY -vcodec libx264 -preset medium -f flv "rtmp://192.168.43.130"

Both rtmp and tcp on port 2425 trigger some activity on the screen. UDP does not. `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment