stream youtube video from myserver laravel - python

I am working on a system that will work on the local network , for some reason users will not have access to the internet, the only access that allowed to those users is my server, and my server has full access to the internet, so what I want is to stream video from youtube to my server to my client
youtube -----> server ------>client
I searched a lot but I could found any things that might help me, most of the people talked about streaming live videos which I don't want, I want to stream any video on youtube to my server, then the client will get the video from my server.
is it possible to do this?
I am using laravel to develop my system, but I can use python / node js if it is not possible in laravel

I think you can take a look at pytube package.
you can download a youtube video and save it to your server and start streaming in your proper way in laravel.

Related

Django return HLS streaming to frontend

I have encountered an issue during develop HLS live streaming through Django restframework.
Currently, I have a shell script that generates HLS files(m3u8), and now I am confused about how to respond the generated HLS files to the frontend so that the user able to view the HLS streaming from web.
I did a little bit research on this, looks some developers suggest use Django serve, but I am confused will it be enough if I only return the m3u8 to the frontend.
HLS source files generated from ffmpeg

How to call python OpenCV on the browser in a WSGI application

I am building a face detection web app. I have a WSGI client & server. The client is supposed to capture the frames and pass it to Redis datastore. The server is supposed to process the images and send it back. The problem I am facing is that the WSGI client is calling the python OpenCV library on the browser which isn't being loaded. Is there anyway I can use the python OpenCV library on the browser using Django maybe? I'm quite new to Django/WSGI so any help would be much appreciated! Thanks.

Upload Google sheets JSON feed to FTP server on a daily basis

I need a simple script to upload my google sheets JSON feed to ftp server on a daily basis.
I am planning to use Python and Task Scheduler, but I am looking for another solution. Maybe it is possible with Google Apps Script.
Thank you in advance.
Hello Lasha Dolenjashvili,
This is not possible with Google Apps Script.
To make outbound FTP requests from Google Apps Script there is a similar restriction from App Engine as well. You are alternatives are unless to find an HTTP interface to the server, some sites offer both HTTP and FTP.
You can check the log Issue

How to use Firebase with a linux based client app for bidirectional messages communication with server

I've seen Google's documentation and a lot of examples over the internet about how to use Firebase within Android / iOS applications, but I want to develop a client Firebase application which runs on a linux machine.
My requirements are:
Client runs on linux environment (either writtern in C++ or python).
Server is written in Javascript (NodeJS).
Server and client should have bi-directional communication between them using firebase realtime database.
I've seen also the firebase REST api, but I assume that is not good enough for me since I haven't seen a client listener api that listens on a something like onValueChanged.
Question:
How can I implement a linux-based app in C++ or python that listens to messages from server (data changes) using a listener, without having to call some get function each and every few seconds (just like NodeJS have the ref.on("child_changed",...) or ref.on("value",...)?
Help is much appreciated!
Unfortunately there is not official library for Realtime Database in Python but there are some third party wrappers around REST API.
Specifically I would look at Pyrebase library which also supports listening to live changes https://github.com/thisbejim/Pyrebase#streaming
For more information, libraries or other languages look at this page https://firebase.google.com/docs/database/rest/start
Google offers a C++ SDK you can download it here.
There is also a tutorial on the bottom of the page, but if you really want to dig into some code, here is the quickstart code on github from google with examples for each category on Firebase.
Google has also implemented a Game for demonstration purposes in C++ for Desktop OSs. here There you can find more advanced features and code samples.
I have only tried it with an XCode project on Mac OS X, and it works fine. I have no code for real time database but you should find the sample project in the github repo. https://github.com/firebase/quickstart-cpp
I hope this helps!
Greetings.
Haven't you try to use a Realtime Database triggers for C++ (that's is currently on beta) that allows you to simulate the same workflow as on JS?
From my point of view, it is the best way to get it to work as you want.
https://firebase.google.com/docs/functions/database-events

How to use Youtube API v3 to upload video via Powershell

I would like to automate a weekly upload of a video to our Youtube channel via Powershell script which I can schedule in Task Scheduler.
Is that possible ?
I created a Project in the Google Developers Console.
I got myself a Client ID and Client secret for the Oauth.
And I saw examples in Java, Javascript, Python, .NET,... https://developers.google.com/youtube/v3/guides/uploading_a_video.
But I got lost...
Anyone who could give me some practical tips ?
Thanks a lot.

Categories