[ 
https://issues.apache.org/jira/browse/TIKA-2861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16832506#comment-16832506
 ] 

Tim Allison commented on TIKA-2861:
-----------------------------------

Tantalizingly close on the {{1.mp4}}:
{noformat}
        File f = new File("C:/data/1.mp4");
        MP4Util.Movie m = MP4Util.parseFullMovie(f);
        for (MetaBox metaBox : (MetaBox[])NodeBox.findAll(m.getMoov(), 
MetaBox.class, MetaBox.fourcc())) {
            for (Map.Entry<Integer, MetaValue> e : 
metaBox.getItunesMeta().entrySet()) {
                System.out.println("itunes: "+e.getKey() + " : "+e.getValue());
            }
            for (Map.Entry<String, MetaValue> e : 
metaBox.getKeyedMeta().entrySet()) {
                System.out.println("general: "+e.getKey() + " : "+e.getValue());
            }
        }

        UdtaBox metaBox = NodeBox.findFirst(m.getMoov(), UdtaBox.class, 
UdtaBox.fourcc());

        for (Box box : metaBox.getBoxes()) {
            System.out.println(box.getFourcc());
        }
{noformat}

The coordinate string is in the "©xyz" box...I just can't figure out how to get 
the raw bytes/string.

> MP4Parser not getting gps metadata
> ----------------------------------
>
>                 Key: TIKA-2861
>                 URL: https://issues.apache.org/jira/browse/TIKA-2861
>             Project: Tika
>          Issue Type: Bug
>          Components: metadata
>            Reporter: Junran
>            Priority: Major
>         Attachments: 1.mp4, 2.MOV
>
>
> Hello, MP4Parser is not getting video GPS metadata which is extracted for 
> images such as jpeg. I have checked both MP4 and MOV files, the files I 
> checked all have GPS Exif data embedded in the same fields as image. Any 
> idea? Thanks!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to