UDP stream failure
#1
Hi,

I'm trying to figure out why UDP streaming doesn't work. I'm using the 9.11 release source, but I've tried this also with the latest nightly builds and confirmed it is still broken. I've seen a few postings about this lately in the user forums with no real solutions. I'm trying to stream an MPEG-2 TS over UDP. I've created a .strm file with udp://127.0.0.1:6666. I'm sending the stream from VLC. VLC can also receive this, but XBMC fails. The relevant part of the log is below.

15:07:14 T:5624 M:2555895808 NOTICE: DVDPlayer: Opening: udp://127.0.0.1:6666
15:07:14 T:5624 M:2555887616 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
15:07:14 T:1540 M:2555871232 NOTICE: Creating InputStream
15:07:14 T:1540 M:2555858944 NOTICE: Creating Demuxer
15:07:25 T:1540 M:2552610816 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
15:07:25 T:1540 M:2552528896 NOTICE: CDVDPlayer::OnExit()
15:07:25 T:1540 M:2552524800 NOTICE: CDVDPlayer::OnExit() deleting input stream
15:07:25 T:5624 M:2552569856 ERROR: Playlist Player: skipping unplayable item: 0, path [udp://127.0.0.1:6666]
15:07:25 T:5624 M:2552406016 NOTICE: CDVDPlayer::CloseFile()
15:07:25 T:5624 M:2552406016 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
15:07:25 T:5624 M:2552406016 NOTICE: DVDPlayer: waiting for threads to exit
15:07:25 T:5624 M:2552406016 NOTICE: DVDPlayer: finished waiting
15:07:38 T:5624 M:2549346304 NOTICE: Storing total System Uptime
15:07:38 T:5624 M:2549346304 NOTICE: Saving settings
15:07:38 T:5624 M:2549301248 NOTICE: stop all
15:07:38 T:5624 M:2549297152 NOTICE: ES: Stopping event server
15:07:39 T:2344 M:2549862400 NOTICE: ES: UDP Event server stopped
15:07:39 T:5624 M:2549882880 NOTICE: stop sap announcement listener
15:07:39 T:5624 M:2549882880 NOTICE: clean cached files!
15:07:39 T:5624 M:2549874688 NOTICE: unload skin
15:07:39 T:5624 M:2553720832 NOTICE: stop python
15:07:39 T:5624 M:2553729024 NOTICE: stopped
15:07:39 T:5624 M:2553729024 NOTICE: destroy
15:07:39 T:5624 M:2554032128 NOTICE: unload sections

I've traced the failure to the following call in CDVDDemuxFFmpeg::Open(CDVDInputStream* pInput):

if( m_dllAvFormat.av_open_input_file(&m_pFormatContext, strFile.c_str(), iformat, FFMPEG_FILE_BUFFER_SIZE, NULL) < 0 )

Any suggestions on how I can best debug this when it is failing inside the DLL? Anybody know why UDP streaming doesn't work?

Thank you.

Jeff
Reply
#2
Actually, (to answer my own question five minutes after I posted) I think this is one part due to Ticket #9496 "Can't play an UDP unicast stream". The second part is that I had tried to use multicast addresses, but I didn't realize that a multicast address needs to have the @ in the URL (udp://@239.255.168.8:1234). I think I can work around Ticket #9496 for what I'm trying to do.

Thanks anyway.

Jeff
Reply
#3
Weird that it needs an @ in the url. That seems odd.
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

Logout Mark Read Team Forum Stats Members Help
UDP stream failure0