[Plugin] Video/Audio Streaming Plugin

Suggest, post, or discuss plugins for Deluge
JohnDoee
Member
Member
Posts: 10
Joined: Thu Jan 22, 2015 7:45 pm
OS or Distro: Ubuntu

[Plugin] Video/Audio Streaming Plugin

Postby JohnDoee » Thu Jan 22, 2015 8:15 pm

Deluge streaming
Ever wanted to stream torrents from your seedbox? Maybe using your favourite video player instead of being forced to use VLC or built-in ?

That's the problem Deluge Streaming plugin can solve for you.

Configuration information

If you run Deluge Daemon on a different computer, go into options and change IP to the correct external IP, e.g. IP of your seedbox.

A step-by-step guide on how to use it can be found together with the repository, here: https://github.com/JohnDoee/deluge-streaming

I can strongly recommend using viewtopic.php?f=9&t=42887 with the high performance seed profile or tweak the settings manually to allow more aggressive downloading.

Additional features

Deluge Streaming can be integrated in various ways.

Stream directly from Deluge using Kodi
It is now possible to browse files added to Kodi and stream directly from Deluge.
Find the Kodi plugin here and a small guide on how to get it working here

StreamProtocol
Play video directly in VLC or any other media player. Find StreamProtocol here.

If you do want to use StreamProtocol, make sure you check "Use stream protocol URLs" in Deluge Streaming config.

Update log

Updated 0.8.1 / 19-08-2017
* Fixed some small problems and bugs
* better URL execution with GTKUI
* Improved remote control of streaming to make it work as originally intended.

Updated 0.7.1 / 07-09-2016
* Added support for SSL
* Redid buffering algorithm to avoid some pitfalls

Updated 0.6.1 / 24-06-2016
* Fixed URL encoding error
* Changed default to not use stream urls
(Downloads - 2.6: 1437 times, 2.7: 2595 times)

Updated 0.5.0 / 21-11-2015
* Restructured the whole plugin
* Added support for StreamProtocol

Image
Attachments
Streaming-0.8.1-py2.7.egg
Probably what you want for any other installation.
(40.09 KiB) Downloaded 361 times
Streaming-0.8.1-py2.6.egg
Default for Windows.
(40.09 KiB) Downloaded 172 times
Last edited by JohnDoee on Sat Aug 19, 2017 10:24 am, edited 18 times in total.

syth
New User
New User
Posts: 3
Joined: Mon Feb 02, 2015 3:10 pm
OS or Distro: debian

Re: [Plugin] Video/Audio Streaming Plugin

Postby syth » Mon Feb 02, 2015 3:24 pm

hi

I don't know how your algorithm works. but I would suggest reading this: http://dev.deluge-torrent.org/ticket/2196

also I would like to request the option to choose a password, and when chosen should provide one with a renewable hash to add to once URLs.
EDIT: Or do some media players support BASIC auth?

I'll continue to test your plugin further as I haven't tried streaming a file as of yet.
If everything, as it is now, works as intended I'll be very grateful!

EDIT: I guess it shouldn't be resuming the download (start to seed) if the file is complete and the torrent paused.

JohnDoee
Member
Member
Posts: 10
Joined: Thu Jan 22, 2015 7:45 pm
OS or Distro: Ubuntu

Re: [Plugin] Video/Audio Streaming Plugin

Postby JohnDoee » Tue Feb 03, 2015 8:16 pm

syth wrote:I don't know how your algorithm works. but I would suggest reading this: http://dev.deluge-torrent.org/ticket/2196

That was what i was using, it is sadly, poor. I don't think it actually does anything :?
The same goes for piece priority, setting it to the highest level does not mean it's done before the rest of the file.

syth wrote:also I would like to request the option to choose a password, and when chosen should provide one with a renewable hash to add to once URLs.

The URL should be safe, as in, impossible to brute force. The password stuff is for an API I built into it, but that one is disabled per default.

syth wrote:EDIT: I guess it shouldn't be resuming the download (start to seed) if the file is complete and the torrent paused.

Fixed :)

Thanks for the feedback, 0.2 should work a lot better.
There are still a few problems with ensuring the pieces I need, are downloaded ASAP. It can still hang from time to time :/

syth
New User
New User
Posts: 3
Joined: Mon Feb 02, 2015 3:10 pm
OS or Distro: debian

Re: [Plugin] Video/Audio Streaming Plugin

Postby syth » Thu Mar 05, 2015 2:20 pm

Thank you!

I do have issues with missing video from the playback. I can only hear the soundtrack.
Eventhough it's +90% complete.

I think it could be from missing either the first or the last pieces, or both.

