I am planning to download a youtube video with the youtube-dl python library, convert it to mp3, do some extra stuff with ffmpeg and display it to the user in an html page.
All of this through Flask.
I've been reading Heroku has a Ephemeral filesystem, so is my idea above possible at all?
This is for a school project, so I don't have any budget for it.
I am not interested in keeping the generated file. Just the client is.
Related
I have a requirement of uploading and downloading image files in google drive via web application built using Django. I have explored using Django Google Drive Storage API, it seems to be working while saving files. But I have no clue where the files are getting saved and how to read the files. if anyone has experience using Django google drive API or have a recommendation for storing files in google drive would highly be helpful at this moment.
Thank you.
If you are using models to upload the image files, something like this:
class Imageupload(models.Model):
imagefile= models.ImageField(upload_to='img',blank=True,storage=gd_storage)
views.py file looks like:
lst=Imageupload.objects.all()
url_for_first_imagefile=lst[0].imagefile.url #used to display or download the image in template
Then you can directly access them using imagefile.url attribute.
everybody!
I have django app running on heroku server. I attached amazon S3 storage to it.
I want to allow users record webcam videos, then upload them (to S3 ultimately) and then other users to play them.
What is the easiest way to do that?
I have alteady spent more than 20 hours on research around this topic but I still have no idea.
People usualy uses some streaming servers like RED5 + flash players + something + something.. But it seems to be very compicated and is not appropriate for heroku as I understood...
I would appreciate any help!
The solution that most people go with is to use a flash applet to record into memory, and then bulk upload it at the end. Nimbb seems to be the one most people go with.
Alternatively, Youtube has a pretty neat API for doing recording and uploading to their servers entirely from within your site.
The YouTube Upload Widget lets your website's visitors perform both webcam and file uploads to YouTube. The support for webcam uploads sets the upload widget apart from the other uploading options that the YouTube API supports. The widget uses HTML5's postMessage support to send messages back to your website regarding videos uploaded via the widget.
I am using nginx to serve files via a django view and I need to be able to detect when the file download is complete. Is there any way to reliable read the download status.
I will show list of epub files from webservice to user which he can download and read in my reader app for ipad. How to download a file into my app from internet or website and save locally with progress bar which he can stop in between or restore. But my priority is atleast epub file can able to download from website to app
I tried this but not download my file.
https://stackoverflow.com/a/8677389/846372
I dont know what i am doing wrong.
Thanks in advance
I am developing new website in Django 1.3 where after a customer has purchased , he can stream the audio files within the website.
I looked online and found
http://pyjax.net/blog/1/2007/06/27/django-flash-audioplayer/
or using the following jquery plugins mentioned in
http://jquery.malsup.com/media/video.html
The audio files are large and I want to go for a secure way to stream these audio files. Please suggest the best way to handle this using Django with Apache2.2