I have a website that host videos, I was wondering if there is a way to prevent users from uploading a video file thats length is longer than 10 minutes before sending it to the server.
Am using SWFupload.
Thanks
SWFUpload has a file_size_limit property that can be set via Javascript:
http://demo.swfupload.org/Documentation/
Unfortunately, there is no way to check the video duration until it is uploaded.
EDIT
Using FFMPEG (PHP), you can determine the video duration:
http://ffmpeg-php.sourceforge.net/
Related
In my app I need the ability to take and upload or save a short 5 to 15 second video. I also need to be able to save the video if the user is offline, and upload it when connected to internet.
I can create the video file with the plugin image_picker, I tried to save it to the users gallery using plugin image_picker_saver but that seems to only handle images.
So I will probably have to use something like path_provider to save it to local storage (again examples of writing files are images as byte data)
When connected is there a way to upload a video to a Youtube account ?
I have read up on some Youtube plugins, but they are geared towards playing videos.
I was thinking of using WebViews to pop up the m.youtube.com/upload page but once you start an upload it goes to the desktop www.youtube.com
Other option to consider is using Firestore as the upload destination when they have a connection, but I would still have to manage offline local storage.
Thank you any help
Edit RE: comments below
Here is what I get when trying to capture a Landscape video on iPhone X with camera plugin:
Hello All I have been working on a project for a while:
I have a non standard MP4 video file I want to play off a server in a IPhone App (I am using Flash builder to create it).
Due to a combination of server problems (not correctly identifying MIME type and cant be changed) and IPhone limitations (e.g. not being able to force the iplayer to play files with wrong extension), I have had to setup a process that reads the file in, saves it locally and then point the video player at the local file.
Although this sort of works, i am having an issue with some of the files that are large (94mb for a 17 min video) and a slow server - which takes 120 seconds to transfer the whole file.
I thought that if you started playing the video, then the transfer rate would be faster than the playback rate so the video would play ok.
However sometimes the video just crashes, which i am guessing is a result of the video reading beyond what has been written.
If the video played the internal file using progressive download I think it would probably not crash but resume once more date had been read but understand that progressive download is triggered by a url extension beginning with HTTP://
Can you make an internal file play using progressive download ? I know this would not normally be expected as logically the system would expect a local file to already be download ?
Any help appreciated
Thanks
Toby
try this to know download file is complete or not
HCDownload
it is very easy to use only write its delegate method.
Edit
also see StitchedStreamPlayer
What is the best way to upload a ~700MB of AVCHD (1080p, 50fps) video file to facebook to get the best performance?
Uploading it the regular way gets video and audio out of sync, and the video appears "stuttering"...
Maybe convert it to so some sort of format?
Thanks!
user handbrake (http://handbrake.fr) to convert it into mp4 format (the normal preset).
I am doing research on speed of photo upload from my iphone application. But I am not able to find out anything over net. I have tried to upload a photo using ASIHttpRequest and also using NSURLConnection.
But I have notice my code takes lots of time to upload a captured photo from camera to my server while facebook does it withing number of seconds about in 20-30 seconds. my code takes about 4 minutes to upload.
I do compress image at client side and then doing upload, but that also take more time then facebook app.
Is there anyone have idea regarding this?
In my iPhone App I need to show the videos which are in Flash format.
I asked the client to change the videos in iPhone compatible format. They stored the converted the video on a server and I am able to show the video using MPMoviePlayerController.
Now we need to store around 25 videos (Each around 300 MB) and access them via iPhone App using MPMoviePlayerController
I have to help the client figure out how or where to host these files.
So some questions are there
1) What all things need to be taken care on server side for better performance? Is there any document available for this?
2) The video will be streaming or progressive download ? Do we have a choice?
I am sure many people would have done it. So kindly help in this regard.
if video is more then 10 minutes then you have to use streaming not progressive and you have to prepared playlist on server side with .m3u8 format. you just need to pass this url with .m3u8 into the mpmediaplayercontroller and this will take care of every thing from client side.
For server side functionality you can search apple code for streaming video.