-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add synthesize videos. #84
Conversation
tools/data/build_videos.py
Outdated
Args: | ||
frame_dir_item (list): Rawframe item containing raw frame directory | ||
full path, rawframe directory (short) path, rawframe directory id. | ||
dev_id (int): Device id. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is dev_id
necessary?
Codecov Report
@@ Coverage Diff @@
## master #84 +/- ##
=======================================
Coverage 85.32% 85.32%
=======================================
Files 75 75
Lines 4083 4083
Branches 652 652
=======================================
Hits 3484 3484
Misses 493 493
Partials 106 106
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
tools/data/build_videos.py
Outdated
|
||
|
||
def synthesize_video(frame_dir_item): | ||
"""Generate videos using opencv-python. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Encode frames to video using ffmpeg
tools/data/build_videos.py
Outdated
from multiprocessing import Pool | ||
|
||
|
||
def synthesize_video(frame_dir_item): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
synthesize_video -> encode_video
tools/data/sthv1/encode_videos.sh
Outdated
|
||
cd ../ | ||
python build_videos.py ../../data/sthv1/rawframes/ ../../data/sthv1/videos/ --fps 12 --level 2 --start-idx 1 --filename-tmpl '%05d' | ||
echo "Genearte videos" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here.
generate means create something completely new. here we are encoding images to videos---a kind of format transformation
Synthesize videos based on RGB frames.