Skip to content

Instantly share code, notes, and snippets.

@chenkaie
Created July 8, 2016 10:26
Show Gist options
  • Save chenkaie/deb0aeb8b91b746eb103a473083794e5 to your computer and use it in GitHub Desktop.
Save chenkaie/deb0aeb8b91b746eb103a473083794e5 to your computer and use it in GitHub Desktop.
How to transcoding RTSP H264 to HTTP MJPEG by FFMPEG/FFSERVER along with UBNT UVC
HTTPPort 8888
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000000
CustomLog -
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 20M
Launch ffmpeg -i "rtsp://192.168.1.20:554/s0"
</Feed>
<Stream s0.mjpeg>
Feed feed1.ffm
Format mpjpeg
VideoBitRate 10000
VideoFrameRate 15
VideoSize 1280x720
VideoIntraOnly
NoAudio
Strict -1
NoDefaults
</Stream>
@Koenkk
Copy link

Koenkk commented Dec 6, 2017

Thanks!

With one change this also worked for my cheap chinese ip camera, line 11 to

Launch ffmpeg -rtsp_transport tcp -i "rtsp://192.168.1.20:554/user=admin&password=mypassword&channel=1&stream=0.sdp?Real_stream"

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