Kodi Community Forum

Full Version: Howto play SDP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I have a video stream that I can play on my Linux box with VLC with this SDP definition:
---
xbian@xbian ~ $ cat raspberry_pi.sdp
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 192.168.1.5
t=0 0
a=tool:libavformat 58.28.101
m=video 1234 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=J2QAKKwrQCIC3y8A8SJq,KO4CXLAA; profile-level-id=640028
---

How to see this on my XBian Kodi box?

Thanks in advance for the answers to this stupid question,
Christof
No ideas?

Maybe I should post the way I generate the video. It's a Raspberry Pi with a camera module. The command to generate the RTP stream is
---
raspivid  -hf -vf -t -0 -w 1080 -h 720 -awb auto -fps 15 -rot 90 -b 1200000 -o - |ffmpeg -loglevel quiet -i - -vcodec copy -an -r 15 -f rtp rtp://192.168.188.5:1234
---

I can also generate a stream for a Javascript player, but this is not my preferred version as I do not like JS. The setup to show this is not so easy as one needs the Javascript infrasctructure as described in http://www.toptechboy.com/tutorial/low-c...ip-camera/
---
raspivid  -hf -vf -t -0 -w 1080 -h 720 -awb auto -fps 15 -rot 90 -b 1200000 -o - |ffmpeg -loglevel quiet -i - -vcodec copy -an -r 15 -f flv -metadata streamName=myStream tcp://0.0.0.0:6666
---

So again, how to show the RTP stream in KODI?

KR,
Christof
Have you tried creating a strm file? You can even create an nfo file alongside it so it can be added to your video library.

https://kodi.wiki/view/Internet_video_and_audio_streams
(2019-07-17, 17:52)MrTarantula Wrote: [ -> ]Have you tried creating a strm file? You can even create an nfo file alongside it so it can be added to your video library.

https://kodi.wiki/view/Internet_video_and_audio_streams
I created a strm-file with just one line:
rtps://hostname:port/link

Thanks for your answer!

KR,
Ch.
(2019-07-17, 17:52)MrTarantula Wrote: [ -> ]Have you tried creating a strm file? You can even create an nfo file alongside it so it can be added to your video library.

https://kodi.wiki/view/Internet_video_and_audio_streams
Well as I posted already, the strm-file approach works nicely.

But in the mean-time I would like to play the output of a PIP generated with ffmpeg. It works if I generate a video file on my KODI-machine with this command:
ffmpeg -i rtsp://server1/cam -i rtsp://server1/cam -filter_complex "[1]scale=iw/2:ih/2 [pip]; [0][pip] overlay=main_w-overlay_w-10:main_h-overlay_h-10" -profile:v main -framerate 10 -level 3.1 -b:v 440k -s 720x400 -vcodec h264 -t 120 PIP_output1.mp4

But now I would like to play it on-the-fly, so sending it to a pipe with ffmpeg and view it in KODI. BTW I am running KODI with an XBian system on a Raspberry Pi 3. Do you know how to do this?
I don't know enough about ffmpeg to know whether or not this is possible. You may want to open a new thread for this.

I know PiP was on the roadmap for Kodi but that may be up in the air since FernetMenta retired. I am not affiliated with Team Kodi so I'm probably not the best source of information regarding active development.