Monday, January 2, 2017

JUGNOON Video Uploader for ASP.NET MVC


JUGNOON Video Importing & Publishing script for ASP.NET MVC lets in asp.net developers to enforce develop real time video importing, publishing, cloud garage and saving video information in database just by integrating simple to use script on your ASP.NET MVC initiatives. it may allow you to add, put up and take care of limitless collection of movies at a time however videos to be published in sequential mode one by way of one to bypass overload on server.

Main options of Jugnoon Video Uploader too contains.

  • add one or extra movies
  • submit videos to mp4 or different layout one by one in series if more than one videos selected,
  • displaying publishing status by way of progress bar in real time
  • send all revealed video information (source filename, revealed filename, period, duration in seconds and more) of each video at the end to server web site scripting so as to permit developer to jot down code for saving knowledge in database
  • improve huge video importing via smaller chunks
  • with a number of customization options
  • builtin enhance for responsive bootstrap 3.2 topics
  • and extra 

Screenshots:

Video Selections

Video Selection

Video Uploads

\\

Video Publishing

\\

Video Publishing if error occured in processing with error code

\\

Listing of revealed movies

\\

Technical Knowledge

Jugnoon Video Uploader will also be simply combine and use in your existing asp.net mvc projects. it's currently written the usage of ASP.NET MVC 5 (builtin undertaking) with bootstrap 3.0 appropriate subject. 

Configuration Choices

Jugnoon Video Uploader configuration may also be controlled from web.config record. this is listing of configurations supported.

  • sourcepath: source listing path e.g “contents/source/” the place to add authentic videos
  • publishedpath: published directory path e.g “contents/published” where to save published videos
  • allowedextensions: list of videos extensions to be allowed for uploading.
  • maxfilesize: max file measurement e.g “ONE THOUSAND” mb to be allowed. 
  • chunksize: chunksize e.g “10mb” in order to ship video file in chunks in case your video is too huge.
  • maxallowedvideos: no of videos to be allowed to add at a time.
  • outputformat: output video format e.g .mp4. So As to choose some other structure it's a must to also set encoding settings in step with your choosen video format.

make sure that you permit large videos recordsdata to your asp.net mvc web page by way of expanding document upload dimension problem in internet.config document.

Listing Structure:

Jugnoon Video Uploader list options within the following directories

  • Spaces: where core video api written which is accountable for importing, processing, sending growth knowledge to client browser, test video publishing status and more. Inside Of areas, there is single controller answerable for the whole lot named “videoController
  • Contents: where to save lots of unique and revealed movies. you'll modification your listing construction in step with your web page requirement.
  • Controllers: there is only one controller utilized in jugnoon video uploader script named “mediaController” . it is liable for loading add video module in lazer view.
  • css: Record of bootstrap 3.3.2 compatible subject matters utilized in this project.
  • ffmpeg: Core software for processing movies
  • mp4box: Core software for including meta data to mp4 videos to be make it appropriate for web streaming.
  • Models: Only One type used “VideoSettingsModel” liable for sending configuration knowledge set in web.config document to add module.
  • Plugins: Plugin like plupload located right here.
  • Views: few recordsdata used for loading home and add web page. Most files located here relies on builtin asp.net mvc project which doesn’t have any function in jugnoon video uploader.

Permission Settings:

In Order to add videos properly. you must provide full or write permission to the next directories

  • contents
  • ffmpeg
  • mp4box

Additionally be certain full accept as true with asp.net configuration allow on your server in order to permit script to procedure / put up movies.

 

Video API Vital Calls

As mentioned in advance there's just one controller in area phase “videoController” with few strategies liable for handling add and video processing activities at the same time as speaking with jQuery upload application. this is checklist of video api calls and their utilization with customization instruction.

I: /api/video/add: this technique is accountable for uploading video files, one through one.  you'll be able to get entry to this system from /Spaces/api/Controllers/videoController.cs report

public ActionResult upload() // upload script here

if you happen to wish to change the trail of listing the place to save video, you'll be able to do that by the use of this line

string uploadPath = Server.MapPath(Request.ApplicationPath) + "/contents/source";

II: /api/video/encode: that is the primary approach liable for video encoding and sending video progress knowledge to consumer browser. this system publish every video in history whilst the use of boost script to calculate how much video processed and send all video processing stats to jquery utility in JSON layout where to display stats in development bar.

In encode way the principle segment involve is video encoding or publishing. right here we used our own software Media Handler Pro to post videos, photographs, audio recordsdata by way of executing any form of ffmpeg instructions. we suggest the use of recent ffmpeg build with upto date commands for higher outcome. here is how we use code for publishing mp4 videos

MediaHandler _mhandler = new MediaHandler() string RootPath = Server.MapPath(Request.ApplicationPath); _mhandler.FFMPEGPath = Server.MapPath("~\\ffmpeg\\bin\\ffmpeg.exe"); _mhandler.InputPath = RootPath + "\\" + SourcePath; _mhandler.OutputPath = RootPath + "\\" + PublishedPath; _mhandler.BackgroundProcessing = real; _mhandler.FileName = Source; _mhandler.OutputFileName = Revealed; _mhandler.Parameters = "-c:v libx264 -preset medium -b:v 650k -c:a libvo_aacenc -b:a 96k"; _mhandler.OutputExtension = ".mp4"; _mhandler.ProcessMedia();

Parameters attribute is the most essential attribute, you'll use it to move nearly any type of ffmpeg command consistent with your own settings right here.

_mhandler.Parameters = "-c:v libx264 -preset medium -b:v 650k -c:a libvo_aacenc -b:a 96k";

be sure the command you're sending correctly supported through ffmpeg you might be using. In case of error you will see mistakes message with mistakes code as shown in screenshot. For more element consult with http://www.mediasoftpro.com/blunders-codes.html

Evaluation remainder of method options, you're going to know how everything works. Code is written in a well mannered and simple to understandable structure.

II: /api/video/revealed: this technique call apart from record of uploaded and published information in JSON Array and procedure all recordsdata. Processing comprises

  • Validate each and every record to make certain videos are published correctly.
  • Rename each revealed video to avoid duplication issue. 
  • Allow you to make use of any cloud API to send printed movies to cloud garage e.g amazon s3
  • Permit you to avoid wasting every video data in database
  • you'll do any type of customized processing right here earlier than sending reaction to jQuery software with revealed file.
  • We used to display printed information, you'll be able to upload jquery code to redirect person to a different page e.g myaccount or my movies web page as soon as video processing completed.

Video Uploader Module:

Video uploader module located in customary /perspectives/media/add.chtml web page. add.chtml web page include both html and jquery code. you'll customize each in line with your needs.

Feedbacks and blunder Document:

We get pleasure from reporting comments and error studies to make this answer more feature rich and simple to make use of. you can contact us via our reputable make stronger mail.


FULL DOWNLOAD

No comments:

Post a Comment

Trik tersembunyi Bermain Slither.io agar menjadi no 1 | cara tau ampuh

Slither.io Unblocked Play Engaging in online game playing avails a chance for one to have a great experience. This opens up an enormous amo...