Commit Graph
80 Commits
Author SHA1 Message Date
Jedrzej Kosinski 50c4866c12 Revert "Merge pull request #30 from kijai/main"
This reverts commit d38405807c, reversing
changes made to 11ad341025.
2023-10-21 11:38:45 -05:00
Jedrzej Kosinski 0c6af481eb Revert "Fixed dragging upload always putting file into subdirectory, rearranged (and temporarily removed) pil fallback"
This reverts commit 15f545efe2.
2023-10-21 11:38:25 -05:00
Jedrzej Kosinski 15f545efe2 Fixed dragging upload always putting file into subdirectory, rearranged (and temporarily removed) pil fallback 2023-10-20 23:26:37 -05:00
Austin Mroz c3ae8f2ec9 Work in progress rewrite of JS code
Includes code for uploads, customsize, dateformatting,
forcing timestamps, and hiding the useless GIF output of the combine
video node, but lacks the video preview code and testing.
2023-10-20 12:50:32 -05:00
Jedrzej Kosinski d38405807c Merge pull request #30 from kijai/main
Update gif_preview.js
2023-10-20 10:54:47 -05:00
kijai c61bcaf2a4 Update gif_preview.js
This prevented autoplay from working now...
2023-10-20 18:40:12 +03:00
Jedrzej Kosinski ec297dc512 fixed ID referenced in videoupload.js for VHS_LoadVideo 2023-10-20 09:31:07 -05:00
kijai f705532da5 Update gif_preview.js 2023-10-20 15:38:33 +03:00
kijai 18f15ef6ca Fix video autoplay...
Video element never calls the onload function, I didn't figure out why... so just moved it out of it to restore functionality.
2023-10-20 15:30:04 +03:00
kijai fda9ffd0df Merge remote-tracking branch 'upstream/main' 2023-10-20 12:50:44 +03:00
JaredTherriault 9306e62e0a Restore VHS_LoadVideoPath and VHS_LoadVideoUpload, update to parity with VHS_UploadVideo
-Restore original name of 'VHS_LoadVideo' to 'VHS_LoadVideoPath'
-Restore LoadVideoUpload and bring its features up to parity with LoadVideoPath and UploadVideo
-Rename 'input' and 'effective' variables to 'original' and 'actual'
-Add guard clause for undefined video widget value
2023-10-17 19:49:01 -07:00
JaredTherriault ba7bc35390 UploadVideo, gif preview autoplay fix, VideoInfo out from LoadVideo, support webp, apng, mjpeg
-Add PIL fallback to LoadVideo to support video types not supported by opencv2, such as webp, apng, and mjpeg. Changing frame rate is not supported in this mode. The output log will inform you of this when the fallback is used.
-Removed VHS_LoadVideoUpload node
-Renamed VHS_LoadVideoPath to just VHS_LoadVideo
-Added a video_info output to LoadVideo which includes more information, such as the frame count, fps, duration and frame time for the input video and the output frames
-Added a new node UploadVideo which includes the functionality of LoadVideoUpload insofar as copying a video to the input folder but also allows the user to upload to temp instead for testing so as not to clutter the input folder. Uploaded videos now go to a subfolder, 'VHS_upload'.
-Added gif preview to UploadVideo so uploaded videos can be viewed on the node when selected.
-Fixed autoplay for gif preview on VideoCombine, still not working for videos on UploadVideo node.
-Added drag and drop for videos on UploadVideo node.
-Changed 'force_frame_rate' to 'desired_frame_rate' because it cannot be forced in PIL fallback, this is an effort to communicate this to the user
2023-10-16 21:31:32 -07:00
kijai 05cd93de4e Update gif_preview.js
make it select by id instead to not affect possible other elements
2023-10-12 19:18:10 +03:00
kijai a8470de02e Sync gifs too
gif elemenets weren't being reset with the sync button, made it reload all gifs for same effect
2023-10-12 19:02:31 +03:00
Jedrzej Kosinski 8f10981d32 Merge pull request #15 from kijai/main
Add preview video playback syncing
2023-10-12 05:41:11 -05:00
Jedrzej Kosinski dcb851d581 created Path versions of Load Video and Load Images nodes 2023-10-10 04:40:17 -05:00
kijai 00f0981763 Add preview video playback syncing
- Syncs the videos on new video creation
- Adds button to force the sync and reset playback time of all video previews
2023-10-05 22:49:48 +03:00
Jedrzej Kosinski 4830f195c3 Merge branch 'main' into cv_loadvideo 2023-09-29 00:01:11 -05:00
Austin Mroz 46b2e67a68 Implement folder upload 2023-09-27 15:56:51 -05:00
Austin Mroz e1443b9cef Add upload button to Load Video 2023-09-27 03:16:23 -05:00
Austin Mroz 2d2d2521e2 Fix width/height order of tensor in load video
Update element name in animation preview code.
2023-09-25 22:36:04 -05:00
Austin Mroz 278fb3c4a6 Cleanup and migration
Removed uneeded AnimateDiff nodes
Add scaffolding
Modify names
2023-09-23 19:50:05 -05:00
Austin Mroz 3431f48cd7 Raise upper limit on decoding of metadata
The base implementation from pngs uses String.fromCharCode,
but that causes overflow from having too many arguments when decoding
video files, likely since no chunking is done and everything is embedded
as a single monolithic json

As an additional benefit, data is now properly decoded from utf-8
instead of being interpreted as utf-16
2023-09-22 20:32:46 -05:00
Austin Mroz c6ab9e48bd Add max metadata limit
Better handling for a canceled "load file" dialogue
Remove some remaining js logging
2023-09-21 22:28:08 -05:00
Austin Mroz b6d1d3ed21 Implement mp4 loading, fix webm size 2023-09-21 21:55:58 -05:00
Austin Mroz 679b496222 Initial metadata support for videos
Additional testing is pending, but a workflow ending in a AnimateDiff
Combine was able to be successfully restored
2023-09-21 16:47:38 -05:00
kijai c6d34350df Added changes made on top of this on the original main repo
This fixes the node scaling and combines everything to one node with format options.
2023-09-18 13:55:14 +03:00
kijai 6531442ec3 Add webm node preview
added video preview to the node, with pingpong loop option
2023-09-16 19:46:49 +03:00
kijai 1ea1e8f6c1 Update gif_preview.js
Fix node/widget removal
2023-09-15 21:40:15 +03:00
kijai f524bca3d0 First working gif preview
javascript code is pretty much directly from mtb node's "save gif" widget extension code
2023-09-15 21:19:05 +03:00