Add babycam as channel

Added by Josu Lazkano 5 months ago

Hello I have a babycam that I want to add to Tvheadend as a channel.

I can reproduce as VLC this way:

vlc rtsp://camIP:554/ch0_0.h264

And this is the stream info:

# ffmpeg -i rtsp://camIP:554/ch0_0.h264
ffmpeg version 3.2.4-1~bpo8+1 Copyright (c) 2000-2017 the FFmpeg developers
  ...
Input #0, rtsp, from 'rtsp://camIP:554/ch0_0.h264':
  Metadata:
    title           : H.264 Program Stream, streamed by the LIVE555 Media Server
    comment         : ch0_0.h264
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720, 20.08 tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: aac (LC), 8000 Hz, stereo, fltp

How could I add it? I read about pipe and ffmpeg. But, need I create a new Network?

I will appreciate any help.

Kind regards.


Replies (8)

RE: Add babycam as channel - Added by Mark Clarkstone 5 months ago

Josu Lazkano wrote:

Hello I have a babycam that I want to add to Tvheadend as a channel.

I can reproduce as VLC this way:

[...]

And this is the stream info:

[...]

How could I add it? I read about pipe and ffmpeg. But, need I create a new Network?

Yes, creating a standard IPTV network will work.

I will appreciate any help.

Kind regards.

RE: Add babycam as channel - Added by Josu Lazkano 5 months ago

Thanks!

I add a new IPTV Network, then I go tu Muxes and create one:

How could I create the pipe?

Best regards.

RE: Add babycam as channel - Added by Mark Clarkstone 5 months ago

Where it says URL you enter

pipe:///usr/bin/ffmpeg --args

RE: Add babycam as channel - Added by Josu Lazkano 5 months ago

Thanks!

I add this and it works:

pipe:///usr/bin/ffmpeg -loglevel fatal -i rtsp://camIP:554/ch0_0.h264 -vcodec copy -acodec copy -metadata service_provider=XiaomiCam -metadata service_name=BabyCam -f mpegts -tune zerolatency pipe:1

Now I can monitor my baby from every TV in the house.

Best regards.

RE: Add babycam as channel - Added by Poul Kalff 5 months ago

I've just ordered a Xiaomi-cam, because this is simply too exciting to NOT try it out myself; An excellent example of how many ways tvheadend can be used :-| ....and I have a baby too ;-)

RE: Add babycam as channel - Added by Jonathan Thomson 5 months ago

It is very useful having IP cameras as channels in TVH; we have 8 cameras in and around the house and they are all mapped to channels in TVH. Before we got Sky Q installed (hence my lack of presence on these forums recently) we had Kodi in the rooms and I had it set up so that if someone rang the doorbell, a small overlay would appear for 10 seconds in the corner of the screen with the live feed from the front door camera - very cool/sad :)

RE: Add babycam as channel - Added by Adam Sutton 2 months ago

I have absolutely no idea how, but the email notification for this thread ended up in my holiday folder and despite it being 3mo old I felt like I should reply as it's quite cool :)

I did something similar for a camera I put in my boys shed, have to admit not used it for a while but it was quite cool when it was up. Although mine predated the direct integration so I was running a sep. instance of vlc I think to create the stream.

Great to see TVH being used for cool things :)

RE: Add babycam as channel - Added by saen acro 2 months ago

There is a very basic rtsp:// support for RTSP #2481 #2823 with limitations :(
Mosaic option is very interesting also can be used for transponder/mux

(1-8/8)