2019-12-24, 03:49 AM
Hi,
This issue has been there since the very first v5 release I installed and it doesn't exist in v4. Basically if the channel name contains international characters (e.g. Chinese), the server has issue to parse the *.ts.map file which in turns fails the streaming process. I have changed all the names to English letters and have been living with it hoping this will be resolved in a couple releases. However, until now it seems no one else has reported the issue. I think it's the time I bring it up.
I have a channel named "CCTV-1综合HD", you would notice two Chinese letters in it, when I start streaming the channel, NextPVR runs into the following error in the nrecord.log. further investigation revealed that it tried to parse a file called "live-CCTV-1综合HD-20688-4.ts.map" but failed. However if I removed the Chinese letters from channel name, the error went away and the streaming was fine. I believe it's an encoding support issue. Hope Sub and/or Martin can address it. Thanks a lot!
...
2019-12-23 22:03:09.468 [DEBUG][15] IPTV StartStream@8
2019-12-23 22:03:09.468 [DEBUG][15] Creating writer: LIVE&H:\StreamCaptures\Videos\live-CCTV-1综合HD-20688-4.ts
2019-12-23 22:03:09.468 [DEBUG][15] live mode
2019-12-23 22:03:09.469 [DEBUG][41] RollingFile.Open(H:\StreamCaptures\Videos\live-iptv-c738aef1dd794c759431498d0578b106.ts)
2019-12-23 22:03:09.491 [DEBUG][15] Created Mutex: Global\NPVR-mutex-98cf9a8bec6679ad24fe63233e752c1f
2019-12-23 22:03:09.491 [DEBUG][15] Created map: System.IO.FileStream
2019-12-23 22:03:09.492 [DEBUG][15] StartStream [LIVE&H:\StreamCaptures\Videos\live-CCTV-1综合HD-20688-4.ts] allocated handle: 4
2019-12-23 22:03:09.492 [DEBUG][15] IPTV StartStream@9
2019-12-23 22:03:09.492 [DEBUG][15] Live TV handle: 0x140004
2019-12-23 22:03:09.492 [DEBUG][15] StartStream(9151:CCTV-1综合HD, LIVE&H:\StreamCaptures\Videos\live-CCTV-1综合HD-20688-4.ts) allocated handle: 1310724
2019-12-23 22:03:09.492 [DEBUG][15] Handle: 140004
2019-12-23 22:03:09.492 [DEBUG][15] StreamNative@9 (storing stream handle: 1310724)
2019-12-23 22:03:09.492 [DEBUG][15] clientHandle[f785b355-7871-41e5-a8f2-542c2dbee833] = 1310724 *
2019-12-23 22:03:09.693 [DEBUG][15] StreamNative@10 (with close monitoring...)
2019-12-23 22:03:09.693 [DEBUG][15] RollingFile.Open(H:\StreamCaptures\Videos\live-CCTV-1综合HD-20688-4.ts)
2019-12-23 22:03:09.701 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:09.802 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
...
2019-12-23 22:03:09.903 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:10.004 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:10.105 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:10.206 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:10.307 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
...
2019-12-23 22:03:11.901 [ERROR][15] Unexpected error streaming channel: System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 14, position 5.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
at System.Xml.XmlTextReaderImpl.ParseEndElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at NShared.Utility.FileMapHelper.GetMappingDoc()
at NShared.Utility.RollingFile.IsComplete()
at NShared.Streaming.StreamingHelper.StreamNative(ServiceResponseStream responseStream, Dictionary`2 parameters)
This issue has been there since the very first v5 release I installed and it doesn't exist in v4. Basically if the channel name contains international characters (e.g. Chinese), the server has issue to parse the *.ts.map file which in turns fails the streaming process. I have changed all the names to English letters and have been living with it hoping this will be resolved in a couple releases. However, until now it seems no one else has reported the issue. I think it's the time I bring it up.
I have a channel named "CCTV-1综合HD", you would notice two Chinese letters in it, when I start streaming the channel, NextPVR runs into the following error in the nrecord.log. further investigation revealed that it tried to parse a file called "live-CCTV-1综合HD-20688-4.ts.map" but failed. However if I removed the Chinese letters from channel name, the error went away and the streaming was fine. I believe it's an encoding support issue. Hope Sub and/or Martin can address it. Thanks a lot!
...
2019-12-23 22:03:09.468 [DEBUG][15] IPTV StartStream@8
2019-12-23 22:03:09.468 [DEBUG][15] Creating writer: LIVE&H:\StreamCaptures\Videos\live-CCTV-1综合HD-20688-4.ts
2019-12-23 22:03:09.468 [DEBUG][15] live mode
2019-12-23 22:03:09.469 [DEBUG][41] RollingFile.Open(H:\StreamCaptures\Videos\live-iptv-c738aef1dd794c759431498d0578b106.ts)
2019-12-23 22:03:09.491 [DEBUG][15] Created Mutex: Global\NPVR-mutex-98cf9a8bec6679ad24fe63233e752c1f
2019-12-23 22:03:09.491 [DEBUG][15] Created map: System.IO.FileStream
2019-12-23 22:03:09.492 [DEBUG][15] StartStream [LIVE&H:\StreamCaptures\Videos\live-CCTV-1综合HD-20688-4.ts] allocated handle: 4
2019-12-23 22:03:09.492 [DEBUG][15] IPTV StartStream@9
2019-12-23 22:03:09.492 [DEBUG][15] Live TV handle: 0x140004
2019-12-23 22:03:09.492 [DEBUG][15] StartStream(9151:CCTV-1综合HD, LIVE&H:\StreamCaptures\Videos\live-CCTV-1综合HD-20688-4.ts) allocated handle: 1310724
2019-12-23 22:03:09.492 [DEBUG][15] Handle: 140004
2019-12-23 22:03:09.492 [DEBUG][15] StreamNative@9 (storing stream handle: 1310724)
2019-12-23 22:03:09.492 [DEBUG][15] clientHandle[f785b355-7871-41e5-a8f2-542c2dbee833] = 1310724 *
2019-12-23 22:03:09.693 [DEBUG][15] StreamNative@10 (with close monitoring...)
2019-12-23 22:03:09.693 [DEBUG][15] RollingFile.Open(H:\StreamCaptures\Videos\live-CCTV-1综合HD-20688-4.ts)
2019-12-23 22:03:09.701 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:09.802 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
...
2019-12-23 22:03:09.903 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:10.004 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:10.105 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:10.206 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
2019-12-23 22:03:10.307 [ERROR][15] Unexpected end of file while parsing Name has occurred. Line 14, position 5.
...
2019-12-23 22:03:11.901 [ERROR][15] Unexpected error streaming channel: System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 14, position 5.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
at System.Xml.XmlTextReaderImpl.ParseEndElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at NShared.Utility.FileMapHelper.GetMappingDoc()
at NShared.Utility.RollingFile.IsComplete()
at NShared.Streaming.StreamingHelper.StreamNative(ServiceResponseStream responseStream, Dictionary`2 parameters)