I'm trying to get a link to a full-resolution video with the API reading the Google Photos API documentation.
It says concatenate the base URL in the following format with your required dimensions but says nothing else about dimensions.
I'm using ${baseUrl}=dv and I get a download link for a low resolution video but if I look at the video in the Google Photos site I can see it has a wider resolution.
Unfortunately this is currently an issue with base URLs for video files.
The dv parameter does not support specifying a resolution at the moment and returns a downsampled version of the video.
This is not ideal and we are looking into ways to address this.
You can follow along on our issue tracker here: https://issuetracker.google.com/80149160
Related
I've been shared this by a client about how google lens is able to interpret particular images (like attached) and it will place a video overlay (AR). All of the information on Lens both forums and with Google provides no documentation on how to implement something like this. Has anyone worked with this before, or know how this can be done?
I am using Google Photos API to download my photos and video.
The API docs say:
To access the bytes of a video mediaItem, concatenate the baseUrl with the download video, dv parameter.
The dv parameter requests a high quality, transcoded version of the original video. The parameter is not compatible with the w and h parameters.
But video, that downloaded from "base_URL=dv" dont have best quality.
If i download video with browser from https://photos.google.com/ it have more size (28 MB) and have 60 fps, but the same video from "base_URL=dv" have small size (18 MB) and 30 fps. Audio track in video also below in video downloaded from "base_URL=dv".
How can I get a URL to download a video with original quality (like from the browser) from the Google Photos API?
It took a long time. Maybe you have found a solution to your question. Please share.
I was shown one example "baseUrl=m15". But this does not work with older videos that do not support streaming.
Additionally. It will not be possible to track the network traffic of the browser when loading the google photo page and get examples of url video requests. The page HTML generated url addresses are already written in the JS code of the page. There are no external calls.
I have a model that uses "models.FileField()", which I then display back to the user so they may click the link and have a file rendered in their browser. The user can upload various types of files.
Problem is, I'd like to handle large avi's differently, and have the file stream to the user.
The requirement I have is to simply stream/transcode video files from the media_root dir to an end user's browser, preferably in a mac friendly format. It would be for a couple users at most.
I've search and stumbled upon a few projects:
https://github.com/andrewebdev/django-video
https://github.com/rugginoso/django-transcodeandstream
As I am I a relatively newbie when it comes to django, I'm not sure how to incorporate their code into my proj.
Any thoughts, suggestions?
You can check Amazon Elastic Transcoder. It is a media transcoding in the cloud. It is designed to be a highly scalable, easy to use and a cost effective way for developers and businesses to convert (or “transcode”) media files from their source format into versions that will playback on devices like smartphones, tablets and PCs.
Or else you can check Webfaction, they have Video and image processing on their servers which you can use.
If you will use any of those, you can ask them about the installing process and how to integrate it in your project.
And one more thing, if you want to play the video on the browser, you will need a video player like jwplayer.
Hope this will help you get started! Best wishes!
I'm building a web application that allows people to download videos from my site that's stored in Amazon S3. It's going great so far, save for the fact that when I download the video stored in S3, it appears to be slightly more pixelated and fuzzy than the same video that has not been uploaded. The videos are in mp4 format and around 150 mb big. I upload them using S3's web uploader. Does anybody know what is going on and how to fix this? I want my customers to have the best quality possible.
Amazon S3 shouldnt do anything to the video quality. Perhaps it is the player you're using? Perhaps try a different flash player like JW Player, as the only possible reasons (i can think of) the quality would be going down is either due to the flash player or the actual embedding of the video.
I'm looking to stream video's as part of a django app, but I've never done anything with video and don't really know where to start. I don't have all the details of the project yet, but I'm expecting a fairly small library of videos uploaded by one or two people (Think less than 100 videos of about 5 mins length).
I'm looking for a solution that allows users to upload videos using django admin. I want to reach the majority of desktop browsers (95%+), and obviously I want to keep my costs down. Saying that I do like the idea of using some sort of cloud based CDN (I've no idea if that's possible / appropriate for this size of project)
I really want to ask if anyone can point me int he right direction (tutorials / services / projects / code), but I realise that might not be specific enough.
So to be more specific -
Is it possible to stream video to browsers using just django and an apache web server?
What cloud hosting providers will support easy integration with a django app?
Will I need to convert the format of my video's before they're ready to stream?
Can I use Red5 with a cloud hosting solution.
I want to host the project on a Ubuntu server that I use to host a
couple of other (low traffic) django apps - would it be a mistake to install Red5
on a server with existing sites.
From recollection, the server has 12GB RAM and 4 cores (in a 1and1
uk datacentre). Will I have enough power / bandwidth to stream say 3-5 video's simultaneously? (assuming red5 / wowza).
I'm not interested in Flash because I was rooting for Apple. Do I
need to need to re-evaluate my prejudices to be free of my ignorance?
I never streamed videos using Django/Python, but I have some experience in the field of streaming video in frontend apps. I can certainly not answer all your questions. In my experience it does not really matter where the video is hosted, a CDN is fine if you want to distribute the video world-wide.
I personally think you should start with the question on how you want to play the video in the browser. Choose an appropriate video player (could be html5 video) and you have an idea of what is possible to play and what not.
3) The format matters depending on how you want to stream the video. Progressive download (e.g. mp4)? Live streaming (unprogressive, e.g. HLS)? You can find example videos online and test if your video player can play the videos on the platform you want to support.
7) As said, you need to check out which player to use in this case. HTML5 video is not widely supported enough yet in my opinion, but can play most formats in the most modern browsers (Chrome, Safari).
Hope that helps.