4 ms·
Show HN:YouTube+Django+Celery+FFMPEG+Socket.io = Get Any Mp3
- dilipray 14y agoProcessing is taking a lot of time.
- level09 14y agoit actually takes time to download the video, and transcode it into mp3. especially when you run it on just a 2-core medium instance.
- dilipray 14y agoIt would be better if it would be a single page app with the player within it. What if the video is 120 minutes? The song should be 2-10 mins. Should have kept the recently listened song in the front page instead of keeping it empty.
- level09 14y agoThat's true, if the video is big it would really take a while, your suggestions can really be implemented but that was just a fun side-project which I designed in two days. the beauty about celery is that it handles a long list of tasks nicely without crashing your server. if your song is taking a lot of time, just come back later and resubmit it and you will get from cache within a few seconds.
- dilipray 14y agoIf it is okay. Can you tell me which python FFMPEG library did you use?
- level09 14y agoNot using any special library for ffmpeg, but I'm executing command line ffmpeg using Fabric library.
- voltagex_ 14y agoWhy not just demux the AAC? Transcoding a lossy file is bad.
- level09 14y agoThat's actually a good idea ! will look into it and deploy it back. however, it looks like downloading the videos is taking a long time as well, not sure if that is caused by YT servers or my python library.