RTP receiver RAW and JPEG codecs

62 views
Skip to first unread message

Mehmet düzgün

unread,
Jan 24, 2023, 10:02:30 AM1/24/23
to kurento
Hi everyone.
I implemented and tested RTP receiver with H264 codecs using kurento tutorial.
But I can't run RTP stream with RAW and JPEG codecs.

I test this gstreamer command:

gst-launch-1.0 -v videotestsrc pattern=smpte background-color=0x44CFCF foreground-color=0xFFEFEF ! timeoverlay  ! "video/x-raw,format=UYVY,width=640,height=512,framerate=25/1"  ! rtpvrawpay mtu=1300 pt=100 ! udpsink host="kms" port ="5010" sync=true

I used this Fake SDP Offer from App to KMS:

v=0
o=- 0 0 IN IP4 127.0.0.1
s=Kurento Tutorial - RTP Receiver
c=IN IP4 127.0.0.1
t=0 0
m=video 9 RTP/AVPF 100
a=rtpmap:100 RAW/90000
a=rtcp-fb:100 goog-remb
a=sendonly
a=direction:active
a=ssrc:112233 cname:us...@example.com

What is problem about it? How to solve it?

Is there anybody using RAW or JPEG codecs RTP streaming?

Thanks in advance

Mehmet düzgün

unread,
Jan 30, 2023, 3:02:52 AM1/30/23
to kurento
Anyone there? 
How to use RTP source that has RAW or JPEG codecs?

24 Ocak 2023 Salı tarihinde saat 18:02:30 UTC+3 itibarıyla Mehmet düzgün şunları yazdı:

Mehmet düzgün

unread,
Feb 7, 2023, 9:15:51 AM2/7/23
to kurento
I found solution.

SOLUTION:

If RTP video source have any codecs (RAW, JPEG etc.) except H264 or VP8, this codecs can be added SdpEndpoint.conf.json in Kurento container.

Example of SdpEndpoint.conf.json:

{
"numAudioMedias": 1,
"numVideoMedias": 1,
"audioCodecs": [
{
"name": "opus/48000/2",
"//": "Next is an example about how a codec can be configured.",
"//": "WARNING: Usage of properties is not yet supported",
"//properties": {
"//maxcodedaudiobandwidth": "16000",
"//maxaveragebitrate": "20000",
"//stereo": "1",
"//useinbandfec": "1",
"//usedtx": "0"
}
},
{
"name": "PCMU/8000"
},
{
"name": "AMR/8000"
}
],
"videoCodecs": [
{
"name": "VP8/90000"
},
{
"name": "H264/90000"
},
{
"//": "New codecs can be added.",
"name": "RAW/90000"
},
{
"name": "JPEG/90000"
}
]
}


30 Ocak 2023 Pazartesi tarihinde saat 11:02:52 UTC+3 itibarıyla Mehmet düzgün şunları yazdı:
Reply all
Reply to author
Forward
0 new messages