downloaded video from google photos api do not have best quality - google-photos

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.

Related

Download full resolution video from Google Photos API

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

Video download from Amazon S3 in India takes too much time

I am trying to create a video sharing app for only one country (India). My bucket is in the India region. The size of videos will be of approximately 18MB each.
The video download takes too much time (~4mins) to download even via CloudFront. How can I accelerate my S3 download speed?
Apps that play streaming video do not download an entire video file before playing. Rather, they use a video protocol that only downloads a few seconds at a time. Amazon CloudFront can support these protocols, such Adobe's Real-Time Message Protocols and Microsoft Smooth Streaming.
See: How RTMP Distributions Work
Therefore, the time for the actual file to download is not important. Rather, the time to serve the first portion of the video is most important, followed by the ability to continue serving content as fast as the viewer consumes the content.
Connections speeds will, of course, vary depending upon each user's own Internet connection -- therefore, it is best to test the speed of your application's video playing ability from many different ISPs and types of Internet connections.

AWS CloudFront vs Youtube - what's the faster way to load videos on a webpage?

I need to include 42 tutorial videos on a single web page, between 30-90 seconds each. I'm currently uploading them to S3 in mov format and including them in the page with the video tag. 6 videos in, the page loads fast enough but the videos take ages to load.
It looks like I have 2 options to speed this up from the research I've done -
1 - Upload the videos to Youtube, load thumbnail images on the website and replace them with the video when the user clicks on the thumbnail image.
2 - Use Amazon CloudFront to deliver the videos to the user.
Which of these is a faster way of delivering videos to the user? Youtube seems to be the cheaper option with the added advantage of allowing the user to stream videos on Youtube but AWS CloudFront seems like a service specially built for this purpose.
I will suggest if you want less complexity and fast setup use You Tube. Even if AWS CF is build for this purpose you will have to create a infrastructure for hosting those videos, which in case of you tube you have to just embed the video using the embed code.
As per costing goes Youtube is less cheaper almost free. If you create Cloud Front for the distribution you have to pay for Storage of the Videos, Data Transfer Cost and many more. You will get a very good speed for youtube videos worldwide. Also you have to create a video player in your application for video streaming which is again more work.

Videos stored on Amazon S3 of lower quality when downloaded

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.

How to stream video in a django app

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.