Howto receive and UDP Stream udp://0.0.0.0:1234
#1
Hi @all I am new here and new to XBMC I am right now testing it on my windows 7 netbook.

But I can't open an UDP stream ... Undecided can't be that difficult??

I tried writing an *.strm file with different entries like:

udp://0.0.0.0:1234
udp://@0.0.0.0:1234
udp://:1234
udp://@:1234
udp://xxx.xxx.xxx.xxx:1234
udp://@xxx.xxx.xxx.xxx:1234

xxx.xxx.xxx.xxx is the IP the Server Streams to ...


But no matter what i try ... i allways get an error:

From the Log file:
Quote:17:37:15 T:4552 M:863793152 NOTICE: DVDPlayer: Opening: udp://@:1234
17:37:15 T:4552 M:863789056 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:37:15 T:4132 M:863772672 NOTICE: Creating InputStream
17:37:15 T:4132 M:863727616 NOTICE: Creating Demuxer
17:37:45 T:4132 M:858083328 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
17:37:45 T:4132 M:858083328 NOTICE: CDVDPlayer::OnExit()
17:37:45 T:4132 M:858083328 NOTICE: CDVDPlayer::OnExit() deleting input stream
17:37:45 T:4552 M:858103808 ERROR: Playlist Player: skipping unplayable item: 0, path [udp://@:1234]
17:37:45 T:4552 M:858095616 NOTICE: CDVDPlayer::CloseFile()
17:37:45 T:4552 M:858095616 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:37:45 T:4552 M:858095616 NOTICE: DVDPlayer: waiting for threads to exit
17:37:45 T:4552 M:858095616 NOTICE: DVDPlayer: finished waiting
17:38:03 T:4552 M:872751104 NOTICE: DVDPlayer: Opening: udp://@0.0.0.0:1234
17:38:03 T:4552 M:872751104 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:38:03 T:1040 M:872738816 NOTICE: Creating InputStream
17:38:03 T:1040 M:872738816 NOTICE: Creating Demuxer
17:38:33 T:1040 M:864358400 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
17:38:33 T:1040 M:864358400 NOTICE: CDVDPlayer::OnExit()
17:38:33 T:1040 M:864358400 NOTICE: CDVDPlayer::OnExit() deleting input stream
17:38:33 T:4552 M:864415744 ERROR: Playlist Player: skipping unplayable item: 0, path [udp://@0.0.0.0:1234]
17:38:33 T:4552 M:864391168 NOTICE: CDVDPlayer::CloseFile()
17:38:33 T:4552 M:864391168 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:38:33 T:4552 M:864391168 NOTICE: DVDPlayer: waiting for threads to exit
17:38:33 T:4552 M:864391168 NOTICE: DVDPlayer: finished waiting
17:38:55 T:4552 M:873017344 NOTICE: DVDPlayer: Opening: udp://0.0.0.0:1234
17:38:55 T:4552 M:873017344 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:38:55 T:5576 M:873005056 NOTICE: Creating InputStream
17:38:55 T:5576 M:873025536 NOTICE: Creating Demuxer
17:39:25 T:5576 M:863748096 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
17:39:25 T:5576 M:863748096 NOTICE: CDVDPlayer::OnExit()
17:39:25 T:5576 M:863748096 NOTICE: CDVDPlayer::OnExit() deleting input stream
17:39:25 T:4552 M:863784960 ERROR: Playlist Player: skipping unplayable item: 0, path [udp://0.0.0.0:1234]
17:39:25 T:4552 M:863793152 NOTICE: CDVDPlayer::CloseFile()
17:39:25 T:4552 M:863793152 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:39:25 T:4552 M:863793152 NOTICE: DVDPlayer: waiting for threads to exit
17:39:25 T:4552 M:863793152 NOTICE: DVDPlayer: finished waiting
17:39:53 T:4552 M:875278336 NOTICE: DVDPlayer: Opening: udp://@0.0.0.0:1234
17:39:53 T:4552 M:875278336 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:39:53 T:2568 M:875261952 NOTICE: Creating InputStream
17:39:53 T:2568 M:875261952 NOTICE: Creating Demuxer
17:40:23 T:2568 M:876572672 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
17:40:23 T:2568 M:876572672 NOTICE: CDVDPlayer::OnExit()
17:40:23 T:2568 M:876572672 NOTICE: CDVDPlayer::OnExit() deleting input stream
17:40:23 T:4552 M:876634112 ERROR: Playlist Player: skipping unplayable item: 0, path [udp://@0.0.0.0:1234]
17:40:23 T:4552 M:876630016 NOTICE: CDVDPlayer::CloseFile()
17:40:23 T:4552 M:876630016 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:40:23 T:4552 M:876630016 NOTICE: DVDPlayer: waiting for threads to exit
17:40:23 T:4552 M:876630016 NOTICE: DVDPlayer: finished waiting
17:40:26 T:4552 M:877322240 NOTICE: DVDPlayer: Opening: udp://:1234
17:40:26 T:4552 M:877322240 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:40:26 T:5272 M:877309952 NOTICE: Creating InputStream
17:40:26 T:5272 M:877301760 NOTICE: Creating Demuxer
17:40:56 T:5272 M:868446208 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
17:40:56 T:5272 M:868446208 NOTICE: CDVDPlayer::OnExit()
17:40:56 T:5272 M:868446208 NOTICE: CDVDPlayer::OnExit() deleting input stream
17:40:56 T:4552 M:868495360 ERROR: Playlist Player: skipping unplayable item: 0, path [udp://:1234]
17:40:56 T:4552 M:868491264 NOTICE: CDVDPlayer::CloseFile()
17:40:56 T:4552 M:868491264 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:40:56 T:4552 M:868491264 NOTICE: DVDPlayer: waiting for threads to exit
17:40:56 T:4552 M:868491264 NOTICE: DVDPlayer: finished waiting
17:41:39 T:4552 M:876584960 NOTICE: DVDPlayer: Opening: udp://137.226.96.22:1234
17:41:39 T:4552 M:876584960 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:41:39 T:336 M:876572672 NOTICE: Creating InputStream
17:41:39 T:336 M:876572672 NOTICE: Creating Demuxer
17:42:09 T:336 M:866144256 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
17:42:09 T:336 M:866144256 NOTICE: CDVDPlayer::OnExit()
17:42:09 T:336 M:866144256 NOTICE: CDVDPlayer::OnExit() deleting input stream
17:42:09 T:4552 M:866177024 ERROR: Playlist Player: skipping unplayable item: 0, path [udp://137.226.96.22:1234]
17:42:09 T:4552 M:866172928 NOTICE: CDVDPlayer::CloseFile()
17:42:09 T:4552 M:866172928 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
17:42:09 T:4552 M:866172928 NOTICE: DVDPlayer: waiting for threads to exit
17:42:09 T:4552 M:866172928 NOTICE: DVDPlayer: finished waiting

So how to solve this problem? I need this to view live TV :-p ...


Thanks a lot
ChBi
Reply
#2
Seems to be the same Problem like in Ticket #9496

http://trac.xbmc.org/ticket/9496

Has anyone a suggestion?

VLC Just Plays fine "udp://@0.0.0.0:1234" ...

Are there any possibilities to use VLC inside XBMC


ChBi
Reply
#3
ChBi Wrote:Are there any possibilities to use VLC inside XBMC

Yes, you can configure VLC as an external player. See http://wiki.xbmc.org/index.php?title=HOW...a_playback. I would probably put something in the strm file name to indicate it's a udp stream so you could use a rule like:

<rule name="playudp" filename=".*udpstream.*" player="MyVLCPlayer" />

The Wiki article is a little long winded, but configuring an external player is not as hard as it seems. I did a quick search throuhg the forum but couldn't see any post describing how to use VLC as an external player (most people seem to favour MPC-HC), but the following would be a reasonable starting point.

Press Windows-R and in the Run dialog type:

notepad "%appdata%\xbmc\userdata\playercorefactory.xml"

and click OK, and when you're asked to create a new file answer Yes. Copy and paste the following into Notepad then close Notepad and save the file.

Code:
<playercorefactory>
  <players>
    <player name="MyVLCPlayer" type="ExternalPlayer">
     <filename>Path to VLC</filename>
     <args>"{1}"</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <warpcursor>none</warpcursor>
    </player>
  </players>

  <rules action="prepend">
    <rule name="playudp" filename=".*udpstream.*" player="MyVLCPlayer" />
  </rules>
</playercorefactory>

You'll need to replace "Path to VLC" with the full path to wherever you've installed VLC. You may need to tweak the <args> tag to get VLC to play full screen and to exit when the stream is finished.

JR
Reply
#4
THX!!! That works very fine!
I used
Quote:<args>"{1}" -f --no-qt-notification --qt-autosave-volume --no-qt-updates-notif</args>

as argument so it opens in fullscreen and doesn't notify u about updates

But i have still problems with the regexp of the filename...


I tried different ones but it doesn't work ... some times it opens EVERY file with VLC sometimes no one ...


I want it to open every file with "UDP" inside the name no matter where to open with VLC ... but i don't know how :-(


May somebody help me ?

ChBi
Reply
#5
I solved it on my own ;-)

don't try to use capitel letters in regular expressions!

;-) good night
until i have new questions ;-)

THX
Reply
#6
Question 
Receiving the UDP Stream via VLC works.

But isn't there someone who knows how to get XBMC on his own to run such a stream?

It would be much easier to use it within XBMC. Inside the known style with common controls, you don't need to Close VLC etc ...

I have an TV Hoster that provides the TV channels via this UDP Protocol and changing the channel by closing VLC and reopening it with other args is a bit strangeUndecided

Streaming inside XBMC would be that easy but it doesn't work :-( does somebody know how to fix this inside XBMC :confused2:

It would be great if somebody could help me

ChBi
Reply
#7
If you give me a sample stream I can have a look. Offhand I don't know of any UDP streams.

JR
Reply

Logout Mark Read Team Forum Stats Members Help
Howto receive and UDP Stream udp://0.0.0.0:12340