maximilianh75 19 Posted March 22, 2020 Share Posted March 22, 2020 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 More sharing options...
Luke 37247 Posted March 22, 2020 Share Posted March 22, 2020 Hi, are you sure this is the right log? I don't see any playback attempts here. Link to comment Share on other sites More sharing options...
maximilianh75 19 Posted March 22, 2020 Author Share Posted March 22, 2020 Hi, are you sure this is the right log? I don't see any playback attempts here. I add more logs from server embyserver-63720489049.txt embyserver-63720489417.txt embyserver-63720490219.txt embyserver-63720498975.txt Link to comment Share on other sites More sharing options...
Luke 37247 Posted March 22, 2020 Share Posted March 22, 2020 Which one is from the time that you tried to play? Link to comment Share on other sites More sharing options...
maximilianh75 19 Posted March 22, 2020 Author Share Posted March 22, 2020 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) http://localhost:8011/fetch?id=1I3-Xe-gHDC44z6qsYZdEJ-exaE2qBzly:End of file Link to comment Share on other sites More sharing options...
Luke 37247 Posted March 22, 2020 Share Posted March 22, 2020 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 More sharing options...
maximilianh75 19 Posted March 22, 2020 Author Share Posted March 22, 2020 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 More sharing options...
Luke 37247 Posted March 22, 2020 Share Posted March 22, 2020 If you can get it working in vlc then it should work everywhere. Link to comment Share on other sites More sharing options...
maximilianh75 19 Posted March 23, 2020 Author Share Posted March 23, 2020 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 More sharing options...
maximilianh75 19 Posted March 23, 2020 Author Share Posted March 23, 2020 (edited) 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 March 23, 2020 by maximilianh75 Link to comment Share on other sites More sharing options...
Luke 37247 Posted March 23, 2020 Share Posted March 23, 2020 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 More sharing options...
maximilianh75 19 Posted March 24, 2020 Author Share Posted March 24, 2020 (edited) 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 March 24, 2020 by maximilianh75 Link to comment Share on other sites More sharing options...
Luke 37247 Posted March 24, 2020 Share Posted March 24, 2020 Ok thanks for the feedback. Link to comment Share on other sites More sharing options...
zetatec 1 Posted April 9, 2020 Share Posted April 9, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now