Jump to content

STRM, GOOGLE DRIVE, EMBY


Recommended Posts

KoqueSilva
Posted (edited)

1 - I'm thinking about changing the way of syncing movies to strm, I'm currently using RAIDRIVE and wanted to see if strm is faster but as my pc is average I wanted to change the files to strm to be faster along with GoogleDrive , I was taking a look at the subject but I didn't find anything explanatory about the subject and I wanted to know how well is making the strm file work together with GoogleDrive in Emby.

 

 

2 - I wonder if there is possibility to start a movies with the strm file?

3 - If there is how to create a link for Emby to recognize the movie?

Edited by KoqueSilva
Posted

Hi, I'm not sure exactly what you're asking.  Can you be more specific in your questions?

KoqueSilva
Posted

https://emby.media/community/index.php?/topic/101022-strm-google-drive-emby/&do=findComment&comment=1059191

 

How to add STRM to my Emby Server?

Sorry for the translation I'm from Brazil.

rodainas
Posted
2 minutes ago, KoqueSilva said:

https://emby.media/community/index.php?/topic/101022-strm-google-drive-emby/&do=findComment&comment=1059191

 

How to add STRM to my Emby Server?

Sorry for the translation I'm from Brazil.

Strm file is just a txt file with the location of a video file, a shortcut.

If you want to create strm to google drive files you need to use the google api, here is some guide for that https://ppvw.org/how-to-stream-video-from-google-drive-without-downloading/

  • Like 1
KoqueSilva
Posted

Will I need to share my link or not?

rodainas
Posted
1 hour ago, KoqueSilva said:

Will I need to share my link or not?

To access a strm link pointing to a google drive file, the link needs to be public. The exception is when opening the link directly with a web browser whenever that browser is logged in to the google account that has permissions to view the file.

Posted (edited)

For me the best way is to use strm files WITHOUT mounting google drive at all as a local drive.

I am just using rclone's serve command.

No need to install winfsp, no additional drives added to my pc, no way to get 24hour banned and it works even on Android with RCX if somebody wants to setup an Emby server in Android.

rclone serve http gdrive:

https://rclone.org/commands/rclone_serve_http/

And each strm file links to a http file, rclone's serve creates direct http links from google drive links and they work great in Emby.

Also my google drive links are all private.

All my strm files have links like that

http://127.0.0.1:8080/mymovie/mymovie.mkv

Edited by olympus1
  • Like 1
  • Thanks 1
KoqueSilva
Posted (edited)

Você pode explicar melhor como você fez isso?

Qual comando você usou?

 

 

 

 



Tentei fazer o procedimento, mas o limite de cota da API GoogleDrive foi excedido.


 

Edited by KoqueSilva
rodainas
Posted

You said you used Raidrive, if i were you I would test rclone, it uses less resources than Raidrive.

KoqueSilva
Posted
5 minutes ago, rodainas said:

Você disse que usava o Raidrive, se eu fosse você testaria o rclone, ele usa menos recursos do que o Raidrive.

I did a test the rai drive takes 4 seconds to start a movie and rclone takes more than 10 seconds.

Posted

Was that in some kind of cache?  If I or another use was to pick something to play would we see the same?

rodainas
Posted
28 minutes ago, KoqueSilva said:

I did a test the rai drive takes 4 seconds to start a movie and rclone takes more than 10 seconds.

Doesnt sound like a resource thing, more like a connection or cache thing as cayars said.

KoqueSilva
Posted (edited)
18 minutes ago, rodainas said:

Não soa como uma coisa de recurso, mais como uma coisa de conexão ou cache como diziam os cayars.

I have a 100MB connection

Configuration of my PC

Motherboard: H110C-BR
Memory: 16GB
Video Card: GTX 1050 2GB
SSD: 120GB
HD: 1TB

My Emby server is on my own PC for my family to watch. I want to know how to make playback faster. The only solution was to use RAIDRIVE with GoogleDrive, but I want to get the most optimized with fast playback, so I heard about strm.

Edited by KoqueSilva
KoqueSilva
Posted
28 minutes ago, cayars said:

Isso estava em algum tipo de cache? Se eu ou outro uso fosse escolher algo para jogar, veríamos o mesmo?

So I can't say very well because I did the assembly with a configuration I saw on the internet and even so it was slow if you have any other solution where you can test it, I'll be grateful.

Posted (edited)

What I was suggesting is the Raidrive seemed faster because the file or part of it was in the Raidrive cache.  If you tried playing back 5 to 10 random movies rclone might be faster but still less resource intensive on your Google Daily limit.

Edited by cayars
KoqueSilva
Posted
22 hours ago, olympus1 said:

Para mim, a melhor maneira é usar arquivos strm SEM montar o Google Drive como uma unidade local.

Estou apenas usando o comando serve do rclone.

Não há necessidade de instalar o winfsp, nenhum drive adicional adicionado ao meu pc, nenhuma maneira de ser 24 horas banido e funciona até mesmo no Android com RCX se alguém quiser configurar um servidor Emby no Android.

