Kodi Community Forum

Full Version: Slow opening files using FTP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I noticed a slow start when starting a file from a FTP server. For my SMB server it takes 3 seconds to open up. With FTP, it takes 13 seconds!

In the log there are errors. it gives me these errors regardless of the ftp server (filezilla or proftpd).
I have also tried using ftp over ssl/tls.


In XBMC, I added the video source manually and with the "Add Network Location..."

ftp://User:[email protected]:21 Working but I have to wait 13 seconds
ftp://User:[email protected]:21/?auth=ssl/ Working but I have to wait 13 seconds
ftp://User:[email protected]:21/?auth=tls/ Working but I have to wait 13 seconds


Whatever the files .avi .mkv or the size 300MB to 4GB it always do the following 9 times:

XFILE::CDirectory::GetDirectory - Error getting ftp://path to my video/cd1/
XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
... ...
XFILE::CDirectory::GetDirectory - Error getting ftp://path to my video/cd9/



I have tried with these programs/software:

-XBMC 11.0 (Windows 7 x64 Clean Install)
-XBMC 12.0 alpha 1 (Windows 7 x64 Clean Install)
-XBMC 12.0 alpha 5 (Windows 7 x64 Clean Install)

-Proftpd server (Solaris 11)
-Filezilla server (Windows 7 x64)


I have also viewed these web page for help. The same pattern appears in there log files:

http://forum.xbmc.org/showthread.php?tid=135702
http://forum.xbmc.org/showthread.php?tid=138616


Is it my fault that these errors occur or is it a known bug in XBMC?

Thx

Code:
FTP Log


22:57:59 T:6088  NOTICE: DVDPlayer: Opening: ftp://User:[email protected]//Anime/Fairy Tail/Season 1/Fairy Tail_S01E01.mkv
22:57:59 T:6088 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:57:59 T:3508  NOTICE: Creating InputStream
22:58:05 T:3508 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
22:58:05 T:3508   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:58:05 T:3508   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://User:[email protected]//Anime/Fairy Tail/Season 1/cd1/
22:58:06 T:3508 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
22:58:06 T:3508   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:58:06 T:3508   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://User:[email protected]//Anime/Fairy Tail/Season 1/cd2/
22:58:07 T:3508 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
22:58:07 T:3508   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:58:07 T:3508   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://User:[email protected]//Anime/Fairy Tail/Season 1/cd3/
22:58:07 T:3508 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
22:58:07 T:3508   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:58:07 T:3508   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://User:[email protected]//Anime/Fairy Tail/Season 1/cd4/
22:58:08 T:3508 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
22:58:08 T:3508   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:58:08 T:3508   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://User:[email protected]//Anime/Fairy Tail/Season 1/cd5/
22:58:10 T:3508 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
22:58:10 T:3508   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:58:10 T:3508   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://User:[email protected]//Anime/Fairy Tail/Season 1/cd6/
22:58:10 T:3508 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
22:58:10 T:3508   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:58:10 T:3508   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://User:[email protected]//Anime/Fairy Tail/Season 1/cd7/
22:58:11 T:3508 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
22:58:11 T:3508   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:58:11 T:3508   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://User:[email protected]//Anime/Fairy Tail/Season 1/cd8/
22:58:12 T:3508 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 9
22:58:12 T:3508   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
22:58:12 T:3508   ERROR: XFILE::CDirectory::GetDirectory - Error getting ftp://User:[email protected]//Anime/Fairy Tail/Season 1/cd9/
22:58:12 T:3508  NOTICE: Creating Demuxer


Code:
SMB Log


23:17:53 T:6088  NOTICE: DVDPlayer: Opening: Z:\Anime\Fairy Tail\Season 1\Fairy Tail_S01E01.mkv
23:17:53 T:6088 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:17:53 T:4448  NOTICE: Creating InputStream
23:17:53 T:4448  NOTICE: Creating Demuxer
23:17:54 T:4448  NOTICE: Opening video stream: 0 source: 256
23:17:54 T:4448  NOTICE: Creating video codec with codec id: 28
23:17:54 T:4448  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
23:17:54 T:4448  NOTICE: Creating video thread
23:17:54 T:4448  NOTICE: Opening audio stream: 1 source: 256
23:17:54 T:4448  NOTICE: Finding audio codec for: 86018
23:17:54 T:5844  NOTICE: running thread: video_thread
23:17:54 T:4448  NOTICE: Creating audio thread
23:17:54 T:4448  NOTICE: Opening Subtitle stream: 2 source: 256
23:17:54 T:5412  NOTICE: running thread: CDVDPlayerAudio::Process()
23:17:55 T:5412  NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 44100, no pass-through
23:17:55 T:5844  NOTICE:  fps: 23.976024, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 716
23:17:55 T:5844  NOTICE: Display resolution DESKTOP : 1280x720 @ 60.00 - Full Screen (12)
23:17:55 T:5844  NOTICE: D3D: rendering method forced to DXVA2 processor

How you make it work with ssl?