UPnP stream problems
#1
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.dln...s/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
Reply
#2
debug log - we need to (hopefully) see what triggers the error creating player message.

in general we decide based on protocol and file extension
Reply
#3
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
Reply
#4
X+Y on boot. The friendly manual has all the info you need Wink
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
thanks, going to give it a go and let you have a log see if we can get this working.
Reply
#6
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
Reply
#7
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
Reply
#8
IT WORKS

I now have a box that streams live tv from DTT(OFDM) to the xbox.

joolz
Reply
#9
Please use pastebin.com to upload/share temporary XML files such as debug logs, thanks.
http://xboxmediacenter.com/wiki/index.ph...-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
2007-09-16 10241 changed: upnp server now only builds objects if they are part of the requested range
2007-09-15 10235 changed: make upnp server set better object class'es for containers when it knows.
2007-09-15 10234 changed: use somewhat better object classes for items in upnp server
2007-09-15 10233 changed: set dc:creator to artist and upnp:artist to the album artist like wmp does it.
2007-09-15 10232 changed: upnp server now returns more proper content types and dlna tags in protocolinfo
2007-09-13 10221 fixed: xbmc wouldn't be able to connect a upnp server that had been restarted after xbmc was started on xbox due to a changed description url (only applies to Xbox build as it doesn't see the BYE announce). (try 2)
2007-09-13 10220 changed: provide genre's as multiple genre tags in upnp same way as windows media player server does it (we currently don't read them) fixed: upnp server would be dead slow to return data to clients due to a 100ms sleep for each item when checking network status.
2007-09-13 10219 changed: don't set LabelPreformatted if we have a music or video tag for upnp sources
2007-09-12 10214 fixed: CFileItem::m_contenttype was not serialized or copied, lead to slower player checking for upnp items
2007-09-12 10213 fixed: xbmc wouldn't be able to connect a upnp server that had been restarted after xbmc was started on xbox due to a changed description url (only applies to Xbox build as it doesn't see the BYE announce).
2007-09-12 10212 fixed: upnp, PLT_Service::SetSCPDXML would crash if called more than once due to missing actions during cleanup
2007-09-12 10210 fixed: typo in X_MS_MediaReceiverRegistrar upnp service
2007-09-03 10150 changed: always retry upnp event sending once
2007-09-03 10149 changed: improved upnp eventing code to retry if server closed connection + discard events if server stops accepting them
2007-09-03 10146 fixed: upnp eventing would reopen sockets each time even if next event was to the same target.
2007-09-03 10145 changed: make upnp event sockets timeout after 30 seconds changed: allow max 10 queued upnp events
2007-09-03 10144 fixed: make sure stopping upnp renderer/server cleanup properly added: queued upnp eventing, one thread per subscriber instead of one for every occuring event.
2007-08-30 10122 changed: allow upnp server to serve files through xbmc's normal filesystem. this allows xbmc to serve remote files (like on smb) to the client that only support http.
2007-08-30 10118 fixed: upnp client/server couldn't parse chunked server responses (Neptune's http reader didn't support it). Nero MediaHome uses this in it's responses.
2007-08-30 10115 fixed: don't crash upnp client/server if we run out of sockets
2007-08-29 10113 changed: always announce upnp device every 7 seconds, even if we are attempting our psuevdo multicast mode on xbox (we can send, but not hear multicast)

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.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#10
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
Reply
#11
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.

one thing missing though is allowing me to change audio channels and also subtitles (teletext based or dvb subtitles)
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.ph...rt_project
http://xboxmediacenter.com/wiki/index.ph...ource_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.ph...es_on_UPnP
http://forum.xbmc.org/showthread.php?tid=4463
http://forum.xbmc.org/showthread.php?tid=28519
http://forum.team-mediaportal.com/upnp_s...t1037.html
http://www.mythtv.org/wiki/index.php/Fea...t_features
http://www.mythtv.org/wiki/index.php/Fea...t_features
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply

Logout Mark Read Team Forum Stats Members Help
UPnP stream problems0