[mythtv-users] UDP multicast stream does not work

Rajil Saraswat rajil.s at gmail.com
Tue May 23 13:06:41 UTC 2017


On 05/22/2017 09:48 PM, Rajil Saraswat wrote:
> Hello,
>
> I am trying to use a iptv recorder and can play the multicast stream
> using 'vlc udp://@239.255.42.42:5004'. However, the stream refuses to
> play with mythtv-0.28.1. I setup a channel file as follows:
>
> $ cat iptv.m3u
> #EXTM3U
> #EXTINF:0,1 - Test Channel
> udp://239.255.42.42:5004
>
> Mythbackend log shows the following:
>
> 2017-05-22 21:42:14.451766 I [6216/6237] TVRecEvent tv_rec.cpp:4247
> (TuningNewRecorder) - TVRec[2]: TuningNewRecorder - CreateRecorder()
> 2017-05-22 21:42:14.452121 W [6216/6237] TVRecEvent
> recorders/recorderbase.cpp:201 (SetOption) - RecBase[2]():
> SetOption(mrl,file:///home/xx/iptv.m3u): Option not recognized
> 2017-05-22 21:42:14.452390 E [6216/6237] TVRecEvent
> recorders/recorderbase.cpp:229 (SetStrOption) -
> RecBase[2](file:///home/xx/iptv.m3u): SetStrOption(...recordingtype):
> Option not in profile.
> 2017-05-22 21:42:14.454069 I [6216/6364] StreamHandler
> recorders/iptvstreamhandler.cpp:125 (run) - IPTVSH(239.255.42.42::5004):
> run()
> 2017-05-22 21:42:14.454206 I [6216/6364] StreamHandler
> recorders/iptvstreamhandler.cpp:272 (run) - IPTVSH(239.255.42.42::5004):
> Joining 239.255.42.42
> 2017-05-22 21:42:30.617700 I [6216/6237] TVRecEvent tv_rec.cpp:1073
> (HandleStateChange) - TVRec[2]: Changing from WatchingLiveTV to None
> 2017-05-22 21:42:30.618199 E [6216/6237] TVRecEvent tv_rec.cpp:1786
> (GetStartChannel) - TVRec[0]: Problem finding starting channel, setting
> to default of '3'.
> 2017-05-22 21:42:30.626074 N [6216/6372] RecThread
> recorders/recorderbase.cpp:496 (FinishRecording) - Finished Recording:
> Container: MPEG2-TS Video Codec: h264 (0x0 A/R: 0 29.97fps) Audio Codec: mp2
> 2017-05-22 21:42:30.626471 I [6216/6237] TVRecEvent tv_rec.cpp:848
> (FinishedRecording) - TVRec[2]:
> FinishedRecording(1001_2017-05-23T02:42:15Z) damaged
> recq:<RecordingQuality overall_score="0" key="1001_2017-05-23T02:42:15Z">
>     <Gap start="2017-05-23T02:42:18Z" end="2017-05-23T03:00:00Z"
> duration="1061" />
> </RecordingQuality>
>
> 2017-05-22 21:42:30.640018 I [6216/6360] MythSocketThread(80)
> mainserver.cpp:7629 (connectionClosed) - Playback sock(1c52530)
> 'desktop' disconnected
>
>
> Any idea what could be wrong?
>
>
> Thanks
>
It seems mythtv doesnt like empty UDP packets which VLC is tolerant off.
After inserting the following rule, mythtv works fine.

iptables  -t raw -A PREROUTING -p udp -m length --length 28 -j DROP

Is there any way to incorporate this into mythtv?

Thanks



More information about the mythtv-users mailing list