rclone serve http gdrive:

https://rclone.org/commands/rclone_serve_http/

E cada arquivo strm é vinculado a um arquivo http, o servidor do rclone cria links http diretos a partir dos links do Google Drive e eles funcionam muito bem no Emby.

Além disso, meus links do Google Drive são todos privados.

Todos os meus arquivos strm têm links como esse

http://127.0.0.1:8080/mymovie/mymovie.mkv

Could you explain how you did it?

KoqueSilva
Posted
On 8/22/2021 at 12:01 PM, rodainas said:

Strm file is just a txt file with the location of a video file, a shortcut.

If you want to create strm to google drive files you need to use the google api, here is some guide for that https://ppvw.org/how-to-stream-video-from-google-drive-without-downloading/

I managed to do the procedure but there is no way to leave the link private without anyone accessing my google drive link even searching on Google?

rodainas
Posted
23 minutes ago, KoqueSilva said:

I managed to do the procedure but there is no way to leave the link private without anyone accessing my google drive link even searching on Google?

Nope, and that's the risk with using google drive links this way and that's why I can't recommend it, because if your files are downloaded is almost certain that some of your links will get flagged and deleted by hash check.

If you want to keep your content as safe as possible, keep using raidrive/rclone, if you want scanning and files to load faster just use rclone with vfs cache, check the ram usage while playing your content if you are worried about it, also the buffer size flag should help you if you think is using too much.

KoqueSilva
Posted
7 hours ago, rodainas said:

Nope, and that's the risk with using google drive links this way and that's why I can't recommend it, because if your files are downloaded is almost certain that some of your links will get flagged and deleted by hash check.

If you want to keep your content as safe as possible, keep using raidrive/rclone, if you want scanning and files to load faster just use rclone with vfs cache, check the ram usage while playing your content if you are worried about it, also the buffer size flag should help you if you think is using too much.

Send me an example of RCLONE assembly?

rodainas
Posted (edited)
1 hour ago, KoqueSilva said:

Send me an example of RCLONE assembly?

rclone mount  --allow-other --fast-list  --timeout 1h --transfers=16 --checkers=8 --tpslimit 10 --max-read-ahead=256M --poll-interval=1m --dir-cache-time 1000h --vfs-cache-mode writes --vfs-cache-max-age 1h --vfs-read-chunk-size-limit 2048M --vfs-read-chunk-size 64M --buffer-size 64M remote:/ /path/to/dir

Edited by rodainas
  • Agree 1
KoqueSilva
Posted (edited)
47 minutes ago, rodainas said:

rclone mount  --allow-other --fast-list  --timeout 1h --transfers=16 --checkers=8 --tpslimit 10 --max-read-ahead=256M --poll-interval=1m --dir-cache-time 1000h --vfs-cache-mode writes --vfs-cache-max-age 1h --vfs-read-chunk-size-limit 2048M --vfs-read-chunk-size 64M --buffer-size 64M remote:/ /path/to/dir

So I have a problem I managed to mount the rclone drive but the library doesn't recognize it in Emby.

 

mount  --allow-other --fast-list  --timeout 1h --transfers=16 --checkers=8 --tpslimit 10 --log-level INFO --max-read-ahead=256M --poll-interval=1m --dir-cache-time 1000h --vfs-cache-mode writes --vfs-cache-max-age 1h --vfs-read-chunk-size-limit 2048M --vfs-read-chunk-size 64M --buffer-size 64M GoogleDrive: F: --config "C:\Users\User\.config\rclone\rclone.conf"

Edited by KoqueSilva
rodainas
Posted
33 minutes ago, KoqueSilva said:

So I have a problem I managed to mount the rclone drive but the library doesn't recognize it in Emby.

 

mount  --allow-other --fast-list  --timeout 1h --transfers=16 --checkers=8 --tpslimit 10 --log-level INFO --max-read-ahead=256M --poll-interval=1m --dir-cache-time 1000h --vfs-cache-mode writes --vfs-cache-max-age 1h --vfs-read-chunk-size-limit 2048M --vfs-read-chunk-size 64M --buffer-size 64M GoogleDrive: F: --config "C:\Users\User\.config\rclone\rclone.conf"

On Windosz you have to run rclone mount as a service.

https://devsrealm.com/cloud-computing/installing-and-running-rclone-mount-as-a-windows-service/

https://forum.rclone.org/t/installing-rclone-mount-on-windows-as-service/4649

 

  • 2 years later...
Posted (edited)
On 8/23/2021 at 12:23 AM, olympus1 said:

For me the best way is to use strm files WITHOUT mounting google drive at all as a local drive.

I am just using rclone's serve command.

This is the best method to play media from Google drive without making links public.

I even created a python script that automatically creates strm files of all episodes of a TV Show.

Thanks for suggesting rclone's serve command and RCX for Android.

Edited by kakashi55

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...