Git Product home page Git Product logo

Comments (8)

gilesknap avatar gilesknap commented on May 19, 2024

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.

gilesknap avatar gilesknap commented on May 19, 2024

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.

gilesknap avatar gilesknap commented on May 19, 2024

The wrong metadata issue is separate from album ordering, splitting into a new ticket.

from gphotos-sync.

gilesknap avatar gilesknap commented on May 19, 2024

Top solution for this is to record position in an album in the albumFiles table. Simples.

from gphotos-sync.

gilesknap avatar gilesknap commented on May 19, 2024

There appears to be a solution to this here plevold@22f74df

from gphotos-sync.

gilesknap avatar gilesknap commented on May 19, 2024

this has been fixed (currently in master) by @plevold. Thanks!

from gphotos-sync.

gilesknap avatar gilesknap commented on May 19, 2024

note I need to fix #148 before releasing this

from gphotos-sync.

gilesknap avatar gilesknap commented on May 19, 2024

#148 is now fixed - this will go in next release.

from gphotos-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.