MilliVolt / streamer

streaming process of video and audio
1 stars 1 forks source link

suggested approach #4

Open vr2262 opened 8 years ago

vr2262 commented 8 years ago

I've been looking at https://docs.python.org/3/library/asyncio-subprocess.html

I think a good approach would be to have a script that I can call asynchronously to get all the data I need for a video. Something like $ ./get_video_data or $ ./get_video_data url_id, perhaps with one of these: https://docs.python.org/3/library/asyncio-queue.html

Thoughts?

vr2262 commented 8 years ago

Here's some example code that would accomplish this: https://github.com/MilliVolt/matcher/compare/multiprocess-make-matches-plus...multiprocess-make-matches-plus-subprocesses

myf commented 8 years ago

i think these approach make sense. i just want to see how i got stuck in my queue forming activity. asyncio queue is indeed good.

vr2262 commented 8 years ago

Whatever works...