Kodi 15 - Playing an internet stream with the protocol "rtsp"

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Seko Offline
Junior Member
Posts: 8
Joined: Jan 2015
Reputation: 1
Post: #1
Hi,

I have a problem with playing an internet stream with the protocol "rtsp" with KODI 15.0

The direct URL-link has the format :
Code:
rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111


I try to start the streaming with this command :

Code:
xbmc.Player(xbmc.PLAYER_CORE_AUTO).play('rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111')

But the streaming is not playing and Kodi generates these logs :

Quote:11:34:17 T:4768 NOTICE: Thread GUIDialogCache start, auto delete: true
11:34:17 T:4768 DEBUG: Thread GUIDialogCache 4768 terminating (autodelete)
11:34:17 T:3992 DEBUG: Loading settings for rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111
11:34:17 T:3992 DEBUG: CPlayerCoreFactory::GetPlayers(rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111)
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/mms/udp
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
11:34:17 T:3992 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
11:34:17 T:3992 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
11:34:17 T:3992 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
11:34:17 T:3992 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
11:34:17 T:3992 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
11:34:17 T:3992 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
11:34:17 T:3992 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
11:34:17 T:3992 NOTICE: DVDPlayer: Opening: rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111
11:34:17 T:3992 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
11:34:17 T:3992 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
11:34:17 T:4628 NOTICE: Thread DVDPlayer start, auto delete: false
11:34:17 T:4628 NOTICE: Creating InputStream
11:34:17 T:4628 NOTICE: Creating Demuxer
11:34:17 T:4628 DEBUG: ffmpeg[1214]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
11:34:18 T:3992 DEBUG: Previous line repeats 1 times.
11:34:18 T:3992 DEBUG: ------ Window Init (DialogBusy.xml) ------
11:34:22 T:3992 DEBUG: ------ Window Deinit (Pointer.xml) ------
11:34:35 T:3992 INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://www.msftncsi.com (easy=179B3DA0, multi=00000000)
11:34:35 T:3992 INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://feeds.xbmc.org (easy=175CC048, multi=09FBC818)
11:34:43 T:3992 DEBUG: ------ Window Init (Pointer.xml) ------
11:34:47 T:4628 DEBUG: Error, could not open file rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111
11:34:47 T:4628 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
11:34:47 T:4628 NOTICE: CDVDPlayer::OnExit()
11:34:47 T:4628 DEBUG: CApplication::OnPlayBackStopped: play state was 1, starting 1
11:34:47 T:4628 DEBUG: Thread DVDPlayer 4628 terminating
11:34:47 T:3992 DEBUG: CApplication::OnPlayBackStopped: play state was 3, starting 0
11:34:47 T:3992 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
11:34:47 T:3992 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
11:34:47 T:3992 NOTICE: CDVDPlayer::CloseFile()
11:34:47 T:3992 NOTICE: DVDPlayer: waiting for threads to exit
11:34:47 T:3992 NOTICE: DVDPlayer: finished waiting
11:34:47 T:3992 NOTICE: CDVDPlayer::CloseFile()
11:34:47 T:3992 NOTICE: DVDPlayer: waiting for threads to exit
11:34:47 T:3992 NOTICE: DVDPlayer: finished waiting
11:34:48 T:6852 DEBUG: CSaveFileStateJob::DoWork - Saving file state for video item


Kodi generates the same log with the command :
Code:
xbmc.executebuiltin("xbmc.playmedia(rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111)")


But, on an android system, if I open the URL-link with the "Dolphin Player", then I choose from the Dolphin Player to open the URL-link with Kodi, it's working. Here the log :

