KonradIT / gopro-py-api

Unofficial GoPro API Library for Python - connect to GoPro via WiFi.
MIT License
1.4k stars 212 forks source link

How to get the timestamp of highlights in the video taken by GOPRO? #69

Open fc73 opened 5 years ago

fc73 commented 5 years ago

Dear All,

Is there anyway to get the timestamp of highlights in the video taken by GOPRO?

Any ideas?

Cheers

KonradIT commented 5 years ago

Yeah

You can use getVideoInfo (docs)

getVideoInfo("tags", "100GOPRO", "GOPR0001.MP4")

Will give you an array of timestamps relative to 0ms (start of video): Example:

[1000, 4000, 5000]

Will return an empty array if there are no Hilite tags.

fc73 commented 5 years ago

Thanks for the feedback. If I want to manipulate the normal mp4 files (not with connection with gopro), is there any function to do that?

发自我的 iPhone

在 2018年11月20日,下午4:22,Konrad Iturbe notifications@github.com 写道:

Yeah

You can use getVideoInfo (docs

getVideoInfo("tags", "100GOPRO", "GOPR0001.MP4") Will give you an array of timestamps relative to 0ms (start of video): Example:

[1000, 4000, 5000] Will return an empty array if there are no Hilite tags.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

KonradIT commented 5 years ago

As in?

fc73 commented 5 years ago

Maybe in opencv or some other api?As I known, the gervideoinfo() function can only be used when connecting with GoPro?

发自我的 iPhone

在 2018年11月20日,下午9:42,Konrad Iturbe notifications@github.com 写道:

As in?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

KonradIT commented 5 years ago

You mean get the hilight tags from the video on a computer?

https://github.com/iNViTiON/GoPro-Tagging

fc73 commented 5 years ago

You mean get the hilight tags from the video on a computer?

https://github.com/iNViTiON/GoPro-Tagging

Is there some python code to do that?

KonradIT commented 5 years ago

https://pypi.org/project/pymp4parse/