Skip to content

Instantly share code, notes, and snippets.

@Dalboz
Last active November 24, 2022 14:14
Show Gist options
  • Save Dalboz/1841144 to your computer and use it in GitHub Desktop.
Save Dalboz/1841144 to your computer and use it in GitHub Desktop.
redirect isight stream to vlc using avcapture OSX
/Applications/VLC.app/Contents/MacOS/vlc avcapture:// -vvv input_stream --sout='#duplicate{dst=display, dst="transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=3 2,channels=2, samplerate=22050}:rtp{dst=127.0.0.1,port=1234,sdp=file:////vlc.sdp}"}'
@rsbarberi
Copy link

How do you receive this stream? I keep getting errors.
/Applications/VLC.app/Contents/MacOS/vlc rtp://@:1234
/Applications/VLC.app/Contents/MacOS/vlc rtp://@127.0.0.1:1234

Both of the above throw this error
SDP required
A description in SDP format is required to receive the RTP stream. Note that rtp:// URIs cannot work with dynamic RTP payload format (96).

@Dalboz
Copy link
Author

Dalboz commented Nov 24, 2022

How do you receive this stream? I keep getting errors. /Applications/VLC.app/Contents/MacOS/vlc rtp://@:1234 /Applications/VLC.app/Contents/MacOS/vlc rtp://@127.0.0.1:1234

Both of the above throw this error SDP required A description in SDP format is required to receive the RTP stream. Note that rtp:// URIs cannot work with dynamic RTP payload format (96).

Hi @rsbarberi sorry for taking so long to respond, the code is modified, the qtcapture module was replaced by avcapture. Try it out.

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