janus live stream frame capturing via gstreamer

186 views
Skip to first unread message

nick

unread,
Mar 11, 2021, 12:00:52 AM3/11/21
to meetecho-janus
First of all I am newbie  to janus and gstreamer so all suggestion are valuable to me please provide details as much as you can.
 
Architecture:- I am having an application and gstreamer on aws ec2 instance and janus-gateway in docker container on same instance.(port mapped are 8188/tcp,7088/tcp,5002/udp,5004/udp,10000-10050/udp)

Issue:- I want to capture per second frames of live stream coming from videoroom but not able to construct  pipeline. The command used for gstreamer is 
gst-launch-1.0 -ev \
udpsrc port=xxxx caps="application/x-rtp, media=(string)video, clock-rate=(int)90000" ! \
rtpvp8depay ! vp8dec ! videoconvert ! \
videorate ! video/x-raw,framerate='(fraction)'1/10 ! \
jpegenc ! filesink location="tmp/img%04d.jpg"

And if there is an architectural issue please let me know.
Thanks... 

where xxxx- is a custom port range from 10000-10050


Amnon Israely

unread,
Mar 11, 2021, 5:22:51 PM3/11/21
to meetecho-janus
I think you need to check payload. In your caps you don't put it. So gstreamer set some default value and it's maybe not the same value as in coming stream

четверг, 11 марта 2021 г. в 07:00:52 UTC+2, nick:

nick

unread,
Mar 20, 2021, 1:18:45 AM3/20/21
to meetecho-janus

Thanks for replying, I fixed it by deploying gstreamer on same docker container with janus gateway.
Reply all
Reply to author
Forward
0 new messages