Skip to content

Instantly share code, notes, and snippets.

sfahadshahzad / hevc-test-pattern.bat
Created Jul 30, 2022 — forked from m1tk4/hevc-test-pattern.bat
HEVC Test Pattern to UDP Multicast
View hevc-test-pattern.bat
@echo off
:: Set duration in seconds
set duration=10
:: Temporary loop TS file to create
set loopfile=loop.mkv
:: Target mpegts URL (ESCAPE &s with ^!!! and add double quotes)
:: see for full syntax
set "target=udp://^&pkt_size=1316"
sfahadshahzad /
Created Feb 22, 2022 — forked from cbenhagen/
Example of using input from a Blackmagic Decklink or Ultrastudio card in kivy with the use of OpenCV and GStreamer.

sfahadshahzad Fahad Shahzad Pakistan

Keybase proof

I hereby claim:

  • I am sfahadshahzad on github.
  • I am sfahadshahzad ( on keybase.
  • I have a public key ASB3MuPkGZc_ws3Zuu1Bu3Z4ksldmNcroCB0RvX5zYY4pAo
View How to build ffmpeg with NDI IO
I was able to find a VERY QUICK AND DIRTY way to use the media-autobuild suite to compile my own 64-bit static FFmpeg for Windows with the NDI library.
Download it and extract to a place on your computer, and keep note of the path. I put it in "D:\ndi\media-autobuild_suite-master", so for the sake of these instructions when you see "<autobuild>", you need to substitute whatever path you've put it in.
During the initial setup process, request to use the static build and add whatever else you'd like to have in your ffmpeg, then pause what you're doing when the on-screen prompts tell you the ffmpeg_options file has been written, then go into <autobuild>\build\ffmpeg_options.txt and add somewhere a line with
sfahadshahzad / gist:fda6efe30960ec7d9759a78c3aa9854e
Created Aug 31, 2019
View gist:fda6efe30960ec7d9759a78c3aa9854e
sfahadshahzad / ffmpeg-to-vmix.png
Created Aug 31, 2019 — forked from mhanney/ffmpeg-to-vmix.png
Stream webcam and audio source from PC to remote IP address using mpegts encapsulation and encoded with h264 and aac
sfahadshahzad /
Created Jan 23, 2019 — forked from Vestride/
Encoding video for the web

Encoding Video


Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links