Link specific time of video hosted in Google Cloud - google-drive-api

I have a video hosted on a Google Cloud bucket that can be publicly accessed. I've previously been able to host a video on Google Drive and create a link that would start playing the video from a specific timestamp (https://webapps.stackexchange.com/questions/99936/is-there-a-way-to-link-to-a-specific-position-inside-a-video-on-google-drive)
How can I do a similar thing with Google Cloud videos? Adding ?t=XXs to the end of the URL does not work.

Cloud Storage links aren't actually streaming video. They're just downloading the file, and the browser is playing it as the file content is downloaded. So you won't be able to seek to a specific time by simply specifying a time in the query string. If you want true video streaming with seeking and adaption to the speed of the connection, you should use a video streaming service.

Cloud Storage is where you have saved your video on the cloud. Depending on your app's programming language, there are tools available to you by google client library for that language where you can determine the starting point of video stream. For example, if you use Node.js the following code will start the video from a specific start to end point within video.
let f = fs.createReadStream("myVideo.mp4", {start, end});

Related

Streaming video in HTML5/JS

I currently have an IPTV subscription and as a fun little side project I decided to create a multiplatform IPTV app. However, I'm running into some trouble when trying to stream video.
The .m3u playlist I am currently using has streaming links, however they do not end in .m3u8 as I am usually accustom to.
When I do a get request to the link in insomnia, it begins to download content with a MIME type of video/mp2t.
I have tried using hls.js along with a few other html video players however I cannot seem to get it to work.
The playlist does work with VLC!
I feel like I am missing something, just not sure what.
Thanks!!
If your IPTV service has content that the service provider wants to restrict then they may encrypt the content, use DRM and/or obfuscate the access to the manifest files and segments streams.
The reason they do this is to ensure that only their apps can be used to playback the content - this does not always have to be just for paid services as the content owner may require the content to be encrypted even for free IPTV services.
You can still do your experiment and build your multiscreen project using test streams which are available online - there are both DASH and HLS online streams available in a number of places. see here for a useful list:
https://bitmovin.com/mpeg-dash-hls-examples-sample-streams/

Connect Wowza streaming engine to Google CDN

I would like to ask how to distribute the Wowza live stream video content to Google CDN to enable faster access. I saw Wowza has published the way to do it for Akamai and other network but not Google CDN. Google also pointed out it is possible, but i dont know how to setup http://gcp.solutions/diagram/Live%20Streaming. Could anyone enlighten me please?
I believe this is already documented in WOWZA´s site describing all the steps on How to set up Wowza Streaming Engine on Google Cloud Platform.
Roughly, the steps are as follows:
Step#1 Add the Wowza Streaming Engine image to GCP
Navigation menu--> Compute Engine --> Images-->Create Image
a) Give your image a name and a description. The image name must be unique in your project's collection of images. The description is optional.
b) In Source, select Cloud Storage file.
c) In Cloud Storage file, enter wowzamediasystems/wse/WowzaStreamingEngine-4.7.6-byol-20180809.image.tar.gz.
Step#2 Add the firewall rule using the console
Step#3 Create and launch a Google Compute Engine instance
Details of these steps and additional clarification can be found in Wowzaś site
The pre-configured Streaming Engine image runs Wowza Streaming Engine™ media server software version 4.7.6.

How can I set up saving OBS stream to Google Drive or Dropbox or any other cloud file storage?

So I want to record videos with Open Broadcast Software, but I lack the HDD fast and big enough to do so. However, streaming (such as to Twitch) works fine. How can I set it up so I stream it instead and the stream gets automatically saved to a cloud file storage like Google Drive or any other?
Just stream to YouTube then use https://yt-dl.org/ to download your videos later.

Gdrive - Need mp3 direct permanent url to play it in wordpress site

I have large audio files to be played in my wordpress site. As my server being shared hosting, streaming has become much slow. I am thought of uploading the mp3 in gdrive and give the mp3 url in wordpress.
I have followed the below process-
1
clicked on download mp3 from gdrive, took the address, gave &type=.mp3 to the last. It worked for a day, but from next day onwards my audio doesn't play in my site. I am thinking that google is changing the url on daily basis dynamically.
2
thought of using the shared public link. But that takes me to google's download page. What all I need is a direct permanent link with mp3 extension for streaming purposes. This is not serving the purpose.
Any other approach in getting the permanent url with mp3 extension? Thanks.
Have you tried this URL ?
https://drive.google.com/uc?export=download&id=YOUR_FILE_ID
Check also this page for another way; but you must use the Drive API. The idea is to use the webViewLink url provided by the Drive API.

getting videos in google drive (and Microsoft onedrive) to show in a video tag?

I have a website that has a web page with a html5 video-tag, and the user can supply a URL, and it will play in the video-tag.
The webpage uses JavaScript commands that control the video-tag - for instance, it can pause the video, move to a different point in the video, etc.
It works fine with the cloud. Videos stored on Microsoft Azure can be used, for instance (Azure gives you a way to get a URL to any video on your cloud storage, and streams it too).
However, I have users that store videos on Google-drive, and also on Microsoft One-Drive.
From what I can see, I can play these videos, but only in a page (probably with Google's own player in it) on their site.
It seems that there is no way to get a URL to these videos that I can put in a video tag.
Without the ability to do that, I can't use the javascript commands that work with the html5 video-tag.
Is there any workaround?
Or am I missing something?
Thanks.
For playing videos that are stored in google-drive using your app:
you need oauth2 credentials to access the user's drive, but assuming you have the oauth part covered :
you can create a drive application as a google appengine app and deploy it in a part of your website.
enable the drive-sdk and set the open-url to your website (that you have verified)
-> basically this tells drive to redirect towards your website whenever the user clicks on the video (from his drive)
when drive redirects to your website a json file will be sent, you'll have informations such as fileId from there i think you can execute the method files().get() to retrieve the necessary information for you to play the video
I advise you to take a look at this course in codeschool.