Quote:10:18:39 T:18446744072368472064 DEBUG: Loading settings for rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111
10:18:39 T:18446744072368472064 DEBUG: CPlayerCoreFactory::GetPlayers(rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/mms/udp
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
10:18:39 T:18446744072368472064 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
10:18:39 T:18446744072368472064 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
10:18:39 T:18446744072368472064 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
10:18:39 T:18446744072368472064 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
10:18:39 T:18446744072368472064 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
10:18:39 T:18446744072368472064 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
10:18:39 T:18446744072368472064 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
10:18:39 T:18446744072106250240 DEBUG: CPythonInvoker(0, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.seko.common/default.py): start processing
10:18:39 T:18446744072106225664 DEBUG: CPythonInvoker(2, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.seko.scraper/default.py): start processing
10:18:39 T:18446744072106237952 DEBUG: CPythonInvoker(1, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/service.xbmc.versioncheck/service.py): start processing
10:18:39 T:18446744072105803776 DEBUG: CPythonInvoker(4, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.titanskin.helpers/service.py): start processing
10:18:39 T:18446744072106221568 DEBUG: CPythonInvoker(3, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.seko.downloader/default.py): start processing
10:18:39 T:18446744072104513536 DEBUG: CPythonInvoker(5, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.titanskin.helpers/default.py): start processing
10:18:39 T:18446744072099069952 DEBUG: CPythonInvoker(6, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.common.plugin.cache/default.py): start processing
10:18:39 T:18446744072368472064 NOTICE: DVDPlayer: Opening: rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111
10:18:39 T:18446744072368472064 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
10:18:39 T:18446744072368472064 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
10:18:39 T:18446744072368472064 DEBUG: LinuxRendererGL: Cleaning up GL resources
10:18:39 T:18446744072099057664 NOTICE: Thread DVDPlayer start, auto delete: false
10:18:39 T:18446744072099057664 NOTICE: Creating InputStream
10:18:39 T:18446744072099057664 NOTICE: Creating Demuxer
10:18:39 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
10:18:40 T:18446744072368472064 DEBUG: ------ Window Init (DialogBusy.xml) ------
10:18:40 T:18446744072368472064 DEBUG: void CNetwork::NetworkMessage(CNetwork::EMESSAGE, int) - Starting network services
10:18:40 T:18446744072368472064 NOTICE: starting zeroconf publishing
10:18:40 T:18446744072106250240 NOTICE: Thread ZerocconfEmbedded start, auto delete: false
10:18:40 T:18446744072106250240 DEBUG: ZeroconfEmbedded - processing...
10:18:40 T:18446744072368472064 NOTICE: starting upnp client
10:18:40 T:18446744072106225664 NOTICE: Thread JobWorker start, auto delete: true
10:18:40 T:18446744072368472064 NOTICE: ES: Starting event server
10:18:40 T:18446744072053506048 NOTICE: Thread EventServer start, auto delete: false
10:18:40 T:18446744072368472064 INFO: JSONRPC Server: Successfully initialized
10:18:40 T:18446744072053506048 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
10:18:40 T:18446744072053493760 NOTICE: Thread TCPServer start, auto delete: false
10:18:40 T:18446744072053506048 NOTICE: UDP: Listening on port 9777
10:18:40 T:18446744072106225664 DEBUG: ZeroconfMDNS: identifier: servers.jsonrpc-tpc type: _xbmc-jsonrpc._tcp name:Kodi (localhost) port:9090
10:18:40 T:18446744072106225664 DEBUG: ZeroconfMDNS: identifier: servers.eventserver type: _xbmc-events._udp name:Kodi (localhost) port:9777
10:18:40 T:18446744072053481472 NOTICE: Thread JobWorker start, auto delete: true
10:18:40 T:18446744072368472064 NOTICE: Current resolution: 1280x720 @ 55.06 - Full Screen
10:18:40 T:18446744072368472064 DEBUG: CWinSystemEGL::CreateNewWindow: No need to create a new window
10:18:40 T:18446744072368472064 NOTICE: GL_VENDOR = ARM
10:18:40 T:18446744072368472064 NOTICE: GL_RENDERER = Mali-T720
10:18:40 T:18446744072368472064 NOTICE: GL_VERSION = OpenGL ES 3.1
10:18:40 T:18446744072368472064 NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 3.10
10:18:40 T:18446744072368472064 DEBUG: GLES: Extension Support Test - GL_NVX_gpu_memory_info NO
10:18:40 T:18446744072368472064 NOTICE: GL_EXTENSIONS = GL_EXT_debug_marker GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth24 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_EXT_read_format_bgra GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_required_internalformat GL_OES_vertex_array_object GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_type_2_10_10_10_REV GL_OES_fbo_render_mipmap GL_OES_element_index_uint GL_EXT_shadow_samplers GL_OES_texture_compression_astc GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_KHR_debug GL_EXT_occlusion_query_boolean GL_EXT_disjoint_timer_query GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_OES_get_program_binary GL_OES_texture_3D GL_EXT_texture_storage GL_EXT_multisampled_render_to_texture GL_OES_surfaceless_context GL_OES_texture_stencil8 GL_EXT_shader_pixel_local_storage GL_ARM_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_ARM_mali_program_binary GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_texture_sRGB_decode GL_KHR_blend_equation_advanced GL_OES_texture_storage_multisample_2d_array GL_OES_shader_image_atomic
10:18:40 T:18446744072368472064 DEBUG: GLES: Extension Support Test - GL_EXT_texture_format_BGRA8888 YES
10:18:40 T:18446744072368472064 DEBUG: GLES: Extension Support Test - GL_IMG_texture_format_BGRA8888 NO
10:18:40 T:18446744072368472064 DEBUG: GLES: Extension Support Test - GL_APPLE_texture_format_BGRA8888 NO
10:18:40 T:18446744072368472064 DEBUG: GUI Shader - Tried to Initialise again. Was this intentional?
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] SDP:
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] v=0
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] o=- 634409552 634409552 IN IP4 68.168.112.226
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] s=WowzaMediaServer
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] c=IN IP4 68.168.112.226
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] t=0 0
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=sdplang:en
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=range:npt=0- 5549.68
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=control:*
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] m=audio 0 RTP/AVP 96
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=rtpmap:96 mpeg4-generic/44100/2
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=fmtp:96 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1210
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=control:trackID=1
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] m=video 0 RTP/AVP 97
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=rtpmap:97 H264/90000
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=fmtp:97 packetization-mode=1;profile-level-id=64001F;sprop-parameter-sets=Z2QAH6zZQFAEX5cBEAAAAwAQAAADAyDxgxlg,aOvssiw=
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=cliprect:0,0,536,1280
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=framesize:97 1280-536
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=framerate:25.0
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [rtsp] a=control:trackID=2
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
10:18:40 T:18446744072099057664 DEBUG: Previous line repeats 1 times.
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [udp] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
10:18:40 T:18446744072053469184 NOTICE: Thread JobWorker start, auto delete: true
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [udp] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
10:18:40 T:18446744072368472064 INFO: GLES: Enabling VSYNC
10:18:40 T:18446744072368472064 INFO: GLES: Selected vsync mode 10
10:18:40 T:18446744072106225664 DEBUG: virtual bool CImageLoader::DoWork() - took 120 ms to load special://skin/extras/backgrounds/splashscreen.jpg
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
10:18:40 T:18446744072099057664 DEBUG: Previous line repeats 1 times.
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [udp] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
10:18:40 T:18446744072099057664 DEBUG: ffmpeg[A001D000]: [udp] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
10:18:40 T:18446744072106221568 INFO: Python script stopped
10:18:40 T:18446744072106221568 DEBUG: Thread LanguageInvoker 18446744072106221568 terminating
10:18:40 T:18446744072099057664 DEBUG: bool CDVDDemuxFFmpeg::Open(CDVDInputStream*, bool, bool) - avformat_find_stream_info starting
10:18:52 T:18446744072099057664 DEBUG: bool CDVDDemuxFFmpeg::Open(CDVDInputStream*, bool, bool) - av_find_stream_info finished
10:18:52 T:18446744072099057664 INFO: ffmpeg[A001D000]: Input #0, rtsp, from 'rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111':
10:18:52 T:18446744072099057664 INFO: ffmpeg[A001D000]: Metadata:
10:18:52 T:18446744072099057664 INFO: ffmpeg[A001D000]: title : WowzaMediaServer
10:18:52 T:18446744072099057664 INFO: ffmpeg[A001D000]: Duration: 01:32:29.68, start: 0.000000, bitrate: N/A
10:18:52 T:18446744072099057664 INFO: ffmpeg[A001D000]: Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp
10:18:52 T:18446744072099057664 INFO: ffmpeg[A001D000]: Stream #0:1: Video: h264 (High), yuv420p, 1280x536 [SAR 1:1 DAR 160:67], 25 fps, 25 tbr, 90k tbn, 50 tbc
10:18:52 T:18446744072099057664 DEBUG: CDVDDemuxFFmpeg::AddStream(0, ...) -> 0
10:18:52 T:18446744072099057664 DEBUG: CDVDDemuxFFmpeg::AddStream(1, ...) -> 1
10:18:52 T:18446744072099057664 NOTICE: Opening stream: 1 source: 256
10:18:52 T:18446744072099057664 NOTICE: Creating video codec with codec id: 28
10:18:52 T:18446744072099057664 DEBUG: CDVDFactoryCodec: compiled in hardware support: AMCodec:yes MediaCodec:yes OpenMax:no libstagefright:yes VDPAU:no VAAPI:no iMXVPU:no MMAL:no
10:18:52 T:18446744072099057664 INFO: MediaCodec Video Decoder...
10:18:52 T:18446744072099057664 DEBUG: FactoryCodec - Video: mediacodec - Opening
10:18:52 T:18446744072099057664 INFO: CBitstreamConverter::Open Invalid avcC
10:18:52 T:18446744072099057664 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.MTK.VIDEO.DECODER.AVC), colorFormat(2130706433)
10:18:52 T:18446744072099057664 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.MTK.VIDEO.DECODER.AVC), colorFormat(2135033992)
10:18:52 T:18446744072099057664 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.MTK.VIDEO.DECODER.AVC), colorFormat(19)
10:18:52 T:18446744072099057664 DEBUG: CDVDVideoCodecAndroidMediaCodec:: width(1280), height(536), stride(0), slice-height(0), color-format(0)
10:18:52 T:18446744072099057664 DEBUG: CDVDVideoCodecAndroidMediaCodec:: crop-left(0), crop-top(0), crop-right(0), crop-bottom(0)
10:18:52 T:18446744072099057664 DEBUG: CDVDVideoCodecAndroidMediaCodec:: Direct Surface Rendering
10:18:52 T:18446744072099057664 INFO: CDVDVideoCodecAndroidMediaCodec:: Open Android MediaCodec OMX.MTK.VIDEO.DECODER.AVC
10:18:52 T:18446744072099057664 DEBUG: FactoryCodec - Video: amc-h264 - Opened
10:18:52 T:18446744072099057664 NOTICE: Creating video thread
10:18:52 T:18446744072105660416 NOTICE: Thread DVDPlayerVideo start, auto delete: false
10:18:52 T:18446744072099057664 NOTICE: Opening stream: 0 source: 256
10:18:52 T:18446744072099057664 NOTICE: Finding audio codec for: 86018
10:18:52 T:18446744072105660416 NOTICE: running thread: video_thread
10:18:52 T:18446744072099057664 DEBUG: FactoryCodec - Audio: passthrough - Opening
10:18:52 T:18446744072099057664 DEBUG: FactoryCodec - Audio: passthrough - Failed
10:18:52 T:18446744072099057664 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
10:18:52 T:18446744072099057664 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
10:18:52 T:18446744072099057664 NOTICE: Creating audio thread
10:18:52 T:18446744072368472064 DEBUG: ------ Window Init (VideoOverlay.xml) ------
10:18:52 T:18446744072368472064 INFO: Loading skin file: VideoOverlay.xml, load type: KEEP_IN_MEMORY
10:18:52 T:18446744072099057664 DEBUG: virtual void CApplication::OnPlayBackStarted(): play state was 1, starting 1
10:18:52 T:18446744072099057664 DEBUG: CDVDPlayer::SetCaching - caching state 3
10:18:52 T:18446744072105361408 NOTICE: Thread DVDPlayerAudio start, auto delete: false
10:18:52 T:18446744072105361408 NOTICE: running thread: CDVDPlayerAudio::Process()
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
10:18:52 T:18446744072105660416 INFO: CDVDPlayerVideo - Stillframe left, switching to normal playback
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
10:18:52 T:18446744072099057664 DEBUG: CDVDPlayer::CheckContinuity - wrapback :2, prev:80000.000000, curr:40000.000000, diff:-40000.000000
10:18:52 T:18446744072105361408 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
10:18:52 T:18446744072099057664 DEBUG: CDVDPlayer::CheckContinuity - wrapback :1, prev:69659.863946, curr:23219.954649, diff:-46439.909297
10:18:52 T:18446744072105361408 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(23219.954649, 1)
10:18:52 T:18446744072105361408 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
10:18:52 T:18446744072105361408 DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(160000.000000, 1)
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
10:18:52 T:18446744072105361408 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 23
10:18:52 T:18446744072368472064 DEBUG: PlayBackRet CApplication::PlayFile(const CFileItem&, bool): OpenFile succeed, play state 2
10:18:52 T:18446744072368472064 DEBUG: virtual void CApplication::OnPlayBackStarted(): play state was 2, starting 0
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
10:18:52 T:18446744072123363328 DEBUG: Previous line repeats 4 times.
10:18:52 T:18446744072123363328 INFO: CActiveAESink::OpenSink - initialize sink
10:18:52 T:18446744072368472064 DEBUG: CGUIInfoManager::SetCurrentMovie(rtsp://strXX.purevid.com:1935/mobileRTSPStreamer/mp4:341uuhfnlfeoq62mo7453-1_720.mp4?arg1=11xx1x11x1111xx11xxx1xx1x111111xx111111x&arg2=111111&arg3=111xxxxxxxxxx11xx1111
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
10:18:52 T:18446744072123363328 DEBUG: Previous line repeats 3 times.
10:18:52 T:18446744072123363328 DEBUG: CActiveAESink::OpenSink - trying to open device AUDIOTRACK:AudioTrack
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
10:18:52 T:18446744072123363328 DEBUG: CActiveAESink::OpenSink - AUDIOTRACK Initialized:
10:18:52 T:18446744072123363328 DEBUG: Output Device : android
10:18:52 T:18446744072123363328 DEBUG: Sample Rate : 44100
10:18:52 T:18446744072123363328 DEBUG: Sample Format : AE_FMT_S16NE
10:18:52 T:18446744072123363328 DEBUG: Channel Count : 2
10:18:52 T:18446744072123363328 DEBUG: Channel Layout: FL,FR
10:18:52 T:18446744072123363328 DEBUG: Frames : 2048
10:18:52 T:18446744072123363328 DEBUG: Frame Samples : 4096
10:18:52 T:18446744072123363328 DEBUG: Frame Size : 4
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
10:18:52 T:18446744072124416000 DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
10:18:52 T:18446744072105660416 DEBUG: Previous line repeats 3 times.
10:18:52 T:18446744072105660416 DEBUG: CDVDVideoCodecAndroidMediaCodec:: width(1280), height(536), stride(1280), slice-height(536), color-format(2130706433)
10:18:52 T:18446744072105660416 DEBUG: CDVDVideoCodecAndroidMediaCodec:: crop-left(0), crop-top(0), crop-right(1279), crop-bottom(535)
10:18:52 T:18446744072105660416 DEBUG: CDVDVideoCodecAndroidMediaCodec:: Direct Surface Rendering
10:18:52 T:18446744072105660416 DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
10:18:52 T:18446744072105660416 NOTICE: fps: 25.000000, pwidth: 1280, pheight: 536, dwidth: 1280, dheight: 536
10:18:52 T:18446744072105660416 DEBUG: int CDVDPlayerVideo::OutputPicture(const DVDVideoPicture*, double) - change configuration. 1280x536. framerate: 25.00. format: MEDIACODEC
10:18:52 T:18446744072105660416 NOTICE: Display resolution DESKTOP : 1280x720 @ 55.06 - Full Screen (16)
10:18:52 T:18446744072105660416 DEBUG: CXBMCRenderManager::Configure - 2
10:18:52 T:18446744072099057664 DEBUG: CDVDPlayer::HandleMessages - player started 1
10:18:52 T:18446744072368472064 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
10:18:52 T:18446744072368472064 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay


I don't understand why it's not working with the command "xbmc.Player().play(link)". Huh
I also try to add header, cookies etc.. on the URL-link but it still not working.

I try too,to use .strm file as explained on the wiki : Internet_video_and_audio_streams. (wiki) I have writen the URL-link in the file. But it still not working too.

Can anyone help me ?

Thanks
(This post was last modified: 2015-08-18 16:59 by Seko.)
find quote
enen92 Offline
Team-Kodi Member
Posts: 1,509
Joined: Nov 2012
Reputation: 94
Location: Portugal
Post: #2
If it doesn't work in a strm file the problem is not related to the code of your addon, so not sure what kind of answer you are looking for.
You should find a way to play the stream through kodi before even bother to try to play it from an addon. You could be asking for help to get a playable url in kodi but hiding the url doesn't exactly help right?
find quote
Seko Offline
Junior Member
Posts: 8
Joined: Jan 2015
Reputation: 1
Post: #3
Hi enen92,

Thanks for your answer.

You're right, first of all I would like to find a basic way to play the stream through kodi.

So for instance, I would like to play the video taken from the url :
Quote:http://www.purevid.com/v/72c4304/

The RTSP URL-Link generated for mobile platform by this url is :
Quote:rtsp://str1.purevid.com:1935/mobileRTSPStreamer/mp4:72c4304-2.mp4?arg1=beeb37c2d4938b66ae0ed5967044437d69d095fa&arg2=862068&arg3=72c4304

To know the TSP URL-Link, open the url 'http://www.purevid.com/v/72c4304/' with a user-agent like
Quote:'Mozilla/5.0 (Linux; U; Android 4.0; en-us; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30'
and the page will display a image with the RTSP URL-link.

So, if I used a .strm file with the RTSP URL-Link, it 's not working on KODI.

If I use a mobile platform with Android and open the url 'http://www.purevid.com/v/72c4304/' with Firefox, we could open the video with a player installed. I choose "Dolphin Player". The "Dolphin Player" starts the movie and give the possibility to stop the movie to open it on KODI. If I do that, KODI starts the streaming. If I look in the log file, I see that the url used to play the movie is "rtsp://str1.purevid.com:1935/mobileRTSPStreamer/mp4:72c4304-2.mp4?arg1=beeb37c2d4938b66ae0ed5967044437d69d095fa&arg2=862068&arg3=72c4304"

I don't understand why it's not working with a .strm file.
(This post was last modified: 2015-08-18 17:53 by Seko.)
find quote
enen92 Offline
Team-Kodi Member
Posts: 1,509
Joined: Nov 2012
Reputation: 94
Location: Portugal
Post: #4
Just inspect the network tab in chrome dev tools:

http://www.purevid.com/?m=video_info_emb...c4304&pv=1

Its a simple http .mp4 video.
find quote
Seko Offline
Junior Member
Posts: 8
Joined: Jan 2015
Reputation: 1
Post: #5
Yes, it's right I already used it and it's working. But in this case, i can't seek time in the video. It's why I would like to use the RTSP url-link : with this one, we could seek at any time in the video.
(This post was last modified: 2015-08-18 18:31 by Seko.)
find quote
Seko Offline
Junior Member
Posts: 8
Joined: Jan 2015
Reputation: 1
Post: #6
To give more informations, at the beginning I have used the "urlresolver" module to get a simple http link to play the media. This works but I can't seek time.

My objective is to play a streaming media and use all functions as seeking time. So, I want to use rtsp link to reach this objective.
find quote
Seko Offline
Junior Member
Posts: 8
Joined: Jan 2015
Reputation: 1
Post: #7
So, I have some good news but all is not working as I want....Sleepy

I explain :

I have used the module "urlresolver" and I have modified the "purevid" plugin. I have just changed the "get_media_url" function by :

PHP Code:
def get_media_url(selfhostmedia_id):
    
        
# ___ Set the Android user_agenr
    
self.net.set_user_agent('Mozilla/5.0 (Linux; U; Android 4.0; en-us; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30')
   
        
# ___ Get the html content
    
html self.net.http_GET('http://www.purevid.com/v/'+media_id+'/').content
    
        
# ___ With pattern, find the rtsp url-link
    
patternRTSP re.compile('(.*)(\<a href\=\"rtsp\:\/\/)(.*?)(\")(.*)',re.DOTALL re.MULTILINE)
    
match patternRTSP.match(html)
    
    if 
match is not None:
        
        
url 'rtsp://' match.group(3)    
        return 
url 

Then, I just start the player with the RTSP url-link with the command "xbmc.Player().play(url)". For instance:

PHP Code:
originalURL 'http://www.purevid.com/v/72c4304/'
        
        
# ___ Get the rtps url-link
        
rtspUrl urlresolver.resolve(originalURL )
        
xbmc.log("Resolved RTSP url : "+str(rtspUrl),xbmc.LOGINFO
               
        
# ___ Play the rtps url-Link
        
xbmc.Player().play(rtspUrl

So, yes it's what I do from the beginning. But surprising, sometimes it's working, sometimes not.Sad When it doesn't work, I retry many times until it works.

In conclusion, this way should work but why it's not work everytime ? Huh

Have you an idea ? (Maybe a too long response from the purevid server?)

Thanks
(This post was last modified: 2015-08-20 21:50 by Seko.)
find quote