Fixed
Status Update
Comments
ch...@google.com <ch...@google.com>
so...@gmail.com <so...@gmail.com> #2
Thanks for the report!
Unfortunately you can't specify a height or width for video files at the moment, and the 'dv' parameter returns a downsampled version of the video. There is currently no option to retrieve the video in its original resolution.
I have forwarded this to the team and will update here once I hear back.
Unfortunately you can't specify a height or width for video files at the moment, and the 'dv' parameter returns a downsampled version of the video. There is currently no option to retrieve the video in its original resolution.
I have forwarded this to the team and will update here once I hear back.
re...@gmail.com <re...@gmail.com> #3
Thanks
The documentation should be updated then?
https://developers.google.com/photos/library/guides/access-media-items#video-base-urls
If specifying a video width or height is not possible the sentense "with your required dimensions:" makes no sense then.
The documentation should be updated then?
If specifying a video width or height is not possible the sentense "with your required dimensions:" makes no sense then.
[Deleted User] <[Deleted User]> #4
Thanks - Good catch, I'll get the documentation updated. (The previous sentence is quite explicit, but we must have missed this one.)
te...@gmail.com <te...@gmail.com> #5
Is there a separate ticket for adding the ability to download full resolution video? Or does this documentation ticket also cover that? I want to make sure I'm tracking the correct ticket so I'll know when that feature is added.
tr...@gmail.com <tr...@gmail.com> #6
Re #5, we can track this here. I have renamed the title of the issue to capture this.
[Deleted User] <[Deleted User]> #7
Not sure if this works (or is fool-proof), but I tried reverse-engineering this based on the URLs I see in Google Photos directly, and in Picasa. My hunch is, if you pass the attribute "=m37", you might get a higher resolution video. How I tracked this down is:
1. Go to Picasa's API for showing your albums:https://picasaweb.google.com/data/feed/api/user/YOUR_USER_ID_HERE?kind=album&prettyprint=true . Find the album you are looking for, in the element <gphoto:id>xxxxx</gphoto:id>. Note that this album id is different from your Google Photos album id.
2. Now look at your album via Picasa's API:https://picasaweb.google.com/data/feed/api/user/YOUR_USER_ID/albumid/YOUR_ALBUM_ID?kind=photo&prettyprint=true . Find the video you are looking for (you can search by title etc.).You will see the following defined:
<media:content url='https://lh3.googleusercontent.com/dummy-image-url=m18 ' height='360' width='640' type='video/mpeg4' medium='video'/>
<media:content url='https://lh3.googleusercontent.com/dummy-image-url=m22 ' height='720' width='1280' type='video/mpeg4' medium='video'/>
<media:content url='https://lh3.googleusercontent.com/dummy-image-url=m37 ' height='1080' width='1920' type='video/mpeg4' medium='video'/>
Specifically look for those items where the type='video/mpeg4'.
If you observe the URLs you will see that they have the same URL with a different suffix: =m18 for the smallest resolution, =m22 for the medium resolution, and =m37 for the highest resolution. This is what I see in my albums; you might see something else. What I have found, though, is that if I simply append "=m37" to the URL shown in Google Photos API, it seems to neatly bring me a good resolution video.
Product Team,
Is my hypothesis correct? Or am I completely off-base?
1. Go to Picasa's API for showing your albums:
2. Now look at your album via Picasa's API:
<media:content url='
<media:content url='
<media:content url='
Specifically look for those items where the type='video/mpeg4'.
If you observe the URLs you will see that they have the same URL with a different suffix: =m18 for the smallest resolution, =m22 for the medium resolution, and =m37 for the highest resolution. This is what I see in my albums; you might see something else. What I have found, though, is that if I simply append "=m37" to the URL shown in Google Photos API, it seems to neatly bring me a good resolution video.
Product Team,
Is my hypothesis correct? Or am I completely off-base?
[Deleted User] <[Deleted User]> #8
One more thing - I got the idea of looking at the Picasa API because in the preview page of Google Photos I saw that the small preview of my video was suffixed with "=m18", and I had seen that while I was working with the Picasa API.
tr...@gmail.com <tr...@gmail.com> #9
Re #8 Adding "=m37" works for me in a browser but gives me a 404 when calling the API.
Furthermore, requesting 'https://lh3.googleusercontent.com/[video-baseUrl]=dv ' now results in an Error 400 (did work before for low-res videos) - do I just leave that here, or do I open another issue?
Furthermore, requesting '
iv...@gmail.com <iv...@gmail.com> #10
Please do not use any flags that are not documented on the "Access media items" guide in our developer documentation: https://developers.google.com/photos/library/guides/access-media-items
Undocumented flags are not supported and should not be used directly. If you have a use case for other types of encoded or processed video, please do file a new feature request, describing your use and any technical requirements.
Undocumented flags are not supported and should not be used directly. If you have a use case for other types of encoded or processed video, please do file a new feature request, describing your use and any technical requirements.
sa...@gmail.com <sa...@gmail.com> #11
How is this a feature request, this is clearly a bug. The dv link should download the full resolution just like the documentation states and also its a minimum functionality of getting a media item. Currently there is no way to download the video so the feature is broken. Please update the bug type and priority.
wa...@gmail.com <wa...@gmail.com> #12
Correction (I shouldn't say just resolution but rather full quality of the video):
Based on the description in the documentation the dv parameter should download the full quality video. There is no mention of down sampling the in documentation.
In addition it the basic expectation of getting a media item is to have access to its full quality download.Not having this ability makes the api incomplete missing basic functionality most apps require.
Finally access to full quality video would be consistent with the way images download works (full quality with some tagging stripped).
This is why I think this is a bug, the behavior is unexpected, undocumented, and inconsistent with other interfaces.
Thanks!
Based on the description in the documentation the dv parameter should download the full quality video. There is no mention of down sampling the in documentation.
In addition it the basic expectation of getting a media item is to have access to its full quality download.Not having this ability makes the api incomplete missing basic functionality most apps require.
Finally access to full quality video would be consistent with the way images download works (full quality with some tagging stripped).
This is why I think this is a bug, the behavior is unexpected, undocumented, and inconsistent with other interfaces.
Thanks!
[Deleted User] <[Deleted User]> #13
Any update on this? There's little point in me using the API if I can't download the original (or thereabouts) video. It can't be that hard to implement.
[Deleted User] <[Deleted User]> #14
It's blocked by 109754198 but I don't have permission to view that.
am...@gmail.com <am...@gmail.com> #15
We have made some changes recently to the way data is returned from base URLs for videos.
Can you confirm if the quality and resolution is of higher quality now?
If you are still seeing this, could you provide an example of the file or the exact codec, resolution and framerate of the video?
Can you confirm if the quality and resolution is of higher quality now?
If you are still seeing this, could you provide an example of the file or the exact codec, resolution and framerate of the video?
ea...@google.com <ea...@google.com>
ra...@gmail.com <ra...@gmail.com> #16
What I'm trying to do is transfer photos and videos from my phone to my computer, where I keep my master copy of 20 years worth of photos. I don't want a higher resolution video, I want the original. For me, having my photos on Google Photos is nice, but it's secondary, TBH.
I tried using the Google Drive integration with Google Photos, but it was a nightmare because deleting a photo from Drive wouldn't necessarily delete it from Photos. Now I'm hoping to use the Google Photos API.
I tried downloading a video from Google Photos today, but the 50MB video from my phone resulted in a 13MB download. Also, the video was taken at a time as per the filename on my phone: 20181124_140007.mp4 but the EXIF data in the downloaded video had been rewritten by Google Photos and the only timestamp in there was 2018:11:24 16:48:07, which was probably the time that my phone uploaded the video. So now I have a poorer quality copy of my original video with the wrong timestamp.
And it's just this second dawned on me that I've deleted files from my phone to free up space, so the only original copy of those files is on Google Photos and I can't get access to them.
I'm just trying to keep a few files in sync between different devices. It shouldn't be this difficult.
I tried using the Google Drive integration with Google Photos, but it was a nightmare because deleting a photo from Drive wouldn't necessarily delete it from Photos. Now I'm hoping to use the Google Photos API.
I tried downloading a video from Google Photos today, but the 50MB video from my phone resulted in a 13MB download. Also, the video was taken at a time as per the filename on my phone: 20181124_140007.mp4 but the EXIF data in the downloaded video had been rewritten by Google Photos and the only timestamp in there was 2018:11:24 16:48:07, which was probably the time that my phone uploaded the video. So now I have a poorer quality copy of my original video with the wrong timestamp.
And it's just this second dawned on me that I've deleted files from my phone to free up space, so the only original copy of those files is on Google Photos and I can't get access to them.
I'm just trying to keep a few files in sync between different devices. It shouldn't be this difficult.
[Deleted User] <[Deleted User]> #17
what about this issue any news how to download the original file size, i have a video 2GB and when i download it it downloaded as 320MB and not working..
Any solution about this issue ???
Any solution about this issue ???
sa...@gmail.com <sa...@gmail.com> #18
Hello
Any news about this issue. ?
Any news about this issue. ?
tc...@gmail.com <tc...@gmail.com> #19
Hi,
someone work on it?
someone work on it?
pa...@gmail.com <pa...@gmail.com> #20
In answer to https://issuetracker.google.com/issues/80149160#comment15
I have recently discovered that my 1080p 60fps videos are now transcoded down to 30fps with high compression - they look terrible. But if I directly download them from the Google Photos Web they are fine. Why is the API transcoding, please?
Here is an example which I share globally for all to see.
Album =https://photos.app.goo.gl/Avm52meJycEH8N5o6 contains a single video showing the issue.
The attachment contains three copies of the video:
- the original file from the phone directly (1080p 60fps)
- the file as downloaded from the Google Photos Web (similar but not identical to the above)
- the file as downloaded from baseUrl with =dv -- this shows only 30 fps and file size is 1/10 of the above
I have recently discovered that my 1080p 60fps videos are now transcoded down to 30fps with high compression - they look terrible. But if I directly download them from the Google Photos Web they are fine. Why is the API transcoding, please?
Here is an example which I share globally for all to see.
Album =
The attachment contains three copies of the video:
- the original file from the phone directly (1080p 60fps)
- the file as downloaded from the Google Photos Web (similar but not identical to the above)
- the file as downloaded from baseUrl with =dv -- this shows only 30 fps and file size is 1/10 of the above
au...@gmail.com <au...@gmail.com> #21
Hey Google. Any news here? Not sure why this was ever switched to a feature request type of ticket, as this is 100% a bug.
This is getting really ridiculous. This API has been the only means of interacting with Google Photos since you all did away with the Google Drive folder a couple months ago and yet we still can't get any traction on this issue that's been open for OVER A YEAR???? What kind of terrible management is going on over there that the person assigned to this hasn't been canned already for not completing their work?
For the love of all things holy Google... PLEASE FIX THIS DUMPSTER FIRE OF AN API!!!!
This is getting really ridiculous. This API has been the only means of interacting with Google Photos since you all did away with the Google Drive folder a couple months ago and yet we still can't get any traction on this issue that's been open for OVER A YEAR???? What kind of terrible management is going on over there that the person assigned to this hasn't been canned already for not completing their work?
For the love of all things holy Google... PLEASE FIX THIS DUMPSTER FIRE OF AN API!!!!
[Deleted User] <[Deleted User]> #22
I think step back on this or similiar issue when fetching video with =dv suffix
I'm using
com.google.photos.library:google-photos-library-client:1.4.0
to fetch videos. It was working pretty well but for some new videos i got issue IOException with reason 500 from google endpoints:
It describe itself more like this:
java.io.IOException: Server returned HTTP response code: 500 for URL:https://video-downloads.googleusercontent.com/ABzBgw2CdMg09PwSry__Bl [...]
this is (partial) output from fields of MediaItem
google.photos.types.MediaItem.base_url=https://lh3.googleusercontent.com/lr/AGWb-e6s [...]
google.photos.types.MediaItem.mime_type=video/mp4, google.photos.types.MediaItem.media_metadata=creation_time {
seconds: 1570301787
}
width: 576
height: 1024
video {
fps: 29.918403416437823
status: READY
}
, google.photos.types.MediaItem.filename=video-c523eb1bb7a18b3e31f97ac581bffabf-V.mp4}
all i do is append =dv to the end of baseUrl
I'm using
com.google.photos.library:google-photos-library-client:1.4.0
to fetch videos. It was working pretty well but for some new videos i got issue IOException with reason 500 from google endpoints:
It describe itself more like this:
java.io.IOException: Server returned HTTP response code: 500 for URL:
this is (partial) output from fields of MediaItem
google.photos.types.MediaItem.base_url=
google.photos.types.MediaItem.mime_type=video/mp4, google.photos.types.MediaItem.media_metadata=creation_time {
seconds: 1570301787
}
width: 576
height: 1024
video {
fps: 29.918403416437823
status: READY
}
, google.photos.types.MediaItem.filename=video-c523eb1bb7a18b3e31f97ac581bffabf-V.mp4}
all i do is append =dv to the end of baseUrl
ol...@gmail.com <ol...@gmail.com> #23
sorry for the above. I meant to paste it in related issue that point to this one. But there is also mention about 400 return from the endpoint not 500
mean:https://issuetracker.google.com/issues/111638708
I cannot remove above comment...
mean:
I cannot remove above comment...
po...@gmail.com <po...@gmail.com> #24
Is there any plan to fix this bug?
fl...@gmail.com <fl...@gmail.com> #25
Hi there also wishing that issue was prioritized :p
ri...@gmail.com <ri...@gmail.com> #26
It's been nearly 3 years. Why has this not been fixed yet?
ni...@gmail.com <ni...@gmail.com> #27
Bumping this...
lu...@gmail.com <lu...@gmail.com> #29
Hello,
will this be fixed anytime soon?
will this be fixed anytime soon?
mo...@gmail.com <mo...@gmail.com> #30
I second the people above, this should not be listed as a feature request - not having the ability to download an original quality video is obvious a bug. Also, coming up on the 2 year anniversary of this bug, which I can only imagine is a major blocker for anyone doing anything with video where the user expects high quality.
lf...@google.com <lf...@google.com> #31
I think this limitation is entirely deliberate, for limiting bandwidth and prevent a large number of apps most often than not using the original video rather than a smaller transcode.
ga...@gmail.com <ga...@gmail.com> #32
Kinda like keeping a car under the speed limit by slashing it's tires. There are already limits and quotas in place, they could just make a new limit on data downloaded or on number of full quality video requests pretty easily.
lf...@google.com <lf...@google.com> #33
I'm using the Original Quality option and paying for storage, but I expect to also be able to download the Original Quality then. Please fix this _issue_ (this is not a feature request).
za...@gmail.com <za...@gmail.com> #34
That's my situation exactly. I had hoped to write something to auto backup all my photos and videos to my network attached storage every night, in case anything happens to my Google account.
lf...@google.com <lf...@google.com> #35
If you need some inspiration on the auto backup: I did exactly that. Working every week in my case flawlessly for months now. Didn't fix the video issue though... https://github.com/paranerd/backup-my-accounts
[Deleted User] <[Deleted User]> #36
I to have written a backup service that works OK and I believe a few thousand people use it. But here is my list of Google API issues that mean that it is not a true backup https://github.com/gilesknap/gphotos-sync/issues/119
ga...@gmail.com <ga...@gmail.com> #37
Any news on this? I just spent a whole bunch of time adding Google Photos support to our desktop video application only to discover that I can't retrieve video files in their original resolution, which unfortunately makes it useless to me.
lf...@google.com <lf...@google.com> #38
Bumping this up as a user in need of the video feature
ga...@gmail.com <ga...@gmail.com> #39
+1
lf...@google.com <lf...@google.com> #40
+1
ga...@gmail.com <ga...@gmail.com> #41
+1
ga...@gmail.com <ga...@gmail.com> #43
+1
ma...@gmail.com <ma...@gmail.com> #44
+1
ak...@gmail.com <ak...@gmail.com> #45
+1
sh...@gmail.com <sh...@gmail.com> #46
how do i download original quality video ???
Description
Emulator Version (Emulator--> Extended Controls--> Emulator Version): Emulator64-x86 Nexus_5_API_22_x86
Android SDK Tools:Android Studio SDK Tools 24.4.1, Platform-Tools 23.0.1
Host Operating System: Mac OS Yosemite
Steps to Reproduce Bug:
1. Play music on bluetooth headphones (I'm using Sony MDR-XB950BT)
2. Launch emulator for android tests
3. music quality dips
Expected Behavior: Launching Android emulator should not affect Music Quality
Observed Behavior: