feat(ffmpeg): seek and select frame by duration and float position (#39)
* feat(ffmpeg): seek by duration * remove selected_frame * test: update golden files * remove selected_frame * feat(ffmpeg): seek by duration * feat(ffmpeg): seek by duration * feat(ffmpeg): seek by duration * feat(ffmpeg): seek by duration * feat(ffmpeg): seek by duration * test: update golden files * feat(ffmpeg): seek by duration * test: update golden files
BIN
testdata/golden/export/alpha-webm.webm-9999.jpg
vendored
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 25 KiB |
BIN
testdata/golden/export/alpha-webm.webm-99999.jpg
vendored
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
BIN
testdata/golden/export/macabre.mp4-9999.jpg
vendored
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 13 KiB |
BIN
testdata/golden/export/macabre.mp4-99999.jpg
vendored
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
BIN
testdata/golden/export/schizo.flv-9999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
BIN
testdata/golden/export/schizo.flv-99999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
BIN
testdata/golden/export/schizo_0.mp4-9999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 27 KiB |
BIN
testdata/golden/export/schizo_0.mp4-99999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
BIN
testdata/golden/export/schizo_180.mp4-9999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
BIN
testdata/golden/export/schizo_180.mp4-99999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
BIN
testdata/golden/export/schizo_270.mp4-9999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
BIN
testdata/golden/export/schizo_270.mp4-99999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
BIN
testdata/golden/export/schizo_90.mp4-9999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
BIN
testdata/golden/export/schizo_90.mp4-99999.jpg
vendored
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":12040,"width":720,"height":576,"fps":25,"selected_frame":5,"has_video":true,"has_audio":false}
|
||||
{"orientation":1,"duration":12040,"width":720,"height":576,"fps":25,"has_video":true,"has_audio":false}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":12040,"width":720,"height":576,"fps":25,"selected_frame":5,"has_video":true,"has_audio":false}
|
||||
{"orientation":1,"duration":12040,"width":720,"height":576,"fps":25,"has_video":true,"has_audio":false}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":12040,"width":720,"height":576,"fps":25,"selected_frame":100,"has_video":true,"has_audio":false}
|
||||
{"orientation":1,"duration":12040,"width":720,"height":576,"has_video":true,"has_audio":false}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":12040,"width":720,"height":576,"fps":25,"selected_frame":100,"has_video":true,"has_audio":false}
|
||||
{"orientation":1,"duration":12040,"width":720,"height":576,"has_video":true,"has_audio":false}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":7407,"width":640,"height":480,"fps":30,"selected_frame":6,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":7407,"width":640,"height":480,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":7407,"width":640,"height":480,"fps":30.1,"selected_frame":5,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":7407,"width":640,"height":480,"fps":30.1,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":7407,"width":640,"height":480,"fps":30,"selected_frame":100,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":7407,"width":640,"height":480,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":7407,"width":640,"height":480,"fps":30,"selected_frame":100,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":7407,"width":640,"height":480,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":3925,"width":492,"height":360,"fps":30,"selected_frame":5,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":3925,"width":492,"height":360,"fps":30,"has_video":true,"has_audio":true}
|
||||
2
testdata/golden/meta/macabre.mp4-5.meta.json
vendored
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":3925,"width":492,"height":360,"fps":30,"selected_frame":5,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":3925,"width":492,"height":360,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":3925,"width":492,"height":360,"fps":30,"selected_frame":30,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":3925,"width":492,"height":360,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":3925,"width":492,"height":360,"fps":30,"selected_frame":30,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":3925,"width":492,"height":360,"has_video":true,"has_audio":true}
|
||||
2
testdata/golden/meta/schizo.flv-10.meta.json
vendored
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":2560,"width":480,"height":360,"fps":27.9,"selected_frame":6,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":2560,"width":480,"height":360,"fps":27.9,"has_video":true,"has_audio":true}
|
||||
2
testdata/golden/meta/schizo.flv-5.meta.json
vendored
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":2560,"width":480,"height":360,"fps":25.6,"selected_frame":5,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":2560,"width":480,"height":360,"fps":25.6,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":2560,"width":480,"height":360,"fps":29.7,"selected_frame":76,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":2560,"width":480,"height":360,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":2560,"width":480,"height":360,"fps":29.7,"selected_frame":76,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":2560,"width":480,"height":360,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":2544,"width":480,"height":360,"fps":30,"selected_frame":6,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":2544,"width":480,"height":360,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":2544,"width":480,"height":360,"fps":30,"selected_frame":5,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":2544,"width":480,"height":360,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":2544,"width":480,"height":360,"fps":30,"selected_frame":20,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":2544,"width":480,"height":360,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":1,"duration":2544,"width":480,"height":360,"fps":30,"selected_frame":20,"has_video":true,"has_audio":true}
|
||||
{"orientation":1,"duration":2544,"width":480,"height":360,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":3,"duration":2544,"width":480,"height":360,"fps":30,"selected_frame":5,"has_video":true,"has_audio":true}
|
||||
{"orientation":3,"duration":2544,"width":480,"height":360,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":3,"duration":2544,"width":480,"height":360,"fps":30,"selected_frame":5,"has_video":true,"has_audio":true}
|
||||
{"orientation":3,"duration":2544,"width":480,"height":360,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":3,"duration":2544,"width":480,"height":360,"fps":30,"selected_frame":20,"has_video":true,"has_audio":true}
|
||||
{"orientation":3,"duration":2544,"width":480,"height":360,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":3,"duration":2544,"width":480,"height":360,"fps":30,"selected_frame":20,"has_video":true,"has_audio":true}
|
||||
{"orientation":3,"duration":2544,"width":480,"height":360,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":6,"duration":2544,"width":360,"height":480,"fps":30,"selected_frame":7,"has_video":true,"has_audio":true}
|
||||
{"orientation":6,"duration":2544,"width":360,"height":480,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":6,"duration":2544,"width":360,"height":480,"fps":30,"selected_frame":5,"has_video":true,"has_audio":true}
|
||||
{"orientation":6,"duration":2544,"width":360,"height":480,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":6,"duration":2544,"width":360,"height":480,"fps":30,"selected_frame":20,"has_video":true,"has_audio":true}
|
||||
{"orientation":6,"duration":2544,"width":360,"height":480,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":6,"duration":2544,"width":360,"height":480,"fps":30,"selected_frame":20,"has_video":true,"has_audio":true}
|
||||
{"orientation":6,"duration":2544,"width":360,"height":480,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":8,"duration":2544,"width":360,"height":480,"fps":30,"selected_frame":8,"has_video":true,"has_audio":true}
|
||||
{"orientation":8,"duration":2544,"width":360,"height":480,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":8,"duration":2544,"width":360,"height":480,"fps":30,"selected_frame":5,"has_video":true,"has_audio":true}
|
||||
{"orientation":8,"duration":2544,"width":360,"height":480,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":8,"duration":2544,"width":360,"height":480,"fps":30,"selected_frame":20,"has_video":true,"has_audio":true}
|
||||
{"orientation":8,"duration":2544,"width":360,"height":480,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"orientation":8,"duration":2544,"width":360,"height":480,"fps":30,"selected_frame":20,"has_video":true,"has_audio":true}
|
||||
{"orientation":8,"duration":2544,"width":360,"height":480,"has_video":true,"has_audio":true}
|
||||
BIN
testdata/golden/result/500x/filters%3Aframe%280.5%29%3Aformat%28png%29/alpha-webm.webm
vendored
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
testdata/golden/result/500x/filters%3Aframe%285s%29%3Aformat%28png%29/alpha-webm.webm
vendored
Normal file
|
After Width: | Height: | Size: 159 KiB |
BIN
testdata/golden/result/500x/filters%3Aseek%280.5%29%3Aformat%28png%29/alpha-webm.webm
vendored
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
testdata/golden/result/500x/filters%3Aseek%285s%29%3Aformat%28png%29/alpha-webm.webm
vendored
Normal file
|
After Width: | Height: | Size: 195 KiB |
|
|
@ -1 +1 @@
|
|||
{"format":"mkv","content_type":"video/x-matroska","orientation":1,"duration":7407,"width":640,"height":480,"fps":30,"selected_frame":44,"has_video":true,"has_audio":true}
|
||||
{"format":"mkv","content_type":"video/x-matroska","orientation":1,"duration":7407,"width":640,"height":480,"fps":30,"has_video":true,"has_audio":true}
|
||||
|
|
@ -1 +1 @@
|
|||
{"format":"mkv","content_type":"video/x-matroska","orientation":1,"duration":7407,"width":640,"height":480,"fps":29.9,"selected_frame":4,"has_video":true,"has_audio":true}
|
||||
{"format":"mkv","content_type":"video/x-matroska","orientation":1,"duration":7407,"width":640,"height":480,"fps":29.9,"has_video":true,"has_audio":true}
|
||||