UPnP stream problems - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: UPnP stream problems (/showthread.php?tid=27762) |
UPnP stream problems - joolzg - 2007-08-06 I am writing a utility do stream live video from a settop box i have access to code on, i have managed to get the xbox to see the box and see the directories and files but i get the following error "Error creating player for item [ http://192.168.1.3:4097/14/video/vnd.dlna.mpeg-tts/SVT1.ts] now i have also tried using video/mpeg as the type and the same problem, what is the xbox looking for to decide its a valid stream? joolz - spiff - 2007-08-06 debug log - we need to (hopefully) see what triggers the error creating player message. in general we decide based on protocol and file extension - joolzg - 2007-09-18 now get this error 0:10:26 M: 33439744 ERROR: CMPlayer::OpenFile http://192.168.1.5:4097/10/video/mpeg/$03fe$1888.mpg failed with code 0 is there a way of turning on more debug as the log is a little thin on the ground joolz - jmarshall - 2007-09-18 X+Y on boot. The friendly manual has all the info you need - joolzg - 2007-09-18 thanks, going to give it a go and let you have a log see if we can get this working. - joolzg - 2007-09-18 seem to have found the problem but i cant fix it on my side! 00:48:53 M: 33640448 DEBUG: msg: mplayer_init() 00:48:53 M: 33640448 DEBUG: msg: MPlayer XBMC-SVN-r10070 © 2000-2004 MPlayer Team 00:48:53 M: 33640448 DEBUG: msg: CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 00:48:53 M: 33640448 DEBUG: msg: (Family: 6, Stepping: 10) 00:48:53 M: 33640448 DEBUG: msg: Detected cache-line size is 32 bytes 00:48:53 M: 33640448 DEBUG: msg: CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0 00:48:53 M: 33640448 DEBUG: msg: Compiled for x86 CPU with extensions: 00:48:53 M: 33640448 DEBUG: msg: MMX 00:48:53 M: 33640448 DEBUG: msg: MMX2 00:48:53 M: 33640448 DEBUG: msg: SSE 00:48:53 M: 33640448 DEBUG: msg: 00:48:53 M: 33628160 DEBUG: msg: 00:48:53 M: 33640448 DEBUG: msg: Creating config file: Q:\system\players\mplayer\config 00:48:53 M: 33628160 DEBUG: msg: 00:48:53 M: 33640448 DEBUG: msg: get_path('codecs.conf') -> 'Q:\system\players\mplayer\codecs.conf' 00:48:53 M: 33640448 DEBUG: msg: Reading Q:\system\players\mplayer\codecs.conf: 00:48:53 M: 33292288 DEBUG: msg: 107 audio & 225 video codecs 00:48:53 M: 33292288 DEBUG: msg: CommandLine: 00:48:53 M: 33292288 DEBUG: msg: '-dr' 00:48:53 M: 33292288 DEBUG: msg: '-v' 00:48:53 M: 33292288 DEBUG: msg: '-subcp' 00:48:53 M: 33292288 DEBUG: msg: 'enca:__:CP1252' 00:48:53 M: 33292288 DEBUG: msg: '-channels' 00:48:53 M: 33292288 DEBUG: msg: '6' 00:48:53 M: 33292288 DEBUG: msg: '-a52drc' 00:48:53 M: 33292288 DEBUG: msg: '1' 00:48:53 M: 33292288 DEBUG: msg: '-noflip-hebrew' 00:48:53 M: 33292288 DEBUG: msg: '-noflip-hebrew-commas' 00:48:53 M: 33292288 DEBUG: msg: '-fs' 00:48:53 M: 33292288 DEBUG: msg: '1.avi' 00:48:53 M: 33292288 DEBUG: msg: 00:48:53 M: 33292288 DEBUG: msg: get_path('font/font.desc') -> 'Q:\system\players\mplayer\font/font.desc' 00:48:53 M: 32763904 DEBUG: msg: font: can't open file: Q:\system\players\mplayer\font/font.desc 00:48:53 M: 32763904 DEBUG: msg: font: can't open file: Q:\system\players\mplayer/font/font.desc 00:48:53 M: 33292288 DEBUG: msg: Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay 00:48:53 M: 33275904 DEBUG: msg: Using XBOX High Resolution Timers for timing 00:48:53 M: 33275904 DEBUG: msg: get_path('input.conf') -> 'Q:\system\players\mplayer\input.conf' 00:48:53 M: 33275904 DEBUG: msg: Parsing input config file Q:\system\players\mplayer\input.conf 00:48:53 M: 33263616 DEBUG: msg: Input config file Q:\system\players\mplayer\input.conf parsed: 51 binds 00:48:53 M: 33263616 DEBUG: msg: mplayer_open_file( http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg) 00:48:53 M: 33263616 DEBUG: msg: Loading config ' http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg.conf' 00:48:53 M: 33263616 DEBUG: msg: Reading config file http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg.conf 00:48:53 M: 33251328 DEBUG: msg: : No error 00:48:53 M: 33263616 DEBUG: msg: Playing http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg. 00:48:53 M: 33263616 DEBUG: msg: find subtitles 00:48:53 M: 33263616 DEBUG: msg: auto open Z:\subtitle 00:48:53 M: 33263616 DEBUG: msg: Filename for url is now %0Ahttp://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg 00:48:53 M: 33263616 DEBUG: msg: protocol:%0Ahttp 00:48:53 M: 33263616 DEBUG: msg: use standard file for protocol:%0Ahttp 00:48:53 M: 33263616 DEBUG: msg: Option stream url: This URL doesn't have a port part. 00:48:53 M: 33263616 DEBUG: msg: Option stream url: This URL doesn't have a hostname part. 00:48:53 M: 33243136 DEBUG: msg: WINSOCK2 init: 0 00:48:53 M: 33243136 DEBUG: msg: File not found: '8/video/mpeg/$03fd$0366.mpg' 00:48:53 M: 33263616 DEBUG: msg: Failed to open http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg. 00:48:53 M: 33263616 DEBUG: msg: unable to open stream 00:48:53 M: 33263616 ERROR: CMPlayer::OpenFile http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg failed with code 0 00:48:53 M: 33263616 DEBUG: msg: mplayer_close_file() 00:48:53 M: 33263616 DEBUG: msg: 00:48:53 M: 33263616 DEBUG: msg: uninit_player 00:48:53 M: 33628160 DEBUG: msg: uninit_player - done Now if i remove the offending 0x0a from my string then i get loads of errors from the upnp engine. joolz - joolzg - 2007-09-18 well i have not got the stage where i XBMC is asking for data but it does not like my ts stream! Playing http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg. 09:03:29 M: 31842304 DEBUG: msg: find subtitles 09:03:29 M: 31842304 DEBUG: msg: auto open Z:\subtitle 09:03:29 M: 31842304 DEBUG: msg: Filename for url is now http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg 09:03:29 M: 31842304 DEBUG: msg: protocol:http 09:03:29 M: 31842304 DEBUG: msg: open stream protocol:http 09:03:29 M: 31821824 DEBUG: msg: WINSOCK2 init: 0 09:03:29 M: 31821824 DEBUG: msg: Filename for url is now http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg 09:03:29 M: 31821824 DEBUG: msg: Connecting to server 192.168.1.5[192.168.1.5]:4097 ... 09:03:29 M: 31821824 DEBUG: msg: --- HTTP DEBUG HEADER --- START --- 09:03:29 M: 31821824 DEBUG: msg: protocol: [HTTP/1.1] 09:03:29 M: 31821824 DEBUG: msg: http minor version: [1] 09:03:29 M: 31821824 DEBUG: msg: uri: [(null)] 09:03:29 M: 31821824 DEBUG: msg: method: [(null)] 09:03:29 M: 31821824 DEBUG: msg: status code: [200] 09:03:29 M: 31821824 DEBUG: msg: reason phrase: [OK] 09:03:29 M: 31821824 DEBUG: msg: body size: [0] 09:03:29 M: 31821824 DEBUG: msg: Fields: 09:03:29 M: 31821824 DEBUG: msg: 0 - Date: Sat, 01 Jan 0000 00:00:00 GMT 09:03:29 M: 31821824 DEBUG: msg: 1 - Server: RT-Platform/1.0 UPnP/1.0 EBS Mi 09:03:29 M: 31821824 DEBUG: msg: 2 - Connection: close 09:03:29 M: 31821824 DEBUG: msg: 3 - Content-Type: video/vnd.dlna.mpeg-tts 09:03:29 M: 31821824 DEBUG: msg: 4 - Accept-ranges: none 09:03:29 M: 31821824 DEBUG: msg: --- HTTP DEBUG HEADER --- END --- 09:03:29 M: 31821824 DEBUG: msg: Content-Type: [video/vnd.dlna.mpeg-tts] 09:03:29 M: 31821824 DEBUG: msg: Cache size set to 4096 KBytes 09:03:29 M: 31821824 DEBUG: msg: Connected to server: 192.168.1.5 09:03:29 M: 27074560 DEBUG: msg: CACHE_PRE_INIT: 0 [0] 0 pre:838860 eof:0 09:03:29 M: 27074560 DEBUG: msg: Cache fill: 0.00% (0 bytes) 09:03:30 M: 27074560 DEBUG: msg: Cache fill: 0.00% (0 bytes) 09:03:30 M: 27074560 DEBUG: msg: 09:03:30 M: 27074560 DEBUG: msg: demux_open(00A90010,0,-1,-1,-1) 09:03:30 M: 27074560 DEBUG: msg: Checking for YUV4MPEG2 09:03:30 M: 27074560 DEBUG: msg: ASF_check: not ASF guid! 09:03:30 M: 27074560 DEBUG: msg: Checking for Nullsoft Streaming Video 09:03:30 M: 27074560 DEBUG: msg: Checking for NuppelVideo 09:03:30 M: 27074560 DEBUG: msg: Checking for REAL 09:03:30 M: 27074560 DEBUG: msg: Checking for SMJPEG 09:03:30 M: 27074560 DEBUG: msg: Searching demuxer type for filename http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg ext: .mpg 09:03:30 M: 27074560 DEBUG: msg: Checking for MOV 09:03:30 M: 27074560 DEBUG: msg: Checking for VIVO 09:03:30 M: 27074560 DEBUG: msg: SUB: opened iconv descriptor. 09:03:30 M: 27062272 DEBUG: msg: SUB: closed iconv descriptor. 09:03:30 M: 27074560 DEBUG: msg: Checking for PVA 09:03:31 M: 27074560 DEBUG: msg: Checking for MPEG-TS... 09:03:31 M: 27074560 DEBUG: msg: THIS DOESN'T LOOK LIKE AN MPEG-TS FILE! 09:03:31 M: 27074560 DEBUG: msg: TRIED UP TO POSITION 0, FOUND ffffff00, packet_size= 0, SEEMS A TS? 0 09:03:31 M: 27074560 DEBUG: msg: Checking for LMLM4 Stream Format 09:03:31 M: 27074560 DEBUG: msg: cache_stream_seek: WARNING! Can't seek to 0xFFFFFFFFFFFFFFF8 ! 09:03:31 M: 27074560 DEBUG: msg: LMLM4 Stream Format not found 09:03:31 M: 27074560 DEBUG: msg: MPEG Stream reached EOF 09:03:31 M: 27074560 DEBUG: msg: ds_fill_buffer: EOF reached (stream: video) 09:03:31 M: 27074560 DEBUG: msg: MPEG packet stats: p100: 0 p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 0 idr: 0 sps: 0 pps: 0 PES: 0 MP3: 0, synced: 0 09:03:31 M: 27074560 DEBUG: msg: Not MPEG System Stream format... (maybe Transport Stream?) 09:03:31 M: 27074560 DEBUG: msg: demux_aac_probe, failed to detect an AAC stream 09:03:31 M: 27054080 DEBUG: msg: ds_fill_buffer: EOF reached (stream: video) 09:03:31 M: 27074560 ERROR: CMPlayer::OpenFile http://192.168.1.5:4097/8/video/mpeg/$03fd$0366.mpg failed with code -1 - joolzg - 2007-09-18 IT WORKS I now have a box that streams live tv from DTT(OFDM) to the xbox. joolz - Gamester17 - 2007-09-18 Please use pastebin.com to upload/share temporary XML files such as debug logs, thanks. http://xboxmediacenter.com/wiki/index.php?title=Debug_log#Logs_and_debug-log_files Note that there has been quite a few updates to XBMC UPnP code in the last few weeks so you might want to start by updating XBMC to the latest T3CH SVN build (google "T3CH XBMC") and test again. This is a just a list of the UPnP changes made in the SVN since the revision you are using of XBMC Quote:2007-09-16 10242 changed: split out CFileItem -> PLT_MediaObject conversion to simplify improvement to search functionality for upnp server PS! Please tell us a little more about the utility you are writting and the the set-top box, you made at least me curious. - joolzg - 2007-09-18 what can i say, i write software for a living and we have a ps3/xbox/xbox360 in the house, I also have a ASUS wl-700ge router which allows me and the wife to watch our video/music collection from the server on our tvs but one thing we could not do was watch tv, without switching over so i decided to write a live tv server. I will now go off and see if the company i work for will allow me to make a special version!! i thinking of a little box with either a dvb-t/dvb-s or cable frontend which will allow streaming of live feeds to any unit that understands upnp. one thing missing though is allowing me to change audio channels and also subtitles (teletext based or dvb subtitles) maybe i should get a build system for xbmc running and add these in myself!!! joolz - Gamester17 - 2007-09-18 joolzg Wrote:I will now go off and see if the company i work for will allow me to make a special version!! i thinking of a little box with either a dvb-t/dvb-s or cable frontend which will allow streaming of live feeds to any unit that understands upnp.I would definitely buy one if it could do all of that, and there are probebly many others in Europe like me who would as well (and not just XBMC users, users of other HTPC softwares as well, like MediaPortal, MythTV, MeediOS, and even Windows MCE). joolzg Wrote:maybe i should get a build system for xbmc running and add these in myself!!!Yes please do. Note that today you can build XBMC for Linux and Windows/Win32, as well as for the Xbox. http://xboxmediacenter.com/wiki/index.php?title=Linux_port_project http://xboxmediacenter.com/wiki/index.php?title=HOW-TO:_Compile_XBMC_for_Win32_from_source_code PS! I been lobbying and pitching ideas about expanded UPnP functionality in XBMC and other third-party devices/software for years and would love to help in anyway I can, however I am not a programmer/developer myself, but feel free PM or e-mail me if you want to brainstorm. Recommended reading: http://xboxmediacenter.com/wiki/index.php?title=UPnP#Developers_notes_on_UPnP http://forum.xbmc.org/showthread.php?tid=4463 http://forum.xbmc.org/showthread.php?tid=28519 http://forum.team-mediaportal.com/upnp_support_universal_plug_and_play-t1037.html http://www.mythtv.org/wiki/index.php/Feature_Wishlist_%28Backend_Addons%29#UPnP_.28Universal_Plug_and_Play.29_server_and_client_features http://www.mythtv.org/wiki/index.php/Feature_Wishlist_%28Frontend_Addons%29#UPnP_.28Universal_Plug_and_Play.29_server_and_client_features |