Comments (8)
Also - need to investigate why "Y2000 M05 D06 Canada - DSCF0051.AVI" and other AVIs have the wrong Create Date in the DB (this is the reason that order of items in albums changed and that I noticed this issue - i had addded ORDER BY Date in LocalData.get_album_files() and all the AVIs ended up at the end of the album '0511 Trip to Banff and Improvement District No. 9' )
from gphotos-sync.
The date anomoly in AVI files is because they have incorrect metadata, see example below. Conversely the Google Photos metadata is somehow correct. When I do a local folder comparison pass I extract the create date using ffprobe and write it into the DB, thus trashing the order. The actual metadata comparison is a good way to identify if two files are a copy of the original so probably want to keep this ffprobe.
Solutions?
- dont use ffprobe and rely on Google meta data only.
- do ffprobe but have a separte column in the DB for these dates, only used for comparison
- comparison is a relativley rare (expensive) operation, could simply always re-run a normal scan with --flush-index afterward (which is what I'll do right now while I think about this)
$ ffprobe -v quiet -print_format json -show_entries stream=index,codec_type:stream_tags=creation_time:format_tags=creation_time '/media/Data/GilesPhotos/photos/2000/05/Y2000 M05 D06 Canada - DSCF0051.AVI'
{
"programs": [
],
"streams": [
{
"index": 0,
"codec_type": "video",
"tags": {
}
},
{
"index": 1,
"codec_type": "audio",
"tags": {
"creation_time": "2015-11-05T02:03:03.000000Z"
}
}
],
"format": {
"tags": {
"creation_time": "2015-11-05T02:03:03.000000Z"
}
}
}
from gphotos-sync.
The wrong metadata issue is separate from album ordering, splitting into a new ticket.
from gphotos-sync.
Top solution for this is to record position in an album in the albumFiles table. Simples.
from gphotos-sync.
There appears to be a solution to this here plevold@22f74df
from gphotos-sync.
this has been fixed (currently in master) by @plevold. Thanks!
from gphotos-sync.
note I need to fix #148 before releasing this
from gphotos-sync.
#148 is now fixed - this will go in next release.
from gphotos-sync.
Related Issues (20)
- FREEBSD - pstuil dependency too high HOT 2
- Shared photos are removed and then re-added in version 2.14.2 HOT 4
- Incremental Indexing HOT 7
- Comparison to rclone with google-photos backend HOT 1
- Error When Connecting - Running Cloud Flare and NGINX HOT 2
- NFS Share [Errno 28] No space left on device HOT 7
- Error when running gphotos-sync HOT 3
- Container Restarting HOT 5
- Please delete this thread - Sorry. HOT 1
- No new photos HOT 15
- Why are my photos being deleted HOT 5
- Invalid Syntax HOT 4
- Syntax error on syncing folders called '3 years later' HOT 4
- Not working after upgrade to Python 3.12 & gphotos-sync 3.2 HOT 11
- Many 404 client error while downloading HOT 7
- Creating Duplicate Photos Once Finished HOT 10
- Escape special characters HOT 3
- why an image do not have exif data. HOT 6
- Is there any way to make the timezone correct? HOT 3
- using the tool with new oauth rules from June 17, 2024 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gphotos-sync.