Jump to content

Strm Problem


maximilianh75

Recommended Posts

maximilianh75

Hi 

I adapt a code from python to resolve google drive streaming links 

I fetching the google id and the app i adapt adds apy key and ID to the link

It's works with web browser and emby for kodi but not with other emby plugins like emby theater or emby for android tv or emby for phones

I give you an example 

 

This is the original link that fetch with app

http://localhost:8011/fetch?id=<fileID>

This is the final result that the python app return to the emby app

https://www.googleapis.com/drive/v3/files/<fileID>?key=<GOOGLE DRIVE API KEY>&alt=media

 

I detect the the ffprobe fail but i don't know if this is the reason to not play the video

 

I add the log from emby

embyserver.txt

Link to comment
Share on other sites

maximilianh75

Which one is from the time that you tried to play?

 
THIS IS FROM FIRST LOG I SEND YOU. If you look inside i can see it ;s from electron emby theater
 
2020-03-22 16:39:21.040 Info HttpServer: HTTP POST http://192.168.0.143:8096/emby/Items/82/PlaybackInfo?UserId=aed18861850d4bb094e6c72e5181ab39&StartTimeTicks=0&IsPlayback=true&AutoOpenLiveStream=true&SubtitleStreamIndex=0&MediaSourceId=1c96e507364a8212a6ef49b676b8bd23&MaxStreamingBitrate=140000000&DirectPlayProtocols=File%2CHttp%2CRtp%2CRtmp%2CRtsp%2CFtp. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EmbyTheater/3.0.11 Chrome/80.0.3987.137 Electron/8.1.0 Safari/537.36
2020-03-22 16:39:21.060 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: D:\PORTABLE\EMBY PORTABLE\system\ffprobe.exe -i "http://localhost:8011/fetch?id=1I3-Xe-gHDC44z6qsYZdEJ-exaE2qBzly"-threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2020-03-22 16:39:21.996 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 1
2020-03-22 16:39:21.998 Error App: Error in ffprobe
*** Error Report ***
Version: 4.4.0.40
Command line: D:\PORTABLE\EMBY PORTABLE\system\EmbyServer.dll
Operating system: Microsoft Windows NT 6.2.9200.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Runtime: file:///D:/PORTABLE/EMBY PORTABLE/system/System.Private.CoreLib.dll
System.Environment.Version: 3.1.2
Processor count: 4
Program data path: D:\PORTABLE\EMBY PORTABLE\programdata
Application directory: D:\PORTABLE\EMBY PORTABLE\system
System.Exception: System.Exception: ffprobe failed for "http://localhost:8011/fetch?id=1I3-Xe-gHDC44z6qsYZdEJ-exaE2qBzly"- streams and format are both null: 
{
 
}
 
 
ffprobe version 4.3.0-emby_2020_02_24-g5abbb1430d+4891 Copyright © 2007-2019 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 9.2.0 (Rev2, Built by MSYS2 project)
Link to comment
Share on other sites

Well this is the url to the video:

http://localhost:8011/fetch?id=1I3-Xe-gHDC44z6qsYZdEJ-exaE2qBzly

Did you make sure the url is working? Try playing it with VLC.

Link to comment
Share on other sites

maximilianh75

Well this is the url to the video:

http://localhost:8011/fetch?id=1I3-Xe-gHDC44z6qsYZdEJ-exaE2qBzly

Did you make sure the url is working? Try playing it with VLC.

Not work from vlc but work from browser or web app emby or emby for kodi

Link to comment
Share on other sites

maximilianh75

If you can get it working in vlc then it should work everywhere.

Ok, one question. the apps like emby theater and emby for android tv detect redirected link or only the link in the strm file??

Link to comment
Share on other sites

maximilianh75

Well this is the url to the video:

http://localhost:8011/fetch?id=1I3-Xe-gHDC44z6qsYZdEJ-exaE2qBzly

Did you make sure the url is working? Try playing it with VLC.

This not the url of the video, this links is the link for app to redirect another link to video from google apis like this:

www.googleapis.com/drive/v3/files/1ReHCQgnx5oTqPXnKpRXTuByHlJL3R3ws?key=<GOOGLE DRIVE APIKEY>&alt=media:

If i use the video link directly in strm work perfectly but my idea is use app to arm the real video link adding API KEY to strm to make it work

Edited by maximilianh75
Link to comment
Share on other sites

So i guess the redirects are not being followed? That's one possibility. Can't you just simplify and put the actual urls inside the strm file? That's what our documentation says. We never promised to support this.

Link to comment
Share on other sites

maximilianh75

So i guess the redirects are not being followed? That's one possibility. Can't you just simplify and put the actual urls inside the strm file? That's what our documentation says. We never promised to support this.

It 's only a question, i  trying to resolve the problem, not obligate you to support or not something

It;s not the same if a change api key in a future for one script, than change the api from 5000 strm files

Edited by maximilianh75
Link to comment
Share on other sites

  • 3 weeks later...
zetatec

This not the url of the video, this links is the link for app to redirect another link to video from google apis like this:

www.googleapis.com/drive/v3/files/1ReHCQgnx5oTqPXnKpRXTuByHlJL3R3ws?key=<GOOGLE DRIVE APIKEY>&alt=media:

If i use the video link directly in strm work perfectly but my idea is use app to arm the real video link adding API KEY to strm to make it work

 

Hello.
I have a php system that does just that. And it works very well.
Can you send a snippet of how you are doing the redirect?
Link to comment
Share on other sites

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...