Android Importing a playlist of streams
#1
Hi guys,

Noob here. Having a problem importing a playlist of streams. I've searched for existing threads but none match the exact issue i'm experiencing.

I have a m3u playlist file, which I've been able to successfully import to XBMC.

The playlist is a list of 14 live streams. I can open the streams successfully.

This is where the problems start...

Each stream I select will play for 5secs, then move onto the next in the playlist.

How can I keep the stream staying on the selected channel rather then skip to the next after 5sec?


Much appreciate your help.

(Using MX Android 4.2 TV Media gateway box with XBMC Media Centre.)
Reply
#2
xbmc.log, please
Reply
#3
Here's an extract from the log. It show the termination of one stream and the start of the next:

18:25:22 T:1736781832 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
18:25:22 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers(rtmp://mywebsite/nemesis?username=&password= playpath=plad1low swfUrl=http:mywebsite.me/premium/wp/secure_player/secure_player.swf pageUrl=http://mywebsite.me/premium/wp/ live=true timeout=10)
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: un-named
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: myth/mms
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: ifo
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rm/rmvb
18:25:22 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: udp
18:25:22 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
18:25:22 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
18:25:22 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
18:25:22 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
18:25:22 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
18:25:22 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: AMLPlayer (4)
18:25:22 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
18:25:22 T:1736781832 NOTICE: DVDPlayer: Opening: rtmp://mywebsite/nemesis?username=&password= playpath=plad1low swfUrl=http:mywebsite.me/premium/wp/secure_player/secure_player.swf pageUrl=http://mywebsite.me/premium/wp/ live=true timeout=10
18:25:22 T:1736781832 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
18:25:22 T:1736781832 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
18:25:22 T:1736781832 DEBUG: LinuxRendererGL: Cleaning up GL resources
18:25:22 T:1825579296 NOTICE: Creating InputStream
18:25:22 T:1825579296 INFO: : Using external libRTMP
18:25:23 T:1736781832 DEBUG: ------ Window Init (DialogBusy.xml) ------
18:25:23 T:1736781832 DEBUG: Window DialogBusy.xml was already loaded
18:25:23 T:1736781832 DEBUG: Alloc resources: 0.01m
18:25:23 T:1858706576 DEBUG: - Saving file state for video item rtmp://mywebsite/nemesis?username=&password=/plad1
18:25:23 T:1825579296 NOTICE: Creating Demuxer
18:25:23 T:1825579296 NOTICE: Metadata:
18:25:23 T:1825579296 NOTICE: duration 0.00
18:25:23 T:1825579296 NOTICE: width 720.00
18:25:23 T:1825579296 NOTICE: height 576.00
18:25:23 T:1825579296 NOTICE: videodatarate 1464.84
18:25:23 T:1825579296 NOTICE: framerate 50.00
18:25:23 T:1825579296 NOTICE: videocodecid 7.00
18:25:23 T:1825579296 NOTICE: audiodatarate 62.50
18:25:23 T:1825579296 NOTICE: audiosamplerate 44100.00
18:25:23 T:1825579296 NOTICE: audiosamplesize 16.00
18:25:23 T:1825579296 NOTICE: stereo FALSE
18:25:23 T:1825579296 NOTICE: audiocodecid 10.00
18:25:23 T:1825579296 NOTICE: encoder Lavf54.6.100
18:25:23 T:1825579296 NOTICE: filesize 0.00
18:25:23 T:1825579296 DEBUG: - probing detected format [flv]
18:25:23 T:1825579296 DEBUG: - avformat_find_stream_info starting
18:25:24 T:1825579296 DEBUG: - av_find_stream_info finished
18:25:24 T:1825579296 NOTICE: Opening video stream: 0 source: 256
18:25:24 T:1825579296 NOTICE: Creating video codec with codec id: 28
18:25:24 T:1825579296 DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:no AMCodec:yes OpenMax:no VDPAU:no VAAPI:no
18:25:24 T:1825579296 INFO: Amlogic Video Decoder...
18:25:24 T:1825579296 DEBUG: FactoryCodec - Video: amcodec - Opening
18:25:24 T:1825579296 INFO: DVDVideoCodecAmlogic: Opened Amlogic Codec
18:25:24 T:1825579296 DEBUG: FactoryCodec - Video: am-h264 - Opened
18:25:24 T:1825579296 NOTICE: Creating video thread
18:25:24 T:1854592280 NOTICE: running thread: video_thread
18:25:24 T:1825579296 NOTICE: Opening audio stream: 1 source: 256
18:25:24 T:1825579296 NOTICE: Finding audio codec for: 86018
18:25:24 T:1825579296 DEBUG: FactoryCodec - Audio: passthrough - Opening
18:25:24 T:1825579296 DEBUG: FactoryCodec - Audio: passthrough - Failed
18:25:24 T:1825579296 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
18:25:24 T:1825579296 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
18:25:24 T:1825579296 NOTICE: Creating audio thread
18:25:24 T:1825579296 DEBUG: - Assuming PAL interlaced content. Adjusted frames per second from 50.000 (~50.00 fps) to 25.000
18:25:24 T:1825579296 DEBUG: CDVDPlayer::SetCaching - caching state 3
18:25:24 T:1871693568 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
18:25:24 T:1854592280 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
18:25:24 T:1854592280 DEBUG: CAMLCodec::SetSpeed, speed(0)
18:25:24 T:1854592280 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(40000.000000, 1)
18:25:24 T:1854592280 INFO: CDVDPlayerVideo - Stillframe left, switching to normal playback
18:25:24 T:1854592280 DEBUG: CAMLCodec::OpenDecoder
18:25:24 T:1854592280 DEBUG: codecid_to_vformat, id(28) -> vformat(2)
18:25:24 T:1854592280 DEBUG: codec_tag_to_vdec_type, codec_tag(28) -> vdec_type(4)
18:25:24 T:1854592280 DEBUG: CAMLCodec::OpenDecoder hints.fpsrate(50), hints.fpsscale(1), hints.rfpsrate(50), hints.rfpsscale(1), video_rate(1920)
18:25:24 T:1854592280 DEBUG: CAMLCodec::OpenDecoder hints.aspect(1.777778), video_ratio.num(1), video_ratio.den(1)
18:25:24 T:1854592280 DEBUG: CAMLCodec::OpenDecoder hints.orientation(0), hints.forced_aspect(0), hints.extrasize(44)
18:25:24 T:1871693568 NOTICE: Creating audio stream (codec id: 86018, channels: 1, sample rate: 44100, no pass-through)
18:25:24 T:1871693568 INFO: CSoftAE::MakeStream - AE_FMT_S16NE, 44100, FC
18:25:24 T:1700667112 DEBUG: CSoftAE::Run - Sink restart flagged
18:25:24 T:1700667112 INFO: CSoftAE::InternalOpenSink - keeping old sink with : AE_FMT_FLOAT, FL,FR, 44100hz
18:25:24 T:1700667112 DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 2.0
18:25:24 T:1700667112 DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 60208
18:25:24 T:1700667112 DEBUG: AERemap: Downmix normalization is disabled
18:25:24 T:1700667112 DEBUG: CSoftAEStream::CSoftAEStream - Converting from AE_FMT_S16NE to AE_FMT_FLOAT
18:25:24 T:1871693568 DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
18:25:24 T:1825579296 DEBUG: CDVDPlayer::HandleMessages - player started 1
18:25:24 T:1854592280 DEBUG: CAMLCodec::SetSpeed, speed(1000)
18:25:24 T:1854592280 DEBUG: DVDVideoCodecAmlogic: detected new framerate(25.000000), video_rate(3840)
18:25:24 T:1736781832 DEBUG: CGUIInfoManager::SetCurrentMovie(rtmp://mywebsite/nemesis?username=&password= playpath=plad1low swfUrl=http:mywebsite.me/premium/wp/secure_player/secure_player.swf pageUrl=http://mywebsite.me/premium/wp/ live=true timeout=10)
18:25:24 T:1854592280 DEBUG: DVDVideoCodecAmlogic: detected new framerate(50.000000), video_rate(1920)
18:25:24 T:1873486720 DEBUG: CAMLCodec:Tonguerocess Started
18:25:24 T:1854592280 NOTICE: fps: 50.000000, pwidth: 720, pheight: 576, dwidth: 720, dheight: 405
18:25:24 T:1854592280 DEBUG: - change configuration. 720x576. framerate: 50.00. format: BYPASS
18:25:24 T:1854592280 NOTICE: Display resolution DESKTOP : 1280x720 @ 60.00 - Full Screen (16)
18:25:24 T:1825579296 ERROR: WriteN, RTMP send error 32 (42 bytes)
18:25:24 T:1825579296 ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 3138
18:25:24 T:1825579296 DEBUG: CDVDPlayer::SetCaching - caching state 0
18:25:24 T:1763598080 NOTICE: PrimeWire: Service: Playback started
18:25:24 T:1871693568 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(23000.000000, 0)
18:25:24 T:1871693568 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:41171.000000, should be:-91471.770975, error:-132642.770975
18:25:24 T:1700667112 DEBUG: CSoftAE::Run - Sink restart flagged
18:25:24 T:1700667112 INFO: CSoftAE::InternalOpenSink - keeping old sink with : AE_FMT_FLOAT, FL,FR, 44100hz
18:25:24 T:1700667112 DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 2.0
18:25:24 T:1700667112 DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 60208
18:25:24 T:1736781832 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
18:25:24 T:1736781832 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
18:25:24 T:1736781832 NOTICE: Using GL_TEXTURE_2D
18:25:24 T:1736781832 DEBUG: GL: Requested render method: 0
18:25:24 T:1736781832 NOTICE: GL: Using BYPASS render method
18:25:24 T:1736781832 NOTICE: GL: NPOT texture support detected
18:25:24 T:1854592280 DEBUG: CAMLCodec::SetSpeed, speed(1000)
18:25:24 T:1736781832 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
18:25:24 T:1825579296 DEBUG: CDVDPlayer::HandleMessages - player started 2
18:25:25 T:1736781832 DEBUG: ------ Window Init (VideoOSD.xml) ------
18:25:25 T:1736781832 INFO: Loading skin file: VideoOSD.xml, load type: KEEP_IN_MEMORY
18:25:26 T:1736781832 DEBUG: Load VideoOSD.xml: 310.61ms
18:25:26 T:1736781832 DEBUG: Alloc resources: 578.30ms (310.96 ms skin load)
18:25:26 T:1871693568 DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:2031946.229025, should be:1988963.554707, error:-42982.674318
18:25:28 T:1834514696 DEBUG: CFileCache::Open - opening <Frodo/Repositories/addons.xml.md5> using cache
18:25:28 T:1834514696 DEBUG: CurlFile::Open(0x6f50df88) http://addons.superrepo.org/Frodo/Reposi...ns.xml.md5
18:25:28 T:1867833096 INFO: CFileCache:Tonguerocess - Hit eof.
18:25:28 T:1871693568 DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:4124421.554707, should be:4165565.547225, error:41143.992517
18:25:29 T:1834514696 DEBUG: CFileCache::Open - opening <hadynz/repository.arabic.xbmc-addons/raw/master/addons.xml.md5> using cache
18:25:29 T:1834514696 DEBUG: CurlFile::Open(0x6fa979a8) https://github.com/hadynz/repository.ara...ns.xml.md5
18:25:29 T:1834514696 INFO: - Created session to https://github.com
18:25:30 T:1871966768 INFO: CFileCache:Tonguerocess - Hit eof.
18:25:30 T:1834514696 DEBUG: CurlFile::Open(0x6f51e778) https://github.com/hadynz/repository.ara...addons.xml
18:25:30 T:1871693568 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_EOF
18:25:30 T:1871693568 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
18:25:30 T:1854592280 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
18:25:30 T:1825579296 INFO: - eof reading from demuxer
18:25:30 T:1825579296 NOTICE: CDVDPlayer::OnExit()
18:25:30 T:1825579296 NOTICE: DVDPlayer: eof, waiting for queues to empty
18:25:30 T:1825579296 NOTICE: DVDPlayer: closing audio stream
18:25:30 T:1825579296 NOTICE: Closing audio stream
18:25:30 T:1825579296 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
18:25:30 T:1871693568 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
18:25:30 T:1825579296 NOTICE: Waiting for audio thread to exit
18:25:30 T:1871693568 DEBUG: CDVDPlayerAudio:Tonguerocess - Abort received, exiting thread
18:25:30 T:1871693568 NOTICE: thread end: CDVDPlayerAudio::OnExit()
18:25:30 T:1825579296 NOTICE: Closing audio device
18:25:30 T:1825579296 DEBUG: CSoftAEStream::~CSoftAEStream - Destructed
18:25:30 T:1825579296 NOTICE: Deleting audio codec
18:25:30 T:1825579296 NOTICE: DVDPlayer: closing video stream
18:25:30 T:1825579296 NOTICE: Closing video stream
18:25:30 T:1825579296 NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
18:25:30 T:1700667112 DEBUG: CSoftAE::Run - Sink restart flagged
18:25:30 T:1700667112 INFO: CSoftAE::InternalOpenSink - keeping old sink with : AE_FMT_FLOAT, FL,FR, 44100hz
18:25:30 T:1700667112 DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 2.0
18:25:30 T:1700667112 DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 60208
18:25:30 T:1854592280 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
18:25:30 T:1825579296 NOTICE: waiting for video thread to exit
18:25:30 T:1854592280 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
18:25:30 T:1854592280 NOTICE: thread end: video_thread
18:25:30 T:1825579296 NOTICE: deleting video codec
18:25:30 T:1825579296 DEBUG: CAMLCodec::CloseDecoder
18:25:30 T:1873486720 DEBUG: CAMLCodec:Tonguerocess Stopped
18:25:30 T:1825579296 DEBUG: CAMLCodec::SetSpeed, speed(1000)
18:25:30 T:1825579296 NOTICE: CDVDPlayer::OnExit() deleting demuxer
18:25:30 T:1825579296 NOTICE: CDVDPlayer::OnExit() deleting input stream
18:25:30 T:1825579296 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
18:25:30 T:1825579296 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
18:25:30 T:1763598080 NOTICE: PrimeWire: Playback completed
18:25:30 T:1763598080 NOTICE: PrimeWire: Playback Stopped
18:25:30 T:1763598080 NOTICE: PrimeWire: Service: Resetting...
18:25:30 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers(rtmp://mywebsite/nemesis?username=&password= playpath=plad2 swfUrl=http:mywebsite.me/premium/wp/secure_player/secure_player.swf pageUrl=http://mywebsite.me/premium/wp/ live=true timeout=10)
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: un-named
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: myth/mms
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: ifo
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rm/rmvb
18:25:30 T:1736781832 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: udp
18:25:30 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
18:25:30 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
18:25:30 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
18:25:30 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
18:25:30 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
18:25:30 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: AMLPlayer (4)
18:25:30 T:1736781832 DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
Reply
#4
To summarize this, whenever I view a stream in the playlist, it works then 3-5 seconds it cuts out.

Any help appreciated, thanks.
Reply
#5
Looks like a problem with your rtmp source:
Code:
18:25:24 T:1825579296 ERROR: WriteN, RTMP send error 32 (42 bytes)
18:25:24 T:1825579296 ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 3138

Does xbmc plays anything in the 5 secs?
The url is supiscious, with blanks in it
Code:
...ium/wp/ live=true timeout=10
Reply
#6
The XBMC player does play 5secs of video and audio perfectly.

What would you expect the URL to look like? - Is there syntax missing?
Reply
#7
If it play for 5 sec, it is unrelated to the url.
You should try the rtmp link in VLC, to see if it actually works.
Reply

Logout Mark Read Team Forum Stats Members Help
Importing a playlist of streams0