Commit 44b74ef6dbe68e3f098370294b8d176fc6b4fa51
1 parent
cf88ffbd
save timestamp in file metadata
Showing
1 changed file
with
1 additions
and
0 deletions
openbr/plugins/gallery/keyframes.cpp
| ... | ... | @@ -165,6 +165,7 @@ public: |
| 165 | 165 | |
| 166 | 166 | QString URL = file.get<QString>("URL", file.name); |
| 167 | 167 | output.file.set("URL", URL + "#t=" + QString::number((int)(idx * time_base)) + "s"); |
| 168 | + output.file.set("timestamp", QString::number((int)(idx * time_base * 1000))); | |
| 168 | 169 | output.file.set("frame", QString::number(idx * time_base * fps)); |
| 169 | 170 | TemplateList dst; |
| 170 | 171 | dst.append(output); | ... | ... |