[mythtv] Recording of udp multicasting gives TS packet out of sync error

Karl Dietz dekarl at spaetfruehstuecken.org
Tue Nov 27 18:11:44 UTC 2012


On 27.11.2012 06:20, radhika g wrote:
> I using latest mythtv tv code from git (0.27 version) and trying to
> record udp stream. Below are the logs. ONly first frame is recorded and
> rest is empty.

...
> 2012-11-20 11:22:00.565901 E [23178/23238] RecThread
> iptvrecorder.cpp:195 (AddData) - IPTVRec: TS packet at 12, not in sync.

this error is not printed in master since October 24th... (merge of
ceton branch to master)

> For the same stream I am able to record by using mythtv-0.25(rtp
> branch+fixes) code.
>
> Checking of sync packet logic in iptvrecorder seems to be fine. Any
> hints on how to proceed further.

The logic may be fine, but if the RTP instead of UDP guess is right you
are getting one message per every 7 TS packets (or ~100 messages per 
mbit) depending on stream bandwith and system configuration the
recording might be failing due to excessive logging.

Looking at current master you just need to change the playlist to use
URLs with rtp:// scheme instead of udp:// scheme. (better yet, use the
rtsp links that describe the rtp stream)

Regards,
Karl

PS: I've not tested iptv on master/0.27 yet, I'm not sure if everything
works as designed ...


More information about the mythtv-dev mailing list