Alvaro Gir wrote:
>
> The problem is that im using a raspberry pi with tbs6209SE. I know that with IPTV i can PIPE but with coax signals?
>
Yes, you can pipe a stream from your TBS6209SE. Since this is something you want on recordings, then you could set up a "MPEG-TS Spawn" stream profile and set that to be the stream profile used by the relevant DVR profile.
Within the MPEG-TS Spawn streaming profile, a command line of something like the below would add a date/time stamp to the top left of the recorded video:
/usr/bin/ffmpeg -loglevel fatal -i pipe:0 -c:v libx264 -acodec copy -f mpegts -tune zerolatency -vf drawtext=text='%{localtime}':fontsize=48:fontcolor=white@0.8:x=7:y=7 pipe:1
However, be aware of the following:
1. I note you are running on a Raspberry Pi. In the example above, the output video codec is specified as h264. This should be set to match whatever the input stream video codec is. If they match, then ffmpeg will be re-coding the video stream to add the date/time stamp to the video frames. This should be "easier" for ffmpeg (and therefore the Raspberry Pi processor) to handle than transcoding the input. Transcoding would be where the input video codec does not match the output video codec specified and therefore ffmpeg has to convert every frame of video data from one format to another. I would suggest therefore that you should make sure that the video codec specified matches that of your input stream.
2. You also wanted the channel/service name on the caption as well as the date/time. I am not aware of a way to do this at the current time using the above methodology - but I could be wrong. There is an outstanding feature request to make the service name available to the spawn profile (https://tvheadend.org/issues/5069)