I've recently done jpeg to h264, streaming using mpegts to RTMP server. I used gstreamer (and had a ffmpeg pipeline going as well, which for some reason didnt work so well for me in terms of startup latency - but I didnt spend much time debugging). I think it should be pretty easy to adapt to an input of raw RGB24 frames.
There seem to be numerous sites on the web providing gstreamer pipelines. For example:
ximagesrc !
videoscale ! video/x-raw-rgb,width=1280,height=720,name=capsfilter0 !
ffmpegcolorspace ! x264enc threads=2 tune=zerolatency
intra-refresh=false speed-preset=ultrafast bitrate=4000 name=x264 \
mpegtsmux name=tsMux \
x264. ! tsMux. \
tsMux. ! queue ! udpblocker ! udpsink host=\"192.168.0.10\" port=3244 async=false name=udpsinker
I think you could replace all the
way upto (but not including) ffmpegcolorspace and provide your inputs.
Your output sink would be the port where crtmpserver is listening on
udp. (I set it up in the config file as port 10000 on localhost).
Anyway, that's what I did, and it worked fine. Hope it helps in some way.
acceptor inboundUdpTs or inboundTcpTs , then set a localstreamname to the acceptor
Can you guys help me? How did you use mpegts to send data to RTMP Server.thanks,vishal
You received this message because you are subscribed to "C++ RTMP Server" mailing list.
To post to this group, send email to c-rtmp...@googlegroups.com
To unsubscribe from this group, send email to
c-rtmp-serve...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/c-rtmp-server?hl=en
you need to transform data from camera to digital data, you can try ffmpeg.
no, read crtmpserver.lua carefully, send to the port rtmpd listening. i will go to sleep, just have a try and good luck