Skip to content
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

Begin of audio2numpy #19

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

YuchenHui22314
Copy link

A place holder pull request

@YuchenHui22314 YuchenHui22314 mentioned this pull request Jul 30, 2022
@iejMac iejMac linked an issue Jul 30, 2022 that may be closed by this pull request
video2numpy/read_vids_cv2.py Outdated Show resolved Hide resolved
video2numpy/utils.py Outdated Show resolved Hide resolved
queue_export - SharedQueue export used re-create SharedQueue object in worker
queue_export_video - SharedQueue export for video frames, used re-create SharedQueue object in worker
queue_export_audio - SharedQueue export for audio, used re-create SharedQueue object in worker
output_dir - directory to temporarily store audio files. All the audio files will be deleted
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this argument doesn't even exist


def get_audio(vid):
if not vid.endswith(".wav"):
load_vid, dst_name = handle_youtube(vid, "audio")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need two separate handle_youtube calls. Instead of making get_frames, get_audio try to unify them into get_video that takes the modalities parameter and also pass that parameter into the handle_youtube function and return everything needed. Less code is better

@iejMac
Copy link
Owner

iejMac commented Aug 3, 2022

have you tested this out yet? does it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

audio support
2 participants