In qBittorrent it works just fine, with the ~"Download the first and last pieces first" ticked.

syth
New User
New User
Posts: 3
Joined: Mon Feb 02, 2015 3:10 pm
OS or Distro: debian

Re: [Plugin] Video/Audio Streaming Plugin

Postby syth » Thu Mar 05, 2015 2:26 pm

it doesn't playback video still after completion.
but now it works when I play it with the 64-bit exe of the same player.

I'll keep testing and see if the last issue persist in the 64-bit player.

I did notice that after completion, the files which got set to "Do Not Download", didn't get reset.

JohnDoee
Member
Member
Posts: 10
Joined: Thu Jan 22, 2015 7:45 pm
OS or Distro: Ubuntu

Re: [Plugin] Video/Audio Streaming Plugin

Postby JohnDoee » Mon Mar 16, 2015 9:25 pm

syth wrote:I do have issues with missing video from the playback. I can only hear the soundtrack.
Eventhough it's +90% complete.


Can you tell me more about what you were watching ? Container (mkv, avi, mp4, ...), audio/video codec (h.264, xvid, aac, mp3, ...), player (VLC, Media Player Classic, Kodi) etc.

I changed how it buffers when missing the end pieces and I am also getting faster preparation speeds when using the ltConfig plugin with the high performance seed profile. I have also fixed the "do not download" thing.

Gonna upload a new version when i have tested it a bit more.

atommixz
New User
New User
Posts: 2
Joined: Thu Nov 24, 2011 12:50 pm
OS or Distro: elementary OS

Re: [Plugin] Video/Audio Streaming Plugin

Postby atommixz » Mon Sep 21, 2015 7:09 pm

Awesome plugin! Make link is clickable and well done.

JohnDoee
Member
Member
Posts: 10
Joined: Thu Jan 22, 2015 7:45 pm
OS or Distro: Ubuntu

Re: [Plugin] Video/Audio Streaming Plugin

Postby JohnDoee » Tue Sep 22, 2015 12:31 pm

atommixz wrote:Make link is clickable and well done.


I got a few questions
  • OS, are you running Windows, Linux or OSX ?
  • What kind of data do you have, Video, music or normal data (something you can't play) ?
  • If something you want to watch, what do you use for playback, VLC, Windows Media Player, Kodi, something else ?

gggirlgeek
Member
Member
Posts: 13
Joined: Mon Oct 10, 2016 11:59 pm
OS or Distro: Windows 7 x64

Re: [Plugin] Video/Audio Streaming Plugin

Postby gggirlgeek » Tue Oct 11, 2016 12:12 am

Hello and thanks for the plugin.

I cannot seem to get it working at all. Would someone be willing to help me with the configuration?

My setup: Deluge daemon on a seedbox. Deluge client running on my Win7x64. Stream is installed on both client and daemon using python v2.7. I am using mostly .mkv's and .mp4's (x264.) I prefer https but have tried http and it doesn't work either. I have Stream Protocol installed (but don't know if it's necessary.)

I have tried ticking and unticking every setting in the plugin. I have put my seedbox's IP address in and put my username in to allow remote access (tried without this option too.) All I get with any setting is Invalid Link. I get this from both the client and the daemon.

One thing I don't understand is what userscript I'm supposed to use with Stream Protocol? I tried exiting it and enabling "Stream from URL" but the links are still invalid.

Help please?
Deluge v1.13
libtorrent v1.09.09
Seedbox: Debian 8.6
Client on: Win7x64

JohnDoee
Member
Member
Posts: 10
Joined: Thu Jan 22, 2015 7:45 pm
OS or Distro: Ubuntu

Re: [Plugin] Video/Audio Streaming Plugin

Postby JohnDoee » Tue Oct 11, 2016 12:06 pm

The stream protocol stuff was a bit of a failed idea on my part, so just remove and forget about it for now. It is just a small helper to make it easier to open URLs in your media player. So, just uninstall for now.

* Disable "Use stream URLs"
* Disable SSL (for now, at least).
* Disable remote access.
* The Hostname field should have the seedbox IP.
* Try changing the port to something else, e.g. 52006

After you've done that and applied the settings, then go into the plugins menu and "disable and enable" the plugin again to make sure it is using the correct settings.

How is the link invalid ? Is it because it starts with stream+ or something else?
If you disable the "use stream urls" the links should very normal and be possible to drag or copy into your media player or web browser.

If you want more interactive help, feel free to join the Deluge IRC channel here: http://webchat.freenode.net/?channels=deluge - I hang out there too.


Return to “Plugins”

Who is online

Users browsing this forum: No registered users and 5 guests