Posts: 11
Joined: Jul 2015
2016-01-10, 16:18
(This post was last modified: 2016-01-10, 16:29 by User 279516.)
(2015-09-24, 09:05)Vektor Wrote: I've made something, but I don't have time and will to keep it up to date, so I'm giving my code hoping you'll be able to keep it updated.
I hope it's good enough: I learnt how to make plugins and coded this plugin in just one evening, forgive my mistakes if there's any.
What's missing:- Settings
- Cache
- Multi-language
- Better video metadata
I named the plugin plugin.video.dplay
icon.png
addon.py: http://pastebin.com/CZf3JbE6
addon.xml: http://pastebin.com/Y1EvG16Y
Some screenshots here.
Hi Vektor,
first thanks a lot for your work. It's very appreciated by me and by the community. While I try to play something I experience several freezing in the stream. What do you think could be?
EDIT: I also tried setting a bandwitdh limit at 2Mbps as per previous reply
Code:
14:12:20 508.681458 T:1958105648 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:12:20 508.682678 T:1603789856 NOTICE: Thread DVDPlayer start, auto delete: false
14:12:20 508.683319 T:1603789856 NOTICE: Creating InputStream
14:12:26 513.933716 T:1746211872 NOTICE: Thread FileCache start, auto delete: false
14:12:26 513.941040 T:1603789856 NOTICE: Creating Demuxer
14:12:26 513.942383 T:1603789856 ERROR: CCurlFile::GetCookies - invalid cookie: 'www.mymovies.it FALSE / FALSE 1455145200 chats%2Emymovies%2Eit '
14:12:40 528.435547 T:1603789856 NOTICE: Opening stream: 0 source: 256
14:12:40 528.470398 T:1603789856 NOTICE: Creating video codec with codec id: 28
14:12:40 528.484314 T:1603789856 NOTICE: Creating video thread
14:12:40 528.484802 T:1712841760 NOTICE: Thread RefClock start, auto delete: false
14:12:40 528.485168 T:1603789856 NOTICE: Opening stream: 1 source: 256
14:12:40 528.485413 T:1603789856 NOTICE: Finding audio codec for: 86018
14:12:40 528.485657 T:1577440288 NOTICE: Thread DVDPlayerVideo start, auto delete: false
14:12:40 528.486145 T:1577440288 NOTICE: running thread: video_thread
14:12:40 528.497375 T:1603789856 NOTICE: Creating audio thread
14:12:40 528.498230 T:1556288544 NOTICE: Thread DVDPlayerAudio start, auto delete: false
14:12:40 528.498413 T:1556288544 NOTICE: running thread: CDVDPlayerAudio::Process()
14:12:40 528.501465 T:1556288544 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
14:12:40 528.503113 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:12:40 528.555115 T:1577440288 NOTICE: fps: 25.000000, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
14:12:40 528.555664 T:1577440288 NOTICE: Display resolution DESKTOP : 1920x1080 (1920x1080) @ 60.00 - Full Screen (16)
14:12:40 528.558472 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:12:40 528.636841 T:1556288544 NOTICE: Previous line repeats 1 times.
14:12:40 528.637024 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:12:40 528.638794 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 21
14:13:05 553.242371 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:14:38 645.871338 T:1556288544 NOTICE: Previous line repeats 288 times.
14:14:38 645.872131 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:14:38 645.964172 T:1556288544 NOTICE: Previous line repeats 3 times.
14:14:38 645.965454 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 3 packets of duration 21
14:15:01 668.777588 T:1603789856 WARNING: error while seeking
14:15:02 670.502686 T:1556288544 WARNING: Previous line repeats 1 times.
14:15:02 670.503174 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:15:02 670.504028 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:15:02 670.562134 T:1556288544 NOTICE: Previous line repeats 3 times.
14:15:02 670.562378 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 21
14:15:23 691.182007 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:16:14 741.950623 T:1556288544 NOTICE: Previous line repeats 115 times.
14:16:14 741.950867 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:16:14 742.028503 T:1556288544 NOTICE: Previous line repeats 3 times.
14:16:14 742.029419 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 21
14:16:38 766.558533 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:16:38 766.560486 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:16:38 766.627869 T:1556288544 NOTICE: Previous line repeats 3 times.
14:16:38 766.628113 T:1556288544 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 3 packets of duration 21
14:17:43 831.683350 T:1603789856 NOTICE: CDVDPlayer::OnExit()
14:17:43 831.688354 T:1603789856 NOTICE: DVDPlayer: eof, waiting for queues to empty
14:17:43 831.688965 T:1603789856 NOTICE: Closing stream player 1
14:17:43 831.689392 T:1603789856 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
14:17:43 831.689880 T:1603789856 NOTICE: Waiting for audio thread to exit
14:17:43 831.690491 T:1556288544 NOTICE: thread end: CDVDPlayerAudio::OnExit()
14:17:43 831.690979 T:1603789856 NOTICE: Closing audio device
14:17:44 831.773560 T:1603789856 NOTICE: Deleting audio codec
14:17:44 831.774597 T:1603789856 NOTICE: Closing stream player 2
14:17:44 831.775208 T:1603789856 NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
14:17:44 831.794434 T:1603789856 NOTICE: waiting for video thread to exit
14:17:44 831.795288 T:1577440288 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
14:17:44 831.795410 T:1577440288 NOTICE: thread end: video_thread
14:17:44 831.795959 T:1603789856 NOTICE: deleting video codec
14:17:44 831.906128 T:1603789856 NOTICE: Thread BackgroundLoader start, auto delete: false
14:17:44 831.937561 T:1958105648 NOTICE: CDVDPlayer::CloseFile()
14:17:44 831.937805 T:1958105648 NOTICE: DVDPlayer: waiting for threads to exit
14:17:44 831.937927 T:1958105648 NOTICE: DVDPlayer: finished waiting
14:17:44 831.948181 T:1958105648 NOTICE: CDVDPlayer::CloseFile()
14:17:44 831.948364 T:1958105648 NOTICE: DVDPlayer: waiting for threads to exit
14:17:44 831.948425 T:1958105648 NOTICE: DVDPlayer: finished waiting
14:17:44 832.027161 T:1603789856 NOTICE: Thread JobWorker start, auto delete: true
Posts: 1,272
Joined: Mar 2006
Reputation:
27
2016-01-31, 18:58
(This post was last modified: 2016-01-31, 18:59 by peppe_sr.)
Hi NeverWise, you are new in the forum but you are a skilled coder. I use often your plugin and I'm going to take a look at your improvements so I can test and report back.
Peppe
Posts: 1,272
Joined: Mar 2006
Reputation:
27
cool, it looks good.
just sometimes at first run it take a bit of time to load the list of series.
maybe because there are lots of items to index and sometimes it search to refresh icons.
Peppe
Posts: 13
Joined: Jan 2016
Reputation:
0
Thank you Peppe.
I know the problem that you have described. It's because sometime the Dplay server response is slow.
Posts: 11
Joined: Jul 2015
(2016-01-31, 15:32)NeverWise Wrote: Hello, I'm new in the Kodi forum.
I have read this thread and I have improved (I think) the code written by Vektor.
I have posted my code as an addon on github, if you wanna try it you have to download two zip files:
- https://github.com/NeverWise/script.modu...master.zip
- https://github.com/NeverWise/plugin.vide...master.zip
In the next future I want to commit it in the official Kodi repository, for now let me know what you think.
;-)
Thank you very much for this, it's very appreciated.
Just a little feedback, quite often the video freezes and then resumes. I am using the default config to keep low the bitrate (576p) but I was wondering if would be possible to enhance the caching mechanism.
Posts: 13
Joined: Jan 2016
Reputation:
0
Exactly! The link you reported explain how to change cache of Kodi that influences all the addons.
Posts: 11
Joined: Jul 2015
Thanks for the resource. I will try it and let